In the config file (and possibly elsewhere, I haven't looked) the array keys are not wrapped in quotes.
$CFG_TABLE[communication] = "communication";
$CFG_TABLE[games] = "games";
$CFG_TABLE[history] = "history";
$CFG_TABLE[messages] = "messages";
$CFG_TABLE[pieces] = "pieces";
$CFG_TABLE[players] = "players";
$CFG_TABLE[preferences] = "preferences";
should be written as:
$CFG_TABLE['communication'] = "communication";
$CFG_TABLE['games'] = "games";
$CFG_TABLE['history'] = "history";
$CFG_TABLE['messages'] = "messages";
$CFG_TABLE['pieces'] = "pieces";
$CFG_TABLE['players'] = "players";
$CFG_TABLE['preferences'] = "preferences";
any array key not wrapped in quotes is assumed by PHP to be a constant, which is not correct. Although the code eventually works, it throws errors.
Fixed on BZR.