why don’t I get error messages in admin when developing?

I am curious as to why my screen goes completely blank when an error is present in my code. This only happens to me when it is an admin function.

No warnings, no syntax error messages, nothing. Just a blank screen. Which makes it really difficult to find the problem.

How do I get the errors to show up and how do I stop the blank screen?

Thanx in advance!

1 Answer
1

You need to add the following to your wp-config.php file:

// Enable debugging
define( 'WP_DEBUG', true );

Leave a Comment