XF 2.2 Disabling Debug Mode (reloading config.php)

jmyres

Member
Several months ago we completed a major upgrade from Xenforo 1.4 to 2.2. For whatever reason, debug mode was enabled after the upgrade and has been enabled on our live site ever since. I am now learning that's not good. I have changed the debug variable to 'false" in the /src/config.php file, but debug mode is still active.

Do I need to reboot our server to get config.php to reload or is there a less invasive way?

Also, what liabilities have we exposed ourselves to by having debug mode enabled on a live site?

Thanks for any advice or input.
 
Debug mode is automatically activated with Developer mode too.
Check your config.php to see if dev mode is not activated.
PHP:
$config['development']['enabled'] = true;
If so, turn it to false or comment it
PHP:
#$config['development']['enabled'] = true;
 
Thank you for the reply. With quite a bit of help from another member here, we discovered that changing...

Code:
$config['debug'] = 'false';

to....

Code:
$config['debug'] = false;

...by removing the ' ' around the false variable in config.php solved the issue. That, plus restarting the php-fpm service in Web Hosting Manager on our VPS to get php to re-load our config was what finally disabled debug mode.
 
Back
Top Bottom