osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

[osCmax v2.5x] upgrade from beta 1 to beta 2

This is a discussion on [osCmax v2.5x] upgrade from beta 1 to beta 2 within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Hi, I have been working with 2.5x beta1. I tried to upgrade using the steps shown in the beta 3 ...

      
  1. #1
    cindyt2009
    Guest


    Default [osCmax v2.5x] upgrade from beta 1 to beta 2

    Hi,

    I have been working with 2.5x beta1. I tried to upgrade using the steps shown in the beta 3 version - 1st doing the beta1 to beta2 SQL and I get the following error message:

    Error

    SQL query:
    #
    # CHANGED TABLES
    #
    ALTER TABLE `languages` ADD COLUMN `meta_keywords` varchar( 255 ) COLLATE latin1_swedish_ci NULL AFTER `sort_order` ,
    COMMENT = '';


    MySQL said:
    #1060 - Duplicate column name 'meta_keywords'

    Any ideas?

    (Please note this ha nothing to do with cujo's issue under the like topic. I think I confused someone by posting under his concerns)

    Thanks,
    C

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: [osCmax v2.5x] upgrade from beta 1 to beta 2

    I modified the sql file to ignore duplicate columns, so it will be more fault tolerant.

    Try this attached sql on your restored original database and let me know how it goes. See also cujo's thread as I posted an updated sql file for him to try. You will need that for step 2 of your upgrade process.
    Attached Files Attached Files
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    cindyt2009
    Guest


    Default Re: [osCmax v2.5x] upgrade from beta 1 to beta 2

    Michael,

    I went back and did the following: ran the install on beta3 which of course puts in a whole new database (without products that I had added). I then did a restore of the backup database I had done before the update. I then ran the file you sent me and it loaded perfectly! YEAH!

    Then, after another 2 backups (better safe than sorry), I did the file you had sent to cujo....and received the following error message:

    Error

    SQL query:
    ALTER IGNORE TABLE `orders_products_attributes` ADD COLUMN `weight_prefix` char( 1 ) NOT NULL AFTER `price_prefix` ,
    ADD COLUMN `options_values_weight` decimal( 6, 3 ) NOT NULL DEFAULT '0.000' AFTER `weight_prefix` ,
    COMMENT = '';


    MySQL said:
    #1060 - Duplicate column name 'weight_prefix'

    Any ideas?

    And no, I did not run either the beta1 to beta 2 upgrade or the beta2 to beta 3 that were included in the beta3 release.

  4. #4
    cindyt2009
    Guest


    Default Re: [osCmax v2.5x] upgrade from beta 1 to beta 2

    One more thing....despite the fact i reloaded my backup before the first file you sent, i have data in the admin side, but none on the catalog side. categories are there - nothing else - just a really big error message that is probably related to the above issues.
    C

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    1 out of 1 members found this post helpful.

    Default Re: [osCmax v2.5x] upgrade from beta 1 to beta 2

    You should not be running the installer to do this upgrade. The installer is for doing new installations.

    Follow these instructions step by step:

    1. You should not be loading the beta 3 database or running the installer at any point during the upgrade process. You need to start with your original unmodified beta 1 database.

    2. Then run the beta1 to beta 2 sql file through phpmyadmin directly on your Beta 1 database. DO NOT RUN THE INSTALLER, just use the sql file through phpmyadmin directly on your database.

    3. Then run the beta2 to beta 3 sql file through phpmyadmin directly on your Beta 1 database. DO NOT RUN THE INSTALLER, just use the sql file through phpmyadmin directly on your database.

    Then overwrite all the beta 1 files on your server with the beta 3 files via ftp, omitting the install directory as it is simply not needed to upgrade.

    That is all there is to it.

    If you are doing anything differently than the above instructions, that is your problem. Just follow the above instructions to the letter.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  6. #6
    cindyt2009
    Guest


    Default Re: [osCmax v2.5x] upgrade from beta 1 to beta 2

    OK...thank you.

    I went back and restored everything to the original beta1 db. I ran the beta1 to beta2 upgrade and it ran perfectly. Another backup and I ran the beta2 to beta3...this is the error message I received:

    Error

    SQL query:
    ALTER TABLE `orders_products_attributes` ADD COLUMN `weight_prefix` char( 1 ) NOT NULL AFTER `price_prefix` ,
    ADD COLUMN `options_values_weight` decimal( 6, 3 ) NOT NULL DEFAULT '0.000' AFTER `weight_prefix` ,
    COMMENT = '';


    MySQL said:
    #1060 - Duplicate column name 'weight_prefix'

    I did not run the 'install'....any ideas?

    (and thanks for the help!)
    C

  7. #7
    cindyt2009
    Guest


    Default Re: [osCmax v2.5x] upgrade from beta 1 to beta 2

    Sorry...still getting the same error message as above....when I jump from b2 to b3....

    Error

    SQL query:
    ALTER TABLE `orders_products_attributes` ADD COLUMN `weight_prefix` char( 1 ) NOT NULL AFTER `price_prefix` ,
    ADD COLUMN `options_values_weight` decimal( 6, 3 ) NOT NULL DEFAULT '0.000' AFTER `weight_prefix` ,
    COMMENT = '';


    MySQL said:
    #1060 - Duplicate column name 'weight_prefix'

    I did not run the 'install'....any ideas?

    (and thanks for the help!)
    C
    Last edited by cindyt2009; 02-02-2011 at 09:21 AM.

  8. #8
    cindyt2009
    Guest


    Default Re: [osCmax v2.5x] upgrade from beta 1 to beta 2

    OK...I reviewed the upgrade issues some were having for the b2 to beta3 and followed the one that said to enter each update manually. I did that - left out the ones that were giving me "duplicate' keeps (like weight-prefix) and all went perfectly.

    Thanks for the advice and all the help. Sorry for being such a pain.
    Cindy

  9. #9
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    1 out of 1 members found this post helpful.

    Default Re: [osCmax v2.5x] upgrade from beta 1 to beta 2

    You should not get that error if you are running a beta 1 stock database. Here is why:

    The beta 1 database structure for the orders_products_attributes table is:

    Code:
      orders_products_attributes_id int NOT NULL auto_increment,
      orders_id int NOT NULL,
      orders_products_id int NOT NULL,
      products_options varchar(32) NOT NULL,
      products_options_values varchar(32) NOT NULL,
      code_suffix varchar(16) NOT NULL,
      options_values_price decimal(15,4) NOT NULL,
      price_prefix char(1) NOT NULL,
    Notice there is no field called weight_prefix in the above structure.

    The beta1 to beta2 upgrade sql file does not modify the orders_products_attributes table.

    So after running the beta1 to beta 2 upgrade sql, your table structure will be the following (identical to the first structure):

    Code:
      orders_products_attributes_id int NOT NULL auto_increment,
      orders_id int NOT NULL,
      orders_products_id int NOT NULL,
      products_options varchar(32) NOT NULL,
      products_options_values varchar(32) NOT NULL,
      code_suffix varchar(16) NOT NULL,
      options_values_price decimal(15,4) NOT NULL,
      price_prefix char(1) NOT NULL,
    Again, note there is no field called weight_prefix in the above structure.


    Now you run the beta2 to beta 3 sql and that does modify the above table by adding weight_prefix. Because weight_prefix is not already present in the table, it will insert properly.

    So, the conclusion I have to make is you were not running the default Beta1 table structure to begin with. At some point you added weight_prefix prior to running the upgrade sql. That is the only explanation, since beta 1 and beta 2 databases do not have the field weight_prefix in that table. Since you never posted the table schema as I requested, there is no way for me to confirm this.

    I am glad you sorted it out. The problem is that you were not starting from the required beta 1 table structure.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  10. #10
    cindyt2009
    Guest


    Default Re: [osCmax v2.5x] upgrade from beta 1 to beta 2

    Thank you....I appreciate all the help and support - which is amazing!
    C

Page 1 of 2 12 LastLast

Similar Threads

  1. [osCmax v2.5x] upgrade from beta 2 to beta 3
    By cujo in forum osCmax v2 Installation issues
    Replies: 41
    Last Post: 02-02-2011, 04:23 PM
  2. [osCmax v2.5x] osCmax v2.5 Beta 2 - Set up Issue
    By ckaya2000 in forum osCmax v2 Installation issues
    Replies: 8
    Last Post: 01-07-2011, 10:02 PM
  3. osCmax v2.5 Beta-1 Released
    By michael_s in forum Announcement Discussions
    Replies: 55
    Last Post: 12-20-2010, 01:50 PM
  4. OSCMax 2.5 Beta 1 (Contact Us)
    By Hostboard in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 12-04-2010, 03:39 PM

Bookmarks

Posting Permissions

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