1

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.

Re: Restore .sql backup - No file selected.

Hi Nem,
How did you backup the V4.5.2 database to a .sql file? Did you use the calendar's database page to make the back up or did you use a tool (like phpMyAdmin)?

If you used the calendar's database page to make the backup, you should also use the database page of the V5.1.1 calendar to restore the backup file in the new calendar.
If you used for instance phpMyAdmin, you should also use phpMyAdmin to import the backup file in the new calendar and thereafter run the calendar file upgrade511.php (for example: https://your.website.com/calendar/upgrade511.php).
If you run into troubles, you can also send me your V4.5.2 database backup file (.sql file) by email via the Contact Us page and then I will upgrade the database for you to V5.1.1 and return the upgraded file to you.
Roel

3

Re: Restore .sql backup - No file selected.

I backup via database page and try to restore over database page too. But i see this error. Today a i try download latest version 520M if solve my problem, but rise up new problem...

I cant upload backup .sql file thanks to private data. Sry

Re: Restore .sql backup - No file selected.

Hi Nem,
Could you send me the .sql backup file (via the Contact Us page). I will then try to upgrade the file and send it back to you.
Roel