Bird
0
0

What will happen if you set define('WP_DEBUG', false); in wp-config.php and then try to load a page with a PHP error?

medium📝 Predict Output Q4 of 15
Wordpress - WordPress Settings and Configuration
What will happen if you set define('WP_DEBUG', false); in wp-config.php and then try to load a page with a PHP error?
AThe site will redirect to the admin login page
BThe error message will be displayed on the page
CThe error will be hidden and the page may show a blank screen
DWordPress will automatically fix the error
Step-by-Step Solution
Solution:
  1. Step 1: Understand WP_DEBUG false behavior

    When WP_DEBUG is false, WordPress hides PHP errors from visitors to avoid showing sensitive info.
  2. Step 2: Predict page behavior on error

    If a PHP error occurs, it will be hidden, often causing the page to appear blank or partially loaded.
  3. Final Answer:

    The error will be hidden and the page may show a blank screen -> Option C
  4. Quick Check:

    WP_DEBUG false = Hide errors [OK]
Quick Trick: False debug hides errors, may cause blank pages [OK]
Common Mistakes:
  • Expecting WordPress to fix errors automatically
  • Thinking errors will still show with debug off
  • Assuming site redirects on error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes