There was a problem loading the comments.

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

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
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.
7d77d3158eb405ff510f629243ddb9e63eaf0b37?t=aa9ff1e5e112be8a50d20fc134dea1bd
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:
69dde7a00d5def53c6cb0a20effc1f2ef8233603?t=6d5285be46ae035f5af4cfff3b32b874
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


Comments

Add Comment

Replying to  

Captcha
© Getspace - EU