[wp-trac] [WordPress Trac] #57273: Fatal error not trapped in do_action()

WordPress Trac noreply at wordpress.org
Mon Dec 5 14:20:00 UTC 2022


#57273: Fatal error not trapped in do_action()
-------------------------------+------------------------------
 Reporter:  charlesgodwin      |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  6.1.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:   => reporter-feedback


Comment:

 @charlesgodwin What's the underlying error that was triggered? Was it a
 PHP fatal error? If so, this should be logged in the PHP error log by
 default, if not then there is a problem with the error logging
 configuration on your site that you should take a look at. Possibly the
 `WP_DEBUG_LOG` constant in your `wp-config.php` file, otherwise the
 `error_reporting` and `error_log` directives in your php.ini file.

 Wrapping each action in a `try ... catch` and still running subsequent
 actions after one of them throws an exception could introduce its own
 problems, for example actions can make assumptions about what has happened
 in prior actions and therefore cause unintended behaviour if they run when
 a prior one hasn't completed fully.

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


More information about the wp-trac mailing list