• Resolved lucasbustamante

    (@lucasbustamante)


    Query Monitor turns off display_errors, but there are many cases where I’m developing and need to debug something with exit; and the WordPress core does not load, so I can’t depend on Query Monitor to show me the errors. How can I make Query Monitor stop disabling display_errors?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lucasbustamante

    (@lucasbustamante)

    I found out reading the Plugin’s code, just add this to wp-config.php, before including wp-settings.php:

    define('QM_DISABLE_ERROR_HANDLER', true);

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Glad you found it. In the next version of QM I’m going to list all the available constants so they’re easier to find.

    As a side note, it’s often easier to use the PHP error log instead of relying on errors being output to the browser. If you get used to using the error log instead of the output to the browser then you don’t need to worry about situations where errors on the front end get hidden by other elements on the screen etc. (this happens in the WordPress admin area – the admin menu often covers up output).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Enable display_errors’ is closed to new replies.