Randem Systems Support Board

BotBanish => BotBanish - General Questions, Report Bugs, Problems etc... => Topic started by: Randem on May 30, 2020, 02:48:30 PM

Title: PHP Warning: Use of undefined constant BOTBANISH_TIMEZONE
Post by: Randem on May 30, 2020, 02:48:30 PM
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');