Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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!

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

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

// Enable debugging
define( 'WP_DEBUG', true );
share|improve this answer
    
cool thanx! What's the reason for adding the constant instead of having it on by default? Just curious. –  dkmojo Oct 26 '11 at 14:29
    
Having it on by default? Have you seen the output generated by most Plugins? –  Chip Bennett Oct 26 '11 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 '11 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 '11 at 6:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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