• Stars
    star
    109
  • Rank 319,077 (Top 7 %)
  • Language
    PHP
  • License
    GNU General Publi...
  • Created almost 10 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Got a white-screen-of-death in WordPress? Use this file to display the error!

wp-no-white-screen

This plugin helps troubleshoot issues with the infamous WordPress WSOD (White Screen of Death). Most errors can be caught with WP-DEBUG turned on using tools like X-Debug, but some of the fatal errors don't come through either with WP-DEBUG or your PHP error handler. This is because PHP lets WP "handle" the error - the way WP handles an fatal error is to not display it [to increase security, since error messages often reveal information that can be used to leverage an attack on a site]

Plugin developers and advanced users who troubleshoot complex issues will find this tool handy. No more messing with your PHP configuration or blind-testing to find out what's going on!

Usage

  • Open up the /mu-plugins folder in your WordPress Directory (or create one) usually located within /wp-content folder in your /public_html folder. Select the PHP file no-white-screen.php and place it into the /wp-content/mu-plugins folder in your WordPress Directory. You will have all errors displayed or wrriten to log depending on your settings in the next step.

  • Open the wp-config.php file in your root Wordpress installation and make these changes

   // Comment this out or change to true 
   // define('WP_DEBUG', false);

   define('WP_DEBUG', true);
   
   // If you want to write to log
   define('WP_DEBUG_LOG', true);

   // If you want to hide errors from users (Used mostly for live sites)
   define('WP_DEBUG_DISPLAY', false);

   // Just in case
   @ini_set('display_errors', 0);

Further Reading

Tip:

If you still don't see any errors, then it's likely that there's something fundamentally wrong with WordPress. You should start debugging /wp-settings.php by adding breakpoints and identifying the last execution point(or line).

IMPORTANT Remember to remove this file again after debugging the error! Leaving it will cost your server valuable performance and can also expose error information to the public, which decreases your site's security.

More Repositories

1

divi3-vb-custom-modules

Upgrade your Divi 3 theme to enable custom modules in the Visual Builder (=front end editing)
PHP
43
star
2

wp-debug-redirect

Allows you to debug mysterious page redirects
PHP
41
star
3

floating-tools

Plugin for CKEditor to show an floating toolbar for quick access to formatting functions!
JavaScript
12
star
4

devkinsta-tools

Tools to enhance DevKinsta
Shell
10
star
5

codeceptjs-pixelmatchhelper

A CodeceptJS helper that integrates pixelmatch image comparison for automated, visual regression tests.
JavaScript
8
star
6

orig-user-avatar

The original WP User Avatar plugin, before it became ProfilePress
PHP
7
star
7

wp-webslides-presentations

A free WordPress plugin to create Webslides presentations directly in WordPress, using the new block editor (Gutenberg)
CSS
3
star
8

bitburner

Script collection for the Bitburner game -- https://store.steampowered.com/app/1812820/Bitburner/
JavaScript
2
star
9

gdpr-cache-script-styles

Free WordPress plugin that caches external scripts and styles and serves them from your local website to make it more compliant with GDPR and CCPA rules
PHP
2
star
10

docker-memgpt

A docker-compose setup to run MemGPT in a predefined container environment
Shell
2
star
11

divi3-calendar-module-demo

Code zu https://philippstracker.com/wordpress/divi-3-so-erstellst-du-ein-neues-modul-fuer-den-visuellen-editor/
PHP
1
star
12

codeable-extension

Improves the Codeable app for experts
JavaScript
1
star
13

wp-divi-module-template

Plugin template to create a Divi Module using react
1
star
14

wp-js-debugger

Debugging plugin to analyze JS events
JavaScript
1
star