[wp-trac] [WordPress Trac] #57273: Fatal error not trapped in do_action()
WordPress Trac
noreply at wordpress.org
Mon Dec 5 14:41:05 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:
-------------------------------+------------------------------
Comment (by charlesgodwin):
The error was `Fatal error: Uncaught Error: Cannot call constructor`. It
was trying to instantiate an object that used the class name as a function
instead of `__construct`
`WP_DEBUG_LOG` is not set. Here are the other values.
{{{
error_log /home/ogsonca/logs/ogs_on_ca.php.error.log
error_reporting 32759
}}}
I understand the problem of the try/catch block and I don't have a magic
answer. My problem was that only way I was able to find this is that I
could run the bad code outside of WordPress.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57273#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list