Post by jamfe355 » Wed Nov 02, 2016 7:37 pm

Hi all,

I tried to upgrade to 2.3.0.2, but it failed. Not known to me at the time, i should of taken a backup of the myphp/sql file from my host. I did not know this was important at the time, as the host had told me i could use their provider restore feature (1&1). They forgot to add in that i need a back up of the database sql file!

I did take a full back up of the working pre upgrade 1.5.6 via FTP, and also a full backup sql file from the opencart back up/restore section of the Opencart admin page.


My issue is that i feel the best thing to do is to do a fresh install of 1.5.6 and then upload, via the opencart admin page, the Opencart back up sql file. Accept it will not accept it, as the back up was taken from one databse prefix (600682914), and now im on a new php databse (db654546097). I have left the failed upgrade on the database 600682914, where the working 1.5.6 was)

What is my best way forward? Do I need to install 1.5.6 on the same database it was on before so the back up will work? oh and here is the message when trying to use my back up on a fresh opencart install ......

Notice: Error: Table 'db654546097.address' doesn't exist
Error No: 1146
TRUNCATE TABLE `address` in /homepages/42/d600671604/htdocs/1.5.6/system/database/mysqliz.php on line 60

Newbie

Posts

Joined
Wed Nov 02, 2016 7:24 pm

Post by simonpieman » Thu Nov 17, 2016 10:04 am

Did you manage to solve this? I apologise I got a little confused with your question.

In theory should be able to import the SQL file directly into a MYSQL database using the phpmyadmin feature in Cpanel.

Go the All Blacks!


Active Member

Posts

Joined
Thu Jul 02, 2015 8:58 am
Location - NZ - Auckland

Post by jamfe355 » Tue Nov 22, 2016 9:52 pm

not at present. It seems the sql back up form the admin page of opencart is not the same format as the sql stored by my host.

after trying my hardest for weeks, i have some of the site working, but cannot log into my admin page.

I get this

Notice: unserialize(): Error at offset 0 of 17423 bytes in /homepages/42/d600671604/htdocs/store/system/library/user.php on line 23Notice: unserialize(): Error at offset 0 of 17423 bytes in /homepages/42/d600671604/htdocs/store/system/library/user.php on line 47Warning: Cannot modify header information - headers already sent by (output started at /homepages/42/d600671604/htdocs/store/admin/index.php:85) in /homepages/42/d600671604/htdocs/store/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /homepages/42/d600671604/htdocs/store/admin/index.php:85) in /homepages/42/d600671604/htdocs/store/vqmod/vqcache/vq2-system_engine_controller.php on line 29

Newbie

Posts

Joined
Wed Nov 02, 2016 7:24 pm

Post by IP_CAM » Wed Nov 23, 2016 8:28 am

simonpieman wrote:In theory should be able to import the SQL file directly into a MYSQL database using the phpmyadmin feature in Cpanel.
Not really so, a Backup, done by the OC ADMIN Backup/Restore Function, will NOT restore any TABLES, but only their Content, if a Restore Procedure is made by any RESTORE Function, regardless of, how this Restore Attempt is made, INTO an empty new DB.
---
Therefore, a DB should have been copied/saved IN FULL, including it's TABLES, and everything, by USE of the Server MyAdmin DB Tool, before starting to play around with.
---
In addition, serialize/unserialize seems not longer to be Part of OC v.2.x. This means, that a 1.5.x DB-Content has to be updated, in several places, to match whatever OC v.2.x, even depending on the OC v2 Version used.
---
Some Links to Upgrades:
---
OC Professional Upgrade Service from any version to latest 2.x.x
https://www.opencart.com/index.php?rout ... n_id=20437
---
OpenCart Migration & Upgrade Tool
https://www.opencart.com/index.php?rout ... n_id=19572
---
LitExtension: OpenCart to OpenCart Migration Module
https://www.opencart.com/index.php?rout ... n_id=27239
---
Opencart Migration & Remote Upgrade Tool
https://www.opencart.com/index.php?rout ... n_id=24347
---
Cart2Cart: OpenCart Upgrade Module
https://www.opencart.com/index.php?rout ... n_id=16464
---
Database Converter to OpenCart 2
https://www.opencart.com/index.php?rout ... n_id=20423
---
More:
https://www.opencart.com/index.php?rout ... ch=upgrade
---
Good Luck ;)
Ernie

Attachments

dbcopy.jpg

Copy DB into another One on the Server - dbcopy.jpg (46.23 KiB) Viewed 2446 times


I'm no longer quite active at the Forum, to reach me, better contact: jti@jacob.ch
My free Opencart LIGHT 1.5.6.5 Code is available on GitHub soon,
a Demoversion of it can be seen in Action here: http://www.bigmax.ch
930+ FREE OC Extension-Repositories - from OC v.1.5.x up, on the
world's largest OC-related Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand

Post by EvolveWebHosting » Tue Nov 29, 2016 2:28 am

amdev wrote:You should upgrade to 2.2 instead
Try this tutorial 1.4 1.5 to 2.2https://www.youtube.com/watch?v=xaZzScMgZD4
or 1.5 to 2.0.1.1 https://www.youtube.com/watch?v=eOsOswYBGuU
Downloading v2.3.0.2 and using the included upgrade script is the best way to go. Depending on how the upgrade is done, you may need to manually remove the old payment, shipping and module files.

Image
https://www.evolvewebhost.com
$10.49 .com Registration and $9.99 .com Transfers in now
Guaranteed top level opencart performance and support. Risk free 30 day money back guarantee & free transfers.
Image


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by deepakrajput » Mon Feb 13, 2017 10:16 am

I think https://www.youtube.com/watch?v=xaZzScMgZD4 tutorial can better help to upgrade the version.

Opencart - Main Site


New member

Posts

Joined
Sat Apr 09, 2016 3:35 am
Location - CA

Post by dookable » Mon Nov 27, 2017 1:44 am

I have just upgraded from 1.5.5.1 to 2.3.0.2

What I did was.
Download/Exported the following list from my database.
database migration 1551-1

address

category
category description
category path
category to store

coupon
coupon category
coupon history
coupon product

customer
customer ban ip not in 2302
customer group
customer group description
customer history
customer ip
customer login

manufacturer
manufacturer to store

option
option description
option value
option value description

order
order history
order option
order product
order status
order total
order voucher

product
product description
product discount
product image
product option
product option value
product related
product reward
product special
product to category
product to layout
product to store

return
return history

setting

tax rate
tax rule

url alias

voucher
voucher history

zone to geo zone


I then installed a clean copy of 2.3.0.2 with a new clean database.

Once installed, I dropped the above list from the new 2302 database and uploaded the exported list from the previous data base.

All my orders, customer logins, products, categories etc are there. I have had to clean a few products in admin but has been no biggy.

I hope this helps someone :)..

New member

Posts

Joined
Thu Sep 04, 2014 11:29 pm
Who is online

Users browsing this forum: No registered users and 4 guests