I have always had issues upgrading my store. Kinda put it off for many years, but now I'm up for a challenge again.
Current store version: 2.0.1.1
I have tried the upgrade method via the upgrade file that ships with the new version and it keeps failing.
Trying to upgrade to v3.0.1.1 I get many errors like these in the system logs:
PHP Notice: unserialize(): Error at offset 0 of 203 bytes in /var/www/html/site/admin/index.php on line 41
On the web gui:
Notice: unserialize(): Error at offset 0 of 8759 bytes in /var/www/html/site/system/library/user.php on line 24Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/header.php on line 58Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/header.php on line 59Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/header.php on line 62Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/header.php on line 63Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/stats.php on line 14Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/stats.php on line 22Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Notice: unserialize(): Error at offset 0 of 37 bytes in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Warning: vsprintf(): Too few arguments in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Notice: unserialize(): Error at offset 0 of 35 bytes in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Warning: vsprintf(): Too few arguments in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Notice: unserialize(): Error at offset 0 of 56 bytes in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Warning: vsprintf(): Too few arguments in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Notice: unserialize(): Error at offset 0 of 56 bytes in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Warning: vsprintf(): Too few arguments in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Notice: unserialize(): Error at offset 0 of 56 bytes in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Warning: vsprintf(): Too few arguments in /var/www/html/site/admin/controller/dashboard/activity.php on line 19
I suspect it to have something to do with my DB not being converted into the JSON(new) format.
Any assistance would be greatly appreciated
Current store version: 2.0.1.1
I have tried the upgrade method via the upgrade file that ships with the new version and it keeps failing.
Trying to upgrade to v3.0.1.1 I get many errors like these in the system logs:
PHP Notice: unserialize(): Error at offset 0 of 203 bytes in /var/www/html/site/admin/index.php on line 41
On the web gui:
Notice: unserialize(): Error at offset 0 of 8759 bytes in /var/www/html/site/system/library/user.php on line 24Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/header.php on line 58Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/header.php on line 59Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/header.php on line 62Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/header.php on line 63Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/stats.php on line 14Warning: implode(): Invalid arguments passed in /var/www/html/site/admin/controller/common/stats.php on line 22Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: array_merge(): Argument #1 is not an array in /var/www/html/site/admin/controller/common/stats.php on line 37Warning: in_array() expects parameter 2 to be array, null given in /var/www/html/site/admin/controller/common/stats.php on line 37Notice: unserialize(): Error at offset 0 of 37 bytes in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Warning: vsprintf(): Too few arguments in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Notice: unserialize(): Error at offset 0 of 35 bytes in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Warning: vsprintf(): Too few arguments in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Notice: unserialize(): Error at offset 0 of 56 bytes in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Warning: vsprintf(): Too few arguments in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Notice: unserialize(): Error at offset 0 of 56 bytes in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Warning: vsprintf(): Too few arguments in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Notice: unserialize(): Error at offset 0 of 56 bytes in /var/www/html/site/admin/controller/dashboard/activity.php on line 19Warning: vsprintf(): Too few arguments in /var/www/html/site/admin/controller/dashboard/activity.php on line 19
I suspect it to have something to do with my DB not being converted into the JSON(new) format.
Any assistance would be greatly appreciated
Looking at the paths and line numbers of those errors, they all look to be for 2.x files that you would have if upgrading to 3.x. How are you performing the upgrade?
Why 3.0.1.1 and not 3.0.3.8 ?
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
I'm following the upgrade steps listed in the package file: "Upgrade.txt".ADD Creative wrote: ↑Wed Dec 21, 2022 6:52 pmLooking at the paths and line numbers of those errors, they all look to be for 2.x files that you would have if upgrading to 3.x. How are you performing the upgrade?
1. BACKUP YOUR EXISTING STORE FILES AND DATABASE!!
- Backup your database via your store Admin->System->Backup
- Backup your files using FTP file copy or use cPanel filemanager to create a zip of all the existing opencart files and folders
2. Download the latest version of OpenCart and upload ALL new files on top of your current install EXCEPT your config.php and admin/config.php. If you are up to date with the last recent version and want to find just the new files that have changed since the last version, you can follow this guide to create a smaller changes-only patch. But for most, the full opencart zip will suffice.
Watch this video to understand how to properly upload folder using FTP: http://forum.opencart.com/viewtopic.php ... 645#p46371
3. Browse to http://<yourstore.com>/install Replacing <yourstore.com> with your actual site (and subdirectory if applicable).
4. You should see the OpenCart Upgrade script.
- If you see the OpenCart Install page, then that means you overwrote your config.php files. Restore them from your backup first. Then try again.
5. Click "Upgrade". After a few seconds you should see the upgrade success page.
- If you see any errors, report them immediately in the forum before continuing.
6. Clear any cookies in your browser
7. Goto the admin side of your store and press Ctrl+F5 3x times to refresh your browser cache. That will prevent oddly shifted elements due to stylesheet changes. Login to your admin as the main administrator.
8. Goto Admin->Users->User Groups and Edit the Top Adminstrator group. Check All boxes.
- This will ensure you have permissions for all the new files
9. Goto Admin->System Settings
- Update any blank fields and click save.
Even if you do not see any new fields, click save anyway to update the database with any new field names.
10. Other Adjustments that may need to be made, depending on which version you are upgrading from and to. These are broken down by which version they were added in. So if you are not currently at that version, you may need to make changes
I will give it a go today, but the upgrade fails with any new version.
I've tried: v2.2.0.0, v2.3.0.2, v3.0.1.1, 4.0.1.1(failed due to not having PHP8, I'm on Centos 7 and tried to upgrade to php8, but could not).
The upgrade.txt is kinda incomplete...
If you have PHP 8 on server, use this 3.0.3.8
https://github.com/opencart/opencart/tr ... aintenance
To upgrade to PHP 8 you can search on google
https://patrickdomingues.com/2021/05/01 ... -centos-7/
Only OC 4.0.x.x require PHP 8....but is not ready for production.
Last solution...pay a developer to upgrade your store
LE. See here fix for index.php error
viewtopic.php?t=135346#p531516
If you have PHP 8 on server, use this 3.0.3.8
https://github.com/opencart/opencart/tr ... aintenance
To upgrade to PHP 8 you can search on google
https://patrickdomingues.com/2021/05/01 ... -centos-7/
Only OC 4.0.x.x require PHP 8....but is not ready for production.
Last solution...pay a developer to upgrade your store
LE. See here fix for index.php error
viewtopic.php?t=135346#p531516
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Just tried this version and I get this message when browsing to site.com/install:
PHP Fatal error: Call to undefined function start() in /var/www/html/site/install/index.php on line 37
It clear from the errors you have posted that you haven't replaced all you existing files with the new version.
2. Download the latest version of OpenCart and upload ALL new files on top of your current install EXCEPT your config.php and admin/config.php.
Thanks for taking the time to help.ADD Creative wrote: ↑Thu Dec 22, 2022 5:14 pmIt clear from the errors you have posted that you haven't replaced all you existing files with the new version.
2. Download the latest version of OpenCart and upload ALL new files on top of your current install EXCEPT your config.php and admin/config.php.
I have made sure I have copied all the files now and then was presented with PHP7.3+ needed error. I then proceeded to upgrade to PHP 8.1. The upgrade screen then loaded. I clicked upgrade and got the following errors from the GUI:
https://file.io/VTjG4LJxwZps
Since upgrading my php, my main site on the same server running v2.0.1.1 is now down

Last edited by shablamy on Thu Dec 22, 2022 9:33 pm, edited 1 time in total.
If old PHP versions are still on the server...you can add old php version in v2.0.1.1 htacces file.
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Not at the moment, still a few too many bugs, stick with the 3.0.x.x_Maintenance branch on GitHub.
https://github.com/opencart/opencart/tr ... aintenance
Who is online
Users browsing this forum: No registered users and 2 guests