Vox Populi(x) forum

Alexandria Book Library => Supporto (Support) => Topic started by: Bebrona on 03 September 2023, 12:06:18

Title: I can not migrate from 3.1.5 to 4
Post by: Bebrona on 03 September 2023, 12:06:18
Before i migrate to version 4 i would like to export all my books from 3.1.5 but this is not possible.

I get this error after pressing the export-key

0 Call to undefined function each()
Title: Re: I can not migrate from 3.1.5 to 4
Post by: federica on 04 September 2023, 10:05:02
Hi Bebrona,
the "each" function is not longer available in PHP 8
You have to set PHP 7.4 then try to export again.
Otherwise you can make the backup directly using mysql (eg: phpmyadmin)
Title: Re: I can not migrate from 3.1.5 to 4
Post by: Bebrona on 04 September 2023, 21:12:27
Thanks for the answer. I managed to export the file.

But when i try to IMPORT it in version 4.0 I get this error

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<br /> <b>Deprecated</b>: The each() function is deprecated. This message will ' at line 1

Title: Re: I can not migrate from 3.1.5 to 4
Post by: federica on 05 September 2023, 10:05:24
The export file from abook 3.x is not compatible to Abook 4.x.
To upgrade your website you have to upgrade joomla to 4.x then upgrade Abook installing the 4.x version.
Title: Re: I can not migrate from 3.1.5 to 4
Post by: Bebrona on 05 September 2023, 19:06:28
So if i understood this correctly i first have to install Abook 3.x on Joomla 4.x import the files and than upgrade Abook to 4.x?
Title: Re: I can not migrate from 3.1.5 to 4
Post by: federica on 05 September 2023, 20:11:20
No, it is not correct.
If you have a joomla 3 website and you want upgrade it to joomla 4 you have to upgrade joomla then upgrade Abook.
The export is not necessary.
Title: Re: I can not migrate from 3.1.5 to 4
Post by: Bebrona on 08 September 2023, 15:43:36
I had a joomla 3 website with Abook 3, but i'm not able to update my joomla 3 to version 4. When i try to i get a lot of errors. So i'm building a new joomla 4 website, but i would like to export - import from Abook 3 to Abook 4 otherwise i will have to manualy input all my books again.

So can you please help me on how i can solve this?
Title: Re: I can not migrate from 3.1.5 to 4
Post by: Bebrona on 14 September 2023, 10:17:11
Can you please give me support on this issue? I would like to resume to use Abook in Joomla 4 but if this is not possible i will have to look for another solution.
Title: Re: I can not migrate from 3.1.5 to 4
Post by: Bebrona on 16 September 2023, 09:18:31
I give up.... Abooks was a good component, had lots of books registred, but i have to start allover again from scratch, this time with another component :(
Title: Re: I can not migrate from 3.1.5 to 4
Post by: federica on 19 September 2023, 14:10:33
Hi Bebrona,
it is not my fault if the upgrade of your web site gets lot of errors.
I'm developing Abook in my free time. I use my free time also for answering in this forum to help people that have needs. It is not a pleasure for me to receive some pressure from who use Abook for free. Please, be patient and keep in mind that I have no obligation to you.
If you are no longer satisfied of Abook feel free to insert your books in another component from scratch. Thanks for using a book so far.

Otherwise, if you decide to continue using Abook, to solve your upgrade problems try to follow this steps:
1) install a new Joomla web site
2) copy the old Abook database tables to the database of the new web site
3) proceed to install Abook 4.x component.
The tables related to Abook start with "ab", eg:"prefix_ab....".
Title: Re: I can not migrate from 3.1.5 to 4
Post by: Bebrona on 22 September 2023, 16:52:50
I tried this solution and this also doesn't work.

When i try to import the abooks database i get this error

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<br /> <b>Deprecated</b>: The each() function is deprecated. This message will ' at line 1
Title: Re: I can not migrate from 3.1.5 to 4
Post by: federica on 26 September 2023, 11:49:20
You have to copy the tables from old database to new web site database directly by Phpmyadmin then install Abook.
The import file is not required.