How To Turn On Debug Messages For WordPress

Wordpress By default WordPress will turn off all debugging messages so the visitor to the site can't see any error messages showing anything wrong with the code.

If you do any WordPress development such as new plugins or theme development then this can cause a problem as you won't see if you have any of the settings wrongs.

Turning on debug mode will display all warnings or error messages you have with any installed plugins or themes. This makes it easy to spot if any are out of date or using old WordPress functions which are not supported any more.

Turn On Debugging

To turn on debug messages you need to open up your wp-config.php file and find the line.

define('WP_DEBUG', false);

Comment out this line a replace it with.

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);

Please Note

You must remember to turn this off when you put your website live or the visitor will be able to see all your debugging messages.

Back to top ^

Join Paulund

  • Get access to 100s of premium tutorials and downloadable content
  • Members content consists of Premium WordPress plugins, CSS packages, jQuery packages, tutorial demo files and templates for 100s of web development tutorials
  • In-depth development tutorials
  • Priority tutorial requests
  • Priority email development support
  • No ads

Here at Paulund you'll find Web Development tutorials and snippets focusing mainly on PHP, WordPress and CSS. Members will get access to premium tutorials that go into more detail about development with these languages. You will also get access to downloadable premium content based on the tutorial.

Join Paulund

Leave a Reply

Your email address will not be published. Required fields are marked *