There was a problem loading the comments.

How do I enable and view Wordpress error messages? (Using debug mode)

Support Portal  »  Knowledgebase  »  Viewing Article

How do I enable and view Wordpress error messages? (Using debug mode)

If your site is down or not working properly, you can find out the cause of the problem by enabling Wordpress error messages.

1. Log in to your cPanel account.

2. In the Files section, select File Manager and locate the wp-config.php file. It can usually be found in the home/public_html directory, but the directory may vary depending on where the site files are stored.

3. When you find the file, right-click on it and select Edit.
4. Find the "define (' WP_DEBUG ', false)" line and replace it with "true" instead of "false" to enable error viewing. Also, in order to keep error messages in the log and hide it from the page itself, it is important to add a few more lines: "define ('WP_DEBUG_LOG', true);" and "define ('WP_DEBUG_DISPLAY', false);". In the end result, everything should look like this:
5. Click "Save changes".

6. You can view the error messages in the wp-content directory. Select the debug.log file and click ‘‘View‘‘.

Note: For security reasons, be sure to delete the inserted lines when you are finished working with the error log.

Share via
Did you find this article useful?  

Related Articles


Add Comment

Replying to  

© Getspace - EU