PHP Warning: Use of undefined constant BOTBANISH_TIMEZONE

Started by Randem, May 30, 2020, 02:48:30 PM

Previous topic - Next topic

Randem

In BotBanish 3.6.01 you may get the error
PHP Warning:  Use of undefined constant BOTBANISH_TIMEZONE - assumed 'BOTBANISH_TIMEZONE'

This error can be fixed by adding the following code to the Settings_Client.php file that is found in the Client Folder of BotBanish.

Find:
if (!defined('BOTBANISH_LOCAL_ANALYTICS') || BOTBANISH_LOCAL_ANALYTICS !== true) {

if (!defined('BOTBANISH_USER_ID'))
define('BOTBANISH_USER_ID', '0');
}
Add After:
if (!defined('BOTBANISH_TIMEZONE'))
define('BOTBANISH_TIMEZONE', 'Pacific/Honolulu');