Guides and tutorials

Hundreds of tutorials and step by step guides carefully written by our support team.

How to activate debug mode in Wordpress

Activate debug mode in Wordpress

Debug mode is a Wordpress tool that can be very useful in order to obtain the error messages that your web page made in Wordpress is giving you.

To activate this mode, you must follow these steps:

  1. You must connect via FTP, to do this, you can follow this [guide] (https://www.swhosting.com/es/comunidad/manual/gestion-de-cuenta-ftp).

  2. Once you have entered the FTP, you should go to /data/web and look for the file wp-config.php:

![enter image description here] (https://static.swpanel.com/doc/images/0176/0176_01.png)

3.Subsequent you must modify said file:

![enter image description here] (https://static.swpanel.com/doc/images/0176/0176_02.png)

  1. Once you have modified it, you must add the following line:

define ('WP_DEBUG', true);

![enter image description here] (https://static.swpanel.com/doc/images/0176/0176_03.png)

  1. Once you have added this line, errors will be displayed on your web page.

Activate debug mode in Wordpress, but without showing errors publicly

If you want to activate Debug mode, but do not want errors to be seen publicly, you must carry out the following steps:

  1. Connect via FTP and modify the file wp-config.php. In this file you must add the following line:

define ('WP_DEBUG_LOG', true);

Once this is done, in the ** wp-content / debug.log ** folder you will see the error logs.

More than 2000 m² of own facilities and Data Centers in Spain
Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.
More than 2000 m² of own facilities and Data Centers in Spain
Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.