Display all php errors and notices, etc

I’d like to show all errors on a site, including notices, while developing.

I’ve seen some past answers to this question, but I’ve not been able to get it to work (e.g. I’ve added various combinations of this to the wp-config file):

ini_set(‘display_errors’, ‘1’);
ini_set(‘display_startup_errors’, ‘1’);
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, true );

Is there something I’m doing wrong, or does this no longer work with the current version of Local? I’m a theme/plugin developer, and I’m ashamed to say I’ve been developing without showing errors (either that, or, much less likely, the site I tested this on has zero php errors and/or notices)!

@redblue you might be interested in a plugin I made, WP Debugging.

1 Like

I like it; will it allow for displaying errors and/or notices as part of the html? I didn’t see a setting for that.

(Great job implementing the dependency installation; that’s pretty cool).

All it does is set many of the proper wp-config settings so that errors are visible. Installing and/or offering to install specific plugins simply help in the debugging process or help to see the logged errors.

Completely makes sense. I like the functionality this group of plugins provides; however, perhaps there’s something wrong with my setup – as I still can’t see php notices outputting in the html.

Are your sure you have any notices to display?

Those settings in wp-config should display errors to the screen and put them in the debug.log

I’m not 100% sure. But having been developing without them for a while, I assumed there might be at least a few notices.


Jon Schroeder
Elodin Design Inc.

Note: whenever I’m sending over changes to a site, please refresh your browser window after arriving on the page to see those changes.

Might want to intentionally introduce something just to see.

Also, Query Monitor will catch and display inline PHP errors in its window. The Query Monitor menu should change color and provide a link to the error.