Topic: Restore .sql backup - No file selected.
I backup DB file.sql from v4.5.2M and i want to restore into new hosting with php8 into v luxcal511M.
When i use lctools.php in root folder i choose feature Import calendar backup file of a previous LuxCal version and search file which have 8MB size and click import.
OUTPUT:
- No file selected.
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /www/hosting/XXX/cal/lctools.php:975 Stack trace: #0 /www/hosting/XXX/cal/lctools.php(975): in_array() #1 {main} thrown in /www/hosting/XXX/cal/lctools.php on line 975
I thing some problem with POST variables in php. on this line you can view:
$checked = (!empty($_POST['selCal']) and in_array($k,$_POST['selCal'])) ? " checked" : '';
Have a some tip how to fix it?
Thanks so much.