ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

upgrade errors from 1.6.9 to 2.1

August 08, 2010 8:29pm

Subscribe [3]
  • #1 / Aug 08, 2010 8:29pm

    DeltaJo

    22 posts

    I get errors:

    First I get an error about templates, but at least there’s a link to bypass that and continue.

    Then:

    {"error":"
    
    Error Number: 1062
    \n\n
    
    Duplicate entry '9644-304' for key 1
    \n\n
    
    ALTER TABLE `expeng_entry_ping_status` ADD PRIMARY KEY `entry_id_ping_id` (`entry_id`, `ping_id`)
    "}

    I’ve rolled back my database several times and retried, and repaired the tables.  I’ve read all the other threads about this and nothing mentioned there has worked here.

  • #2 / Aug 09, 2010 3:30am

    John Henry Donovan

    12339 posts

    DeltaJo,

    What was your template error?
    What build are you updating to?

    What have you already tried as advised on the other threads?

  • #3 / Aug 09, 2010 1:56pm

    DeltaJo

    22 posts

    John Henry I appreciate that you would want more than what I’ve given you but there really isn’t much more to tell you. 

    The template error I mentioned previously did not re-occur in my latest effort just now.

    Instead, it again just got to this point:

    http://www.mysite/system/index.php?C=wizard&M=do_update&agree=yes&language=english&ajax_progress=yes

    {"error":"
    
    Error Number: 1062
    \n\n
    
    Duplicate entry '9644-304' for key 1
    \n\n
    
    ALTER TABLE `expeng_entry_ping_status` ADD PRIMARY KEY `entry_id_ping_id` (`entry_id`, `ping_id`)
    "}


    I’m updating to build 20100805.

    I’ve tried whatever I could garner from other threads:  checking my permissions; re-checking the index.php file for my renamed system folder reference; repairing and optimizing my tables prior to updating, etc.

  • #4 / Aug 09, 2010 10:59pm

    Brandon Jones

    5500 posts

    Take a look at your expeng_entry_ping_status table. Hit Browse on it if you’re using phpMyAdmin, then sort by entry_id. Do any two rows have the same entry_id and ping_id? If so, you can delete one of the duplicate rows.

  • #5 / Aug 10, 2010 1:45am

    DeltaJo

    22 posts

    Yikes.  There are thousands of entries.

  • #6 / Aug 10, 2010 6:42pm

    Brandon Jones

    5500 posts

    DeltaJo, as we know you have a database backup already try this. Open up /system/installer/updates/ud_200.php and comment out line line 1126 like so:

    //        $Q[] = "ALTER TABLE `exp_entry_ping_status` ADD PRIMARY KEY `entry_id_ping_id` (`entry_id`, `ping_id`)";

    Then save and try the update again.

  • #7 / Aug 10, 2010 8:46pm

    DeltaJo

    22 posts

    Brandon,

    Yes — that got me through the update.  Phew.  And thanks very much!

    Now of course I wonder what skipping that step will do.

  • #8 / Aug 11, 2010 10:13am

    Sue Crocker

    26054 posts

    The code just adds a primary key to the table. But glad Brandon was able to help. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases