If this is your first visit, check our documentation. To post, register or login.

upgrade

Locked

Started by aprogrammer on 19 Jan 2011, 8:21 PM · Views: 2,742

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
19 Jan 2011, 8:21 PM
#1
aprogrammer avatar

aprogrammer

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

Post #1 by aprogrammer

I ran an upgrade but I get an error by the database upgrade that certain fields exist
If i do done with update - does it update the rest of it?
as i'm getting errors now in the admin

Please advise

20 Jan 2011, 4:47 PM
#2
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #2 by vger

  1. You install the latest version of Zen Cart, with its up to date db.
  2. You take a backup of your old db.
  3. You 'drop' the tables in the new db and import the old db.
  4. You use the 1.3.9h zc_install folder and run the install, selecting the "Upgrade only database" option.

You don't do this on a live site - you do it on a test site.

You use the 'images' folder from your old site (making sure there are no PHP files inside it) and re-add your template to the templates folder.

You should then have a working 1.3.9h with all your product and customer data and your template.

Vger

20 Jan 2011, 5:00 PM
#3
aprogrammer avatar

aprogrammer

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

Post #3 by aprogrammer

what i did was overwrite the files on existing

If I do it your way - I then have to move all the new files back to the old directory?

this is a lot of extra work and time to do the moving

Is that really the best way to do it?

20 Jan 2011, 5:11 PM
#4
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #4 by vger

Is that really the best way to do it?

Yes, it is. If you have any add-ons applied to your shop then they may not be compatible with 1.3.9h, and so you have to reapply those making sure that the versions you install are up to date and say that they are compatible with 1.3.9+. Otherwise they will break your site.

If you are doing the upgrade in response to a hack then just overwriting existing files won't remove any new files placed there by a hacker.

It doesn't take that long to do, and it's best to put your live site "Down For Maintenance" while you work on the new test site - otherwise the databases will get out of sync and you'd have to redo that part all over again.

Vger

20 Jan 2011, 5:21 PM
#5
aprogrammer avatar

aprogrammer

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

Post #5 by aprogrammer

thanks for your help - i'm new to zencart.
so when i'm up to the database part -can I just import all tables?
or I have to one by one drop and recreate?

I want to install http://www.zen-cart.com/index.php?main_page=page&id=15

is this automatic with the lastest version or do I have to install the add-on from somewhere.

20 Jan 2011, 5:28 PM
#6
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #6 by vger

If you look at what I said earlier:

  1. You 'drop' the tables in the new db and import the old db.

Vger

20 Jan 2011, 5:39 PM
#7
aprogrammer avatar

aprogrammer

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

Post #7 by aprogrammer

so can I just set the config to look at the old one?

20 Jan 2011, 5:51 PM
#8
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #8 by vger

No, you can't. If you don't want to follow my advice then that's fine.

Here's something we published for our customers who wanted to upgrade. Most of it would apply to you.

http://www.terranetwork.net/blog/2010/11/upgrading-zen-cart-1-38-to-1-3-9/

Vger

20 Jan 2011, 5:59 PM
#9
aprogrammer avatar

aprogrammer

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

Post #9 by aprogrammer

ok so I only replace the tables that are in the old? right? and I can replace them completely (as in drop and create) or do I just move the data

20 Jan 2011, 6:05 PM
#10
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #10 by vger

Read the tutorial. That's why I provided the link.

Vger

21 Jan 2011, 6:40 AM
#11
aprogrammer avatar

aprogrammer

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

Post #11 by aprogrammer

I am having the same problem again

when I click update database I get an error

NOTE: Skipped upgrade statements: 3
See details at bottom of page for your inspection.
(Details also logged in the "upgrade_exceptions" table.)
Note: In most cases, these failed statements can be ignored,
as they are indications that certain settings may have already been set on your site.
If all the suggested upgrade steps have been completed (no recommendations left),
you may proceed to Skip Upgrades and continue configuring your site. more info...

and it won't let me update

the red below is

SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot add index idx_prod_id_orders_id_zen to table orders_products because it already exists.
SKIPPED: Cannot add index idx_cust_id_orders_id_zen to table orders because it already exists.

21 Jan 2011, 1:39 PM
#12
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #12 by vger

You keep posting but you're not listening to advice, or bothering to read it. Nobody can help you unless you are prepared to actually read and follow advice.

Vger

21 Jan 2011, 2:07 PM
#13
aprogrammer avatar

aprogrammer

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

Post #13 by aprogrammer

I did today exactly what you advised with a new database
(I followed each step on the link you posted above - http://www.terranetwork.net/blog/201...1-38-to-1-3-9/

I got the errors above
I continued the installation but now I get a blank page both on what should be the homepage and admin/index.php

21 Jan 2011, 6:48 PM
#14
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #14 by vger

SKIPPED: Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists
SKIPPED: Cannot add index idx_prod_id_orders_id_zen to table orders_products because it already exists.
SKIPPED: Cannot add index idx_cust_id_orders_id_zen to table orders because it already exists.

Which means that you weren't in "Upgrade database only" mode, and therefore weren't following the guide.

Vger

22 Jan 2011, 4:03 PM
#15
aprogrammer avatar

aprogrammer

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

Post #15 by aprogrammer

I was definatly in upgrade database mode only

please advise?
should i upload all the files again or create a new database? (and reimport the original)

22 Jan 2011, 5:17 PM
#16
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #16 by vger

  1. When you are in "Upgrade database only" mode it only modifies the old database with new fields. It doesn't do anything to existing fields, except perhaps to change the length of them or change the type of field it is

  2. When you are not in "Upgrade database only" mode then you are in full install mode and it will try to add tables and fields to a database which already has those tables and fields. And that's when you get errors like:
    Cannot insert configuration_key "SHOW_SPLIT_TAX_CHECKOUT" because it already exists

Vger

22 Jan 2011, 5:21 PM
#17
aprogrammer avatar

aprogrammer

New Zenner

Join Date:
Jul 2006
Posts:
19
Plugin Contributions:
0

Post #17 by aprogrammer

I see 3 options

install

upgrade cfg files

and

database upgrade

I did database updrade - was that wrong? what should I have chosen?

thanks for your help