osCmax v2.5 User Manual
Results 1 to 8 of 8

2.0.3 install and upgrade issue

This is a discussion on 2.0.3 install and upgrade issue within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; I'm just looking to upgrade a site of mine running rc3 so I tried a dry run on a copy ...

      
  1. #1
    New Member
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    0


    Default 2.0.3 install and upgrade issue

    I'm just looking to upgrade a site of mine running rc3 so I tried a dry run on a copy of my site setup at a subdomain, tested and working.

    When running the upgrade.php i get these errors at the bottom of the sql output text although it does say successful upgrade.

    Error: MySQL #1062: Duplicate entry '' for key 3

    Error: MySQL #1054: Unknown column 'admin_username' in 'field list'

    Error: MySQL #1062: Duplicate entry '100002-1' for key 1

    Error: MySQL #1062: Duplicate entry '100002-2' for key 1

    Error: MySQL #1062: Duplicate entry '100002-3' for key 1

    Error: MySQL #1062: Duplicate entry '100003-1' for key 1

    Error: MySQL #1062: Duplicate entry '100003-2' for key 1

    Error: MySQL #1062: Duplicate entry '100003-3' for key 1
    The site comes up ok but I cannot access the admin panel, I get this error using chrome as a browser

    This web page has a redirect loop.

    The web page at null has resulted in too many redirects. Clearing your cookies for this site may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

    Here are some suggestions:
    Reload this web page later.
    Learn more about this problem.
    More information on this error
    I tried a clean install and still cannot get into the admin panel getting the exact same message, any clues to what I am missing?

    Thanks

    John

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Default Re: 2.0.3 install and upgrade issue

    Try deleting files from the cache directory. Also, records in the cache table, using phpmyadmin.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    New Member
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    0


    Default Re: 2.0.3 install and upgrade issue

    Try deleting files from the cache directory. Also, records in the cache table, using phpmyadmin.
    Tried that in the upgrade site and no change, no data in the cache of the new install.

  4. #4
    osCMax Developer

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


    Default Re: 2.0.3 install and upgrade issue

    Error: MySQL #1062: Duplicate entry '' for key 3

    Error: MySQL #1054: Unknown column 'admin_username' in 'field list'
    This means you have more than one admin account. The admin username is a UNIQUE field, but because you have more than one admin account, you will have to first run this on your admin table:

    Code:
    ALTER TABLE admin
        ADD admin_username varchar(32) NOT NULL DEFAULT '' AFTER admin_groups_id;
    Then, edit the records in the table, and you will need to manually enter a unique admin username in each admin record.

    Once you have done that (via phpmyadmin is the easiest for most people), finish the admin table update by running this sql:

    Code:
    ALTER TABLE admin
    ADD UNIQUE admin_username (admin_username);
    That will get your access to the admin working.



    Error: MySQL #1062: Duplicate entry '100002-1' for key 1

    Error: MySQL #1062: Duplicate entry '100002-2' for key 1

    Error: MySQL #1062: Duplicate entry '100002-3' for key 1

    Error: MySQL #1062: Duplicate entry '100003-1' for key 1

    Error: MySQL #1062: Duplicate entry '100003-2' for key 1

    Error: MySQL #1062: Duplicate entry '100003-3' for key 1
    This relates to this query in the upgrade script:

    Code:
    INSERT INTO orders_status (orders_status_id,language_id,orders_status_name,public_flag,downloads_flag) VALUES ('2','3','Proceso','1','1');
    INSERT INTO orders_status (orders_status_id,language_id,orders_status_name,public_flag,downloads_flag) VALUES ('100000','3','Updated','1','0');
    INSERT INTO orders_status (orders_status_id,language_id,orders_status_name,public_flag,downloads_flag) VALUES ('100002','1','Preparing [PayPal Standard]','0','0');
    INSERT INTO orders_status (orders_status_id,language_id,orders_status_name,public_flag,downloads_flag) VALUES ('100002','2','Preparing [PayPal Standard]','0','0');
    INSERT INTO orders_status (orders_status_id,language_id,orders_status_name,public_flag,downloads_flag) VALUES ('100002','3','Preparing [PayPal Standard]','0','0');
    INSERT INTO orders_status (orders_status_id,language_id,orders_status_name,public_flag,downloads_flag) VALUES ('100003','1','Sofortüberweisung Vorbereitung','0','0');
    INSERT INTO orders_status (orders_status_id,language_id,orders_status_name,public_flag,downloads_flag) VALUES ('100003','2','Sofortüberweisung Vorbereitung','0','0');
    INSERT INTO orders_status (orders_status_id,language_id,orders_status_name,public_flag,downloads_flag) VALUES ('100003','3','Sofortüberweisung Vorbereitung','0','0');
    They just add new order-status entries and should not cause any problems with the running of your site.
    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

  5. #5
    New Member
    Join Date
    May 2005
    Location
    Las Vegas, NV
    Posts
    25
    Rep Power
    0


    Default Re: 2.0.3 install and upgrade issue

    I ran into the same problem. Michael's solution was spot on. Thanks!!!!
    Marinus
    Marinus
    internetShoppes.com

  6. #6
    New Member
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    0


    Default Re: 2.0.3 install and upgrade issue

    Michael,

    Couldn't make that work for me

    I also tried it another way which was to delete the other user/admin accounts to just leave one before backing up the database. That got rid of the associated admin error just leaving the sql error that you said wouldn't effect the site. I still cannot get in to the admin and still get the redirect loop error in my browser?

    I've now resorted to a clean install here which comes up fine but cannot access the admin. I've also trioed accessing from another machine to make sure its not a machine/cookie issue.

    Any ideas?

    thanks

  7. #7
    New Member
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    0


    Default Re: 2.0.3 install and upgrade issue

    Now I'm really confuesd, my clean install site allowed me to log in to the admin today Strangely I changed nothing since the last post
    Last edited by rhinoman; 07-11-2009 at 01:09 PM.

  8. #8
    osCMax Developer

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


    Default Re: 2.0.3 install and upgrade issue

    A clean install will not have this issue, as it doesn't have the upgrade to deal with.
    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

Similar Threads

  1. RC 3 PayPal IPN install issue.
    By usedcpus in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 02-11-2007, 05:41 AM
  2. Install and Upgrade ?'s
    By cara in forum Announcement Discussions
    Replies: 1
    Last Post: 01-17-2007, 08:43 AM
  3. RC2 > RC3 upgrade issue
    By chrismole in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 01-12-2007, 12:22 PM
  4. checkout issue after new install
    By altenter in forum osCmax v2 Installation issues
    Replies: 9
    Last Post: 07-02-2005, 01:38 AM
  5. Permissioning Issue on Fresh Install - MS2MAX
    By akamaddisk in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 10-10-2003, 07:37 AM

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
  •