3

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

2

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

// Enable debugging
define( 'WP_DEBUG', true );
4
  • cool thanx! What's the reason for adding the constant instead of having it on by default? Just curious.
    – dkmojo
    Oct 26, 2011 at 14:29
  • Having it on by default? Have you seen the output generated by most Plugins? Oct 26, 2011 at 15:16
  • Turned it on and holy crap! Now I need to fix 5+ plugins code or re-write them. At least mine only had the one error. This makes me kind of wish there was a standard that plugins have to follow or they cannot be installed/used. Thanks again for the help
    – dkmojo
    Nov 10, 2011 at 15:46
  • Never mind plugins, I've just switched it on and WP 3.3 generates quite a few messages itself.
    – ProfK
    Dec 16, 2011 at 6:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.