How to enable debugging in WordPress?

Many times we've faced issues with the WordPress blog due to which we either get a blank page or error 500 or some other custom error but not the exact error which was supposed to be shown and the exact reason for the issue.

So enabling debugging for the WordPress website or blog is quite simple as following the steps below:-

Step 1: Go to the domain folder where you've placed all WordPress files.

Step 2: Find the wp-config.php file and open it with the editor.

Step 3: Find the line 'define('WP_DEBUG', false);' in the file - if it exists change "false" to "true" and save the file.

Step 4: However if the line above doesn't exist in the file, then write it above "require_once(ABSPATH.'wp-settings.php');" and save the file.

After this, check the site again and you should get the exact error on the web page.

Sachin Tuesday 12 November 2013 - 06:14 am | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.