Forums / Upgrading from 1.2 to 1.3.x / Just want the old site back

Just want the old site back

Locked

Started by omega_shadow on 18 Dec 2007, 5:40 PM · Views: 4,029

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
18 Dec 2007, 5:40 PM
#1
omega_shadow avatar

omega_shadow

New Zenner

Join Date:
Dec 2007
Posts:
29
Plugin Contributions:
0

Just want the old site back

Alright, here is the situation:

I took over as the system Admin about a year ago. The E-Commerce site (ZenCart) was already set up and running on some very old server software. To my untrained eye, it seemed to me that ZenCart functions where, "amended" somehow as it had more functions then the current ZenCart version.

One month ago I finally convinced management that the webserver we were using to host our sites was extremely out of date (to the tune of 6 years) and must be updated.

I made a backup of the store database in zencart using a tool I found under the admin section, then completely saved the entire Zencart Directory.

The update of the server software went smoothly, however I encountered major problems when trying to reinstall Zencart.

First I decided I would install the latest version of Zencart. Zencart the proceeded to punch me in the balls multiple times by A) Not having a Backup Restore Setting like the old one (add on feature?) and B) not accepting the old templates. :lamo:

So, when that didn't work I said :censored: it and just uploaded the entire Zencart Directory I saved when I started this whole mess. I then used phpMyAdmin to upload the backup. At first I thought it worked. But then when I tried to get into the admin section I got this message:

Fatal error: Call to a member function Execute() on a non-object in /www/oww/includes/functions/sessions.php on line 72

And get these messages whenever tyring to look at the products:

1054 Unknown column 'p.products_id' in 'on clause'

To me, that looks like a MySQL database error:frusty:

So now that you know the situation, here is what I want:
I don't care if I use the new one or the old one. I just don't want to end up making a whole new site template and having to enter the 5000+ products by hand. Anyone know how to salvage this situation?

18 Dec 2007, 7:05 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Just want the old site back

Do you know what version the old Zen Cart was?

I would suggest reinstalling the latest Zen Cart (1.3.8a) and using phpMyAdmin to restore the backup of the old database. I used that method to go from 1.2.7 to 1.3.7 for the Holzheimer cart in my sig.

The template will take some work, but if the override was done correctly by the previous person, you should be able to get there. I suggest something like WinMerge or Beyond Compare to allow you to see the changes between the same files in version you were using and the latest.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

18 Dec 2007, 8:23 PM
#3
omega_shadow avatar

omega_shadow

New Zenner

Join Date:
Dec 2007
Posts:
29
Plugin Contributions:
0

Re: Just want the old site back

If I do remember correctly, the old version was 1.2.1.1

I am a Network Admin, not a website designer. I don't know where to begin when it comes to PHP code for the site.

Installing the newest version of ZenCart again. We will see where this takes us.

18 Dec 2007, 8:44 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Just want the old site back

You don't really need to know PHP to get the look of the site back. Depending on how the template is set up, much of that is controlled in the admin and the stylesheet.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

18 Dec 2007, 10:22 PM
#5
omega_shadow avatar

omega_shadow

New Zenner

Join Date:
Dec 2007
Posts:
29
Plugin Contributions:
0

Re: Just want the old site back

Alright, I installed the Current ZenCart and installed the old database. That was all it took to break ZenCart.

The Error was as follows:

1054 Unknown column 'user_agent' in 'field list'
in:
[insert into whos_online (customer_id, full_name, session_id, ip_address, time_entry, time_last_click, last_page_url, host_address, user_agent) values ('0', '¥Guest', '7bb2d21ed27c5693c07ec0e9a6efb1c3', '192.168.1.250', '1198014502', '1198014502', '/', 'OFFICE_IP_TO_HOST_ADDRESS', 'Opera/9.24 (Windows NT 5.1; U; en)')]
18 Dec 2007, 10:36 PM
#6
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Just want the old site back

Did you drop all of the tables in the new version DB before importing your old DB?
This process will need to handled at the phpmyadmin level. Then you will have to run the ZC installer and incrementally upgrade the db until you get to the current version.

The template will be the interesting part as the old template is tables based and the new version (1.3.0+) is div based.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

18 Dec 2007, 11:30 PM
#7
omega_shadow avatar

omega_shadow

New Zenner

Join Date:
Dec 2007
Posts:
29
Plugin Contributions:
0

Re: Just want the old site back

I am willing to do anything at this point. You tell me how to do what you just said and I will follow it to the letter

I have phpMyAdmin Access, so that is not a problem.

19 Dec 2007, 12:28 AM
#8
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Just want the old site back

After you setup 1.3.8 than go to the new database select all of the tables and use the drop command to delete them then use import to bring in the old DB. Then point your browser to the zc_install directory of the new install. Follow the directions and you should come to the page for the DB which should have the upgrade link instead of the install. Run the upgrade on the DB one version at a time til the DB is up to the current version......then come template work another topic.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

19 Dec 2007, 5:03 AM
#9
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Just want the old site back

I knew I was forgetting something! Thanks for picking up on that. :thumbsup:

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

19 Dec 2007, 10:08 AM
#10
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Just want the old site back

omega_shadow:

So, when that didn't work I said :censored: it and just uploaded the entire Zencart Directory I saved when I started this whole mess. I then used phpMyAdmin to upload the backup. At first I thought it worked. But then when I tried to get into the admin section I got this message:

Fatal error: Call to a member function Execute() on a non-object in /www/oww/includes/functions/sessions.php on line 72

That error is caused by using PHP 5 with Zen Cart v1.2 which only supports PHP 4.

> **omega\_shadow:**
>
> And get these messages whenever tyring to look at the products:
> ```
1054 Unknown column 'p.products_id' in 'on clause'
```To me, that looks like a MySQL database error:frusty:
The error is caused by using Zen Cart v1.2 with MySQL 5.

If you want to get your old store up and running as it was you will need to run it with PHP 4.x and MySQL 4.x as Zen Cart v1.2 won't work with the latest versions of PHP and MySQL. If you are confident with server side stuff then that might be a quick fix until you have the upgrade to v1.3.8 done.

Regards,
Christian.
6 Jan 2008, 5:09 PM
#11
omega_shadow avatar

omega_shadow

New Zenner

Join Date:
Dec 2007
Posts:
29
Plugin Contributions:
0

Re: Just want the old site back

Sorry about the delay, but I had a ssl error to deal with

alright, I tried to do as you said, but I get an error as right after right after I hit "update database now". Here it is:

in:
[select admin_id, admin_name, admin_pass from admin where admin_name = 'omega_shadow']
6 Jan 2008, 5:27 PM
#12
omega_shadow avatar

omega_shadow

New Zenner

Join Date:
Dec 2007
Posts:
29
Plugin Contributions:
0

Re: Just want the old site back

Cant find the post edit ??

I want to add that I dont care about the template at this point. I just want the database updated. I can do the template at a later time. I just want the databes working