If you use a CMS sometimes you can detect several errors as a consequence of upgrades, new modules installation, plugins, etc. One of the most popular consequence is a blank page which may occur when, for some reasons, the code detects an error and gets blocked.
In these situations you can enable the Debug mode, which allows you to view all code errors and to solve, in 99% of cases, the problem.
Here is list of the procedures you have to follow to enable the Debug mode in the most popular CMS.
To enable Debug mode in WordPress:
- Open the configuration file wp-config.php with a text editor;
- Find the directive define('WP_DEBUG', false) and turn "false" into "true";
To enable Debug mode in Prestashop:
- Open the /defines.inc.php configuration file;
- Find the string define('_PS_MODE_DEV_', false) and turn "false" into "true";
- Save changes.
To enable Debug mode in Joomla:
- Open configuration.php configuration file;
- Find the strings public $debug = '0';public $debug_lang = '0' and change from "0" to "1";
- Save changes.
If you use Joomla you can also use your admin control panel and set the Debug mode from graphic interface, clicking on "Global configuration", then "System" and finally on "Debug settings".
To enable Debug mode in Drupal:
- Open the file sites/default/settings.php;
- Add the string $config['system.logging']['error_level'] = 'verbose'.
In the end, to enable the general debug mode and force the visualization of errors in a PHP file, type the following string at the beginning of the code: