DEV Community

Samcorp
Samcorp

Posted on

White Screen of Death (WSOD) in WordPress

Description
The website displays a blank white page without any error messages.

Causes

PHP syntax errors in theme or plugin files.
Memory limit exhaustion.
Conflicting plugins or themes.

Solution

  • Enable WordPress debugging in wp-config.php:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
Enter fullscreen mode Exit fullscreen mode

Check the debug log in wp-content/debug.log.

  • Increase PHP memory limit in wp-config.php:
define('WP_MEMORY_LIMIT', '256M');
Enter fullscreen mode Exit fullscreen mode
  • Deactivate all plugins by renaming the plugins folder and reactivating them one by one.

WordPress development services to build custom websites that are fast, secure, and easy to manage. From creating themes and plugins to optimizing performance, we ensure your website meets your business needs. Get a professional, user-friendly site that stands out.

Top comments (0)