Error messages in WordPress with WP Debug

Servage Webhosting makes is very easy to run WordPresses via our services. We offer an application installer which installs that tool for you with few clicks only. Check HERE to see how to use the application installer.

However, sometimes a WordPress page can get stuck and you see error messages. In this blog, we like to give information about

Enable error messages in WordPress with WP Debug

Let’s start and lets take a look at enabling error messages in WordPress with WP Debug:

For example, display an all-white page, an error 500 error or an error message that the page has technical problems. It can also be the case that functions on the page do not work at the touch of a button or that you can not start a new extension / theme etc. Then you can quickly activate the function in WordPress which shows a more accurate error message.

In order to activate the function, you will need to access the file yourdomaon.com/public_html/wp-config.php

You can enter and edit the file either via the Servage Filemanger, via FTP or via SSH. The file wp-config.php contains this line:

define (‘WP_DEBUG’, false);

This is to be changed to:

define (‘WP_DEBUG’, true);

 If there is no line with WP_DEBUG it needs to be added to wp-config.php  A tip here is also that you should disable cache on the page. If you have the line in your wp-config:

define (‘WP_CACHE’, true); 

Should you change it to:

define (‘WP_CACHE’, false);

 To ensure that the page does not appear in cache mode when troubleshooting. Change the line in the file and then upload the file again.  You will now probably get an error message on the screen that can be traced to an extension (plugin) or theme. You can then update this plugin via FTP (look it up on wordpress.org  download, unpack and then replace the files in your FTP under the directory wp-content / plugins /)  See also this guide  Then test if the page works again. If not, delete the extension files completely from your FTP.  When you are done, change back according to:

define (‘WP_DEBUG’, false)