Hello,
Looking at the code the error seems a bit odd... it certainly looks like it should work fine, I need to investigate this more.
Could you please edit /data/config.php, disable (set to 0) "COMMON_CACHE", then trigger the error once again and post it here?
Most likely, a quick fix (that doesn't really reach the core of the issue) would be to change method get_available_colors() in modules/CRM/Calendar/Event/EventCommon_0.php, line 53 to:
public static function get_available_colors() {
static $color = array(0 => '', 1 => 'green', 2 => 'yellow', 3 => 'red', 4 => 'blue', 5=> 'gray', 6 => 'cyan', 7 =>'magenta');
$tmp = Base_User_SettingsCommon::get('CRM_Calendar','default_color');
if (!$tmp) $tmp=1;
$color[0] = $color[$tmp];
return $color;
}
Is there any chance for us to take a look at the database? Perhaps a DB dump?
Also - please specify what version of epesi you're using.
Thanks for the report,
Arek