[wp-trac] [WordPress Trac] #64155: Add stack trace to failed plugin update error notifications

WordPress Trac noreply at wordpress.org
Sat Nov 1 02:06:43 UTC 2025


#64155: Add stack trace to failed plugin update error notifications
--------------------------+------------------------------------------------
 Reporter:  tlloancy      |       Owner:  (none)
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:                |     Version:  6.8.3
  Upgrade/Install         |
 Severity:  normal        |  Resolution:
 Keywords:  needs-        |     Focuses:  administration, php-compatibility
  testing has-patch       |
--------------------------+------------------------------------------------

Comment (by tlloancy):

 @afragen Thank you! I'm excited for the review.
 @knutsp Great catch — you're absolutely right!

 ### Updated patch:
 {{{
 } else {
     $log_file = ini_get( 'error_log' ) ?: WP_CONTENT_DIR . '/debug.log';
     if ( $log_file && file_exists( $log_file ) && is_readable( $log_file )
 ) {
         // ... same backward reading logic
     }
 }
 }}}
 Checks ini_get('error_log') first (user-defined path)
 Falls back to WP_CONTENT_DIR . '/debug.log'
 Avoids file_exists('') → no warning

 Pushing it now

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64155#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list