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

1.2.7 to 1.3.7

Locked

Started by cslhypnotech on 25 Jan 2007, 1:00 AM · Views: 5,338

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
25 Jan 2007, 1:00 AM
#1
cslhypnotech avatar

cslhypnotech

Zen Follower

Join Date:
Aug 2005
Posts:
133
Plugin Contributions:
0

Post #1 by cslhypnotech

I'm trying to upgrade my shop on a test install and appear to have issues upgrading the database.

Running the zc_install database upgrade from 1.2.7 through 1.3.7 gives the following errors at the top:

127 statements processed.
11 statements processed.
Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.
9 statements processed.
62 statements processed.
32 statements processed.
12 statements processed.
Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.

And the following at the bottom:

SKIPPED: Cannot insert configuration_group_title "EZ-Pages Settings" because it already exists
SKIPPED: Cannot insert configuration_group_title "EZ-Pages Settings" because it already exists
SKIPPED: Cannot insert configuration_group_title "EZ-Pages Settings" because it already exists
SKIPPED: Cannot insert configuration_group_title "EZ-Pages Settings" because it already exists
SKIPPED: Cannot insert configuration_group_title "EZ-Pages Settings" because it already exists
SKIPPED: Cannot insert configuration_group_title "EZ-Pages Settings" because it already exists
SKIPPED: Cannot insert configuration_group_title "EZ-Pages Settings" because it already exists
SKIPPED: Cannot insert configuration_group_title "EZ-Pages Settings" because it already exists
SKIPPED: Cannot insert configuration_group_title "EZ-Pages Settings" because it already exists
SKIPPED: Cannot insert configuration_group_title "EZ-Pages Settings" because it already exists
SKIPPED: Cannot insert configuration_key "DEFINE_PAGE_NOT_FOUND_STATUS" because it already exists
SKIPPED: Cannot insert configuration_key "DEFINE_PAGE_NOT_FOUND_STATUS" because it already exists
SKIPPED: Cannot insert configuration_key "DEFINE_PAGE_NOT_FOUND_STATUS" because it already exists
SKIPPED: Cannot insert configuration_key "DEFINE_PAGE_NOT_FOUND_STATUS" because it already exists

After this, I click re-check and it says the sniffer says no database upgrade is needed.

Logging in to the admin section after this I get the error:

Your database appears to need patching to a higher level. See Tools->Server Information to review patch levels.

Tools->Server/Version Information reports that my databse is 1.2.7 and that I am running ZenCart 1.3.7.

On the main page of the admin section where I assume the "New Orders" section should be displayed, this is returned:

1054 Unknown column 'startdate' in 'field list'
in:
[select startdate, counter, session_counter from zen_counter_history order by startdate DESC limit 10]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

When I go to Catalog->Categories/Products, only the first category is displayed and this error is shown on the page:

1146 Table 'calban_zc.zen_meta_tags_categories_description' doesn't exist
in:
[select metatags_keywords from zen_meta_tags_categories_description where categories_id = '58' and language_id = '1']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

However, all categories are shown in the drop-down and I can navigate through products in the admin section.

I'm at a loss of what to do at this point, any advice would be much apreciated. :lamo:

25 Jan 2007, 6:16 AM
#2
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Post #2 by audradh

The errors that you are receiving are fine. They are all the installer trying to insert something that is already there, no biggie. Just ignore those errors and continue with the upgrade rather than clicking recheck.

HTH,
Audra

25 Jan 2007, 11:03 PM
#3
cslhypnotech avatar

cslhypnotech

Zen Follower

Join Date:
Aug 2005
Posts:
133
Plugin Contributions:
0

Post #3 by cslhypnotech

audradh:

The errors that you are receiving are fine. They are all the installer trying to insert something that is already there, no biggie. Just ignore those errors and continue with the upgrade rather than clicking recheck.

HTH,
Audra

I've gone through with the upgrade, but as stated in the first post parts of the admin section give errors and make life pretty difficult making changes. Whole sections are replaced with 'unknown column' or 'table does not exist' errors.

26 Jan 2007, 12:13 AM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,753
Plugin Contributions:
0

Post #4 by Kim

Have you upgraded all of your files too?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

26 Jan 2007, 5:46 PM
#5
cslhypnotech avatar

cslhypnotech

Zen Follower

Join Date:
Aug 2005
Posts:
133
Plugin Contributions:
0

Post #5 by cslhypnotech

Kim:

Have you upgraded all of your files too?

Yes I'm using the 1.3.7 files, freshly decompressed. I questioned this myself but it's pretty obvious since everything went from salmon to green in the admin and the template is non-existant. :laugh:

26 Jan 2007, 6:15 PM
#6
afo avatar

afo

Totally Zenned

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

Post #6 by afo

How did you do the test install/upgrade? I recently did 1.2.7 to 1.3.7 upgrade (see link in my sig) and these are the steps I took.

  1. Made a back up of the live database.
  2. Created a database for the test 1.3.7 cart.
  3. Unzipped 1.3.7 on my local drive and uploaded the files to the test environment and ran zc_install to install it
  4. Used the backup of the live db to populate the test db (did this through my webmaster panel. It didn't work perfectly, but it did give me actual data to test with).
  5. Created the custom the template locally and uploaded to the test environment
  6. Uploaded the local copy of the cart to the live store and ran zc_install to upgrade the database. I had to tweak some of the info in the config files to point to the live store, not the test environment

This worked very well for me.

I find it odd that the sniffer isn't finding any upgrades to do, but the admin is saying you have 1.3.7 installed with a 1.2.7 db. That's got to be the clue, but I'm not sure what it means.

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

27 Jan 2007, 4:50 AM
#7
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Post #7 by audradh

You said that after upgrading the database you clicked recheck. Did you ever click on the other option? Something to the effect of "Done with Updates."

I don't know that it makes any difference since it seems as if the sql was performed prior to that, but if you haven't you might want to follow the installer through to completion.

Another thought, did you handle any table prefixes correctly when doing the install. If you get that wrong it can mess up the upgrade.

29 Jan 2007, 5:45 PM
#8
cslhypnotech avatar

cslhypnotech

Zen Follower

Join Date:
Aug 2005
Posts:
133
Plugin Contributions:
0

Post #8 by cslhypnotech

Yes when the updater said the database was up to date I clicked on done.

Regarding execution:
1)Created new blank database
2)Imported current 1.2.7 database
3)Uploaded 1.3.7 files to server
4)Ran ZC_Install, upgrading until it says the database is current (tried all checked and one at a time on seperate attempts)

18 Mar 2007, 5:17 AM
#9
ecobunz avatar

ecobunz

New Zenner

Join Date:
Mar 2007
Posts:
10
Plugin Contributions:
0

Post #9 by ecobunz

If it's any consolation, I'm going through EXACTLY the same issues. Trolling around here trying to find the correct answers...

cslhypnotech:

Yes when the updater said the database was up to date I clicked on done.

Regarding execution:
1)Created new blank database
2)Imported current 1.2.7 database
3)Uploaded 1.3.7 files to server
4)Ran ZC_Install, upgrading until it says the database is current (tried all checked and one at a time on seperate attempts)

18 Mar 2007, 7:16 AM
#10
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Post #10 by misty

This is how I upgrade zencart.. not failed yet.. works for other previous
zencart releases ...

  1. Change template on existing 1.27 site to Classic(Version for your current active zencart)
  2. Take a copy of your existing active database and all other files and folders
  3. Download and install ZenCart 1.37 completely, including database, into a TEST folder
  4. Set template as Classic 1.37
  5. Take a copy of this new database/install and store on computer
  6. Remove/delete the zencart 1.37 database from your new install
  7. Upload your 1.27 database to replace the one you just removed from zencart 1.37
  8. Start install/upgrade procedure for 1.37 again, choosing UPGRADE when prompted
  9. You may have to adjust both config files to reflect the fact that you are in test folder
  10. When install complete.. take a full backup, including sql database.
  11. Move your original zencart to different folder.
  12. Replace with your newly converted zen1.37 files.
  13. May have to adjust both config files to reflect this move..
  14. ZenCart 1.37 will not accept 1.27 templates, so keep Classic
    until your favourite template for 1.27 has been converted to 1.37

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

19 Mar 2007, 5:20 PM
#11
trillian avatar

trillian

Zen Follower

Join Date:
Jun 2005
Location:
London, UK
Posts:
141
Plugin Contributions:
0

Post #11 by trillian

misty:

  1. Remove/delete the zencart 1.37 database from your new install
  2. Upload your 1.27 database to replace the one you just removed from zencart 1.37

OK, when you say 'remove/ delete' are you talking about actually deleting the entire db, as in going into mysql and just deleting it completely ?

When you say 'upload the 1.2.7 db' presumably you must have a database to restore the backup into right ? So a new database would first need to be created with the same name as the 'deleted' 1.3.7 one before you could restore the backup of the 1.2.7 one ?

Pardon my ignorance on this database stuff :)

Thanks,
Sheryl

19 Mar 2007, 5:24 PM
#12
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Post #12 by merlinpa1969

Install ZC 1.3.7 in a backup directory with a brand new database

once installed you will want to drop all the tables from the NEW database,
then upload your 1.2.7 database into its place

NOW run the zc installer again and choose upgrade,
you will need the admin username and password to continue, ( this will be the ZC admin username and password from your 1.2.7 )
now it will upgrade the DB,

oncew its all done and ready to go you can move the files and the DB right over where your old store was using the original configure.php files

Zen cart PCI compliant Hosting

19 Mar 2007, 5:53 PM
#13
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Post #13 by misty

trillian:

OK, when you say 'remove/ delete' are you talking about actually deleting the entire db, as in going into mysql and just deleting it completely ?

When you say 'upload the 1.2.7 db' presumably you must have a database to restore the backup into right ? So a new database would first need to be created with the same name as the 'deleted' 1.3.7 one before you could restore the backup of the 1.2.7 one ?

Pardon my ignorance on this database stuff :)

Thanks,
Sheryl
Merlin has clarified procedure perfectly

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

19 Mar 2007, 7:08 PM
#14
trillian avatar

trillian

Zen Follower

Join Date:
Jun 2005
Location:
London, UK
Posts:
141
Plugin Contributions:
0

Post #14 by trillian

OK, I started over again and this time it seems to work but the cart is a mess, buttons are missing, it seems like module names are not displaying correctly etc. (please note; I am NOT concerned about the warnings about writable files or the 'sales message goes here' stuff, I know how to deal with that.

It is at; http://www.credencegroup.co.uk/zc3/

For example, when you go to checkout you get something like;
Your Total
kr1,335.16MODULE_ORDER_TOTAL_SUBTOTAL_TITLE:

kr0.00MODULE_ORDER_TOTAL_SHIPPING_TITLE:

kr1,335.16MODULE_ORDER_TOTAL_TOTAL_TITLE:

Obviously those should be displaying as 'order subtotal', 'shipping', 'order total' etc.

-Sheryl

19 Mar 2007, 7:30 PM
#15
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Post #15 by merlinpa1969

looks like you missed a few files

Zen cart PCI compliant Hosting

19 Mar 2007, 7:35 PM
#16
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Post #16 by misty

buttons are missing,
Check that /includes/template_default has ALL
images uploaded..viewed your site, some images
are missing i.e.

http://www.credencegroup.co.uk/zc3/includes/templates/template_default/buttons/english/button_TellAFriend.gif
http://www.credencegroup.co.uk/zc3/includes/templates/template_default/images/icons/small_delete.gif 

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others