RSS

LuxCal Forum

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

User:   Password:   Remember Me?   
LuxCal Forum / General / Problems / Warning: stripslashes() expects parameter 1 to be string, array given in index.php on line 73
Posted:  04 Nov 2017 13:29   Last Edited By: coffe1nk
I have followed installation instruction and Got this error After install Luxcalendar

Warning: stripslashes() expects parameter 1 to be string, array given in D:/Document/Bitnami/Redmine/apache2/htdocs/luxcalindex.php on line 73

Warning: stripslashes() expects parameter 1 to be string, array given in D:/Document/Bitnami/Redmine/apache2/htdocs/luxcalindex.php on line 73


PHP Version 5.6.31
OS windows 8.1
Apache 2.4.27

What should I do to eliminate this error

Regards,
Coffe1nk
Posted:  06 Nov 2017 12:45   Last Edited By: Roel B.
Hi Coffe 1nk
This has something to do with cookies, but it's unclear to me why this happens. Do you have cookies enabled in your browser?
Line 73 in the index.php file producing this error is only meant for PHP versions < 5.4. Since you are using PHP 5.6, I suggest to edit the index.php file (in the calendar root directory) and delete the following two lines of code (lines 72 and 73):

//strip slashes in case magic_quotes on (PHP < 5.4)
if (!empty($_COOKIE)) { $_COOKIE = array_map('stripslashes', $_COOKIE); }


Roel