GithubHelp home page GithubHelp logo

audi63 / wp-no-white-screen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stracker-phil/wp-no-white-screen

0.0 0.0 0.0 17 KB

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

License: GNU General Public License v2.0

PHP 100.00%

wp-no-white-screen's Introduction

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.

wp-no-white-screen's People

Contributors

stracker-phil avatar daviseford avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.