Bird
0
0

You added this line to wp-config.php but your site shows a blank page:

medium📝 Debug Q14 of 15
Wordpress - WordPress Settings and Configuration
You added this line to wp-config.php but your site shows a blank page:
define('WP_DEBUG', 'true');
What is the likely problem?
AWP_DEBUG should be a boolean true, not a string 'true'.
BThe line must be placed after the closing PHP tag.
CYou need to restart the server for changes to apply.
DWP_DEBUG is not a valid constant in WordPress.
Step-by-Step Solution
Solution:
  1. Step 1: Check the data type of WP_DEBUG value

    WP_DEBUG expects a boolean true or false, not a string.
  2. Step 2: Understand impact of wrong type

    Using a string can cause PHP to misinterpret the value, leading to errors and blank pages.
  3. Final Answer:

    WP_DEBUG should be a boolean true, not a string 'true'. -> Option A
  4. Quick Check:

    Use boolean true, not 'true' string for WP_DEBUG [OK]
Quick Trick: Use true without quotes for booleans in config [OK]
Common Mistakes:
  • Putting config lines after PHP closing tag
  • Thinking server restart is needed for PHP changes
  • Believing WP_DEBUG is invalid constant

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes