To enable debug mode in PrestaShop:
config/defines.inc.php
_PS_MODE_DEV_
define('_PS_MODE_DEV_', false);
false
true
define('_PS_MODE_DEV_', true);
After identifying the source of errors on the site and eliminating their causes, it is recommended to disable debug mode.