LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Problems / problem first web installation
Posted:  25 Nov 2014 21:44
sad  hi!
I tried your excellent work  locally (xampp) and it works great..
Today I installed it on my website (three times) and at the end the calendar page displays some errors

Warning: array_merge() [function.array-merge]: Argument #7 is not an array in /membri/xxx../calendar/common/toolbox.php on line 176
Warning: Invalid argument supplied for foreach() in /membri/xxx../calendar/common/toolbox.php on line 177

any help???
Posted:  28 Nov 2014 16:44   Last Edited By: Roel B.
Hi there,

Edit the file common/toolbox.php as follows:
replace line 176 . . .
  $superGlobals = array_merge($_GET,$_POST,$_COOKIE,$_SERVER,$_ENV,$_FILES,$_SESSION);
by . . .
  $superGlobals = array_merge($_GET,$_POST,$_COOKIE,$_SERVER,$_ENV,$_FILES,(isset($_SESSION) and is_array($_SESSION)) ? $_SESSION : array());

Now it should be fine.
Posted:  28 Nov 2014 20:18
great .. tks thump_up