Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2013
    Posts
    9
    Plugin Contributions
    0

    Default Not understanding upgrade process

    I am upgrade from 1.50 to 1.54 I am willing to go thru and redo all of the little custom bits here and there, main thing I need is the database with the products, however, I cannot seem to grasp how to get the new site to use that data. I have tried to import it but get an error when I try. Is there an easier way to do this??

    SQL error:

    Error
    SQL query:

    --
    -- Dumping data for table `zen_address_format`
    --
    INSERT INTO `zen_address_format` ( `address_format_id` , `address_format` , `address_summary` )
    VALUES ( 1, '$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country', '$city / $country' ) , ( 2, '$firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country', '$city, $state / $country' ) , ( 3, '$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country', '$state / $country' ) , ( 4, '$firstname $lastname$cr$streets$cr$city ($postcode)$cr$country', '$postcode / $country' ) , ( 5, '$firstname $lastname$cr$streets$cr$postcode $city$cr$country', '$city / $country' ) , ( 6, '$firstname $lastname$cr$streets$cr$city$cr$state$cr$postcode$cr$country', '$postcode / $country' ) ;


    MySQL said: Documentation

    #1062 - Duplicate entry '1' for key 'PRIMARY'

  2. #2
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Not understanding upgrade process

    Need to drop the old tables before trying to insert/upload/import the old database.. Basically the response is that the new database already has a product with product_id 1.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Not understanding upgrade process

    Um, it sounds like you're importing data into a database that ALREADY HAS data. Why?

    I suspect reading this post may benefit you: http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Feb 2013
    Posts
    9
    Plugin Contributions
    0

    Default Re: Not understanding upgrade process

    Quote Originally Posted by DrByte View Post
    Um, it sounds like you're importing data into a database that ALREADY HAS data. Why?

    I suspect reading this post may benefit you: http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    MC123... hit the nail on the head, I wasnt dropping any data. I don't do a lot of work with sql and was literally going step by step from the directions, which, assume basic understandings of the mysql apparently.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Not understanding upgrade process

    Quote Originally Posted by Tuxydoh View Post
    MC123... hit the nail on the head, I wasnt dropping any data. I don't do a lot of work with sql and was literally going step by step from the directions, which, assume basic understandings of the mysql apparently.
    I believe though, one of the steps is to create the new database without the default products. That is one of the reasons the good Dr. Pointed out the instructions I nearly also attached, but went for the answer I did.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Feb 2013
    Posts
    9
    Plugin Contributions
    0

    Default Re: Not understanding upgrade process

    I created without default products, but it creates fields for address etc for customers and I think that is where it was snagging. Honestly, this has really had me going for a while. it started just as the update, I wasnt getting that, so I figured I would just do clean install. It has been a couple years since I did full install or anything with it and I must say I am out of practice and it is showing.
    Last edited by Tuxydoh; 18 Jan 2015 at 04:47 AM.

  7. #7
    Join Date
    Feb 2013
    Posts
    9
    Plugin Contributions
    0

    Default Re: Not understanding upgrade process

    With your clarification I was able to link the database, so thank you very much. If I decide to go back to the actual upgrade route, one thing wasnt clear to me, do I need to have the complete unzipped 1.5.4 in the same directory as my older site or just the zc install folder?

  8. #8
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Not understanding upgrade process

    Quote Originally Posted by Tuxydoh View Post
    With your clarification I was able to link the database, so thank you very much. If I decide to go back to the actual upgrade route, one thing wasnt clear to me, do I need to have the complete unzipped 1.5.4 in the same directory as my older site or just the zc install folder?
    If I understand the question correctly (which I am not entirely sure I do), I think the answer is a sense is yes...

    If you follow the very cautious and controlled process of the link: http://www.zen-cart.com/entry.php?3-...d-of-upgrading, at one point the ZC 1.5.4 (when upgrading to that version or the latest version) files will be at the location of the old site. (Remember there are a number of ways to locate/relocate files, copy, rename, move, etc...)

    But to perform the database upgrade portion, which is sort of like the last step when applying the upgrade to the live site, requires the zc_install folder to be at the root of the store path that is being upgraded. (The zc_install for 1.5.4 should only be run against store code that supports 1.5.4. )

    Basically, step by step in the guide, understanding that some of the early discussion is just that, discussion. Concepts about how the whole thing fits together... Read and understand first, then apply... The task will go much quicker (less errors) when approached with understanding first.

    Sorry, long msg. :|
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Feb 2013
    Posts
    9
    Plugin Contributions
    0

    Default Re: Not understanding upgrade process

    Quote Originally Posted by mc12345678 View Post
    If I understand the question correctly (which I am not entirely sure I do), I think the answer is a sense is yes...

    If you follow the very cautious and controlled process of the link: http://www.zen-cart.com/entry.php?3-...d-of-upgrading, at one point the ZC 1.5.4 (when upgrading to that version or the latest version) files will be at the location of the old site. (Remember there are a number of ways to locate/relocate files, copy, rename, move, etc...)

    But to perform the database upgrade portion, which is sort of like the last step when applying the upgrade to the live site, requires the zc_install folder to be at the root of the store path that is being upgraded. (The zc_install for 1.5.4 should only be run against store code that supports 1.5.4. )

    Basically, step by step in the guide, understanding that some of the early discussion is just that, discussion. Concepts about how the whole thing fits together... Read and understand first, then apply... The task will go much quicker (less errors) when approached with understanding first.

    Sorry, long msg. :|
    I have read that page several times, I just don't get it, unfortunately, reading that was what lead me into the confusion with the databases and products. So, how my twisted understanding is right now is, I am installing 1.5.4 and then just replacing any files I had previously customized?

  10. #10
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Not understanding upgrade process

    Quote Originally Posted by Tuxydoh View Post
    I have read that page several times, I just don't get it, unfortunately, reading that was what lead me into the confusion with the databases and products. So, how my twisted understanding is right now is, I am installing 1.5.4 and then just replacing any files I had previously customized?
    The specific changes that were made in files are what need to be carried over, if they appear to provide value to your store and are still compatible with ZC 1.5.4. It is not necessarily the file, but the change made to the file...

    That's the short answer.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v139h 1st time user - Confused on upgrade process
    By RonThePartsGuy in forum Upgrading to 1.5.x
    Replies: 30
    Last Post: 9 May 2013, 02:13 AM
  2. Am I not understanding attributes?
    By craigcclltd in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 1 Jul 2009, 08:58 PM
  3. Understanding the login process
    By cdunbar in forum General Questions
    Replies: 2
    Last Post: 3 Sep 2008, 06:38 PM
  4. Not understanding this
    By davensjournal in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 21 Aug 2006, 01:01 PM
  5. install new server?? Not understanding steps??
    By mcASA33 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 18 Jul 2006, 01:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg