• I am trying to use Query Monitor to run a stack trace on a “PHP Recoverable fatal error” I see in my WordPress debug.log file whenever I try to open a specific admin page. However, the Query Monitor console doesn’t load on the bottom of the page for that specific admin page. Any suggestions? The debug.log error message is a one liner that doesn’t provide any help in isolating the cause of the issue, so I was hoping Query Monitor could help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    What’s the error message?

    Which version of PHP are you using? For PHP > 7 there should be a stack trace there but for PHP 5.x you’ll need to add an extension such as Xdebug in order to see a stack trace.

    As counter-intuitive as it seems, you could try defining the QM_DISABLE_ERROR_HANDLER constant in your wp-config.php file and setting it to true and see if that results in the full error showing up.

    Thread Starter wordna

    (@wordna)

    Hi,

    I am seeing the following error message in debug.log:
    [21-Jan-2020 21:35:20 UTC] PHP Recoverable fatal error: Object of class stdClass could not be converted to string in /wp-includes/kses.php on line 1592

    I am running WordPress 5.3.2 & PHP 7.3.11

    I tried setting QM_DISABLE_ERROR_HANDLER to true, but that didn’t change the error message recorded in debug.log nor did the Query Monitor console properly show up on the page.

    Thread Starter wordna

    (@wordna)

    Following up…I installed Query Monitor to help isolate this issue, but it seems to not load sufficiently to provide a stack trace.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Recoverable fatal error in debug.log’ is closed to new replies.