Simple WordPress debugging

In the file wp-config.php, add the following code:

if ( isset($_GET['debug']) && $_GET['debug'] == 'debug')
  define('WP_DEBUG', true);

I add ?debug=debug to its URL and see what’s causing the trouble.

Change that second ‘debug’ to a key of your own choosing, so not everyone out there can open debug mode on your blog

Recommended Posts

No comment yet, add your voice below!


Add a Comment

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *