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.

2.1.3 to 2.3.0 cannot upgrade

October 13, 2011 5:19pm

Subscribe [3]
  • #1 / Oct 13, 2011 5:19pm

    guerilladesigns

    2 posts

    I’ve been trying to upgrade from 2.1.3 to 2.2.2 and now 2.3.0 for a week and cannot get it to work. I’ve finally narrowed down some of my issues and hopefully can get some help instead of being pointed to the update expression engine wiki or trouble shooting updates wiki.

    When I try to upgrade I get numerous errors about duplicate columns or tables that don’t exist in my database. I’ve outlined them here and the error received. I would add these missing tables but I can find no documentation on the appropriate settings, and they are not added to a default install in 2.2.2 or 2.3.0

    You’ll find this information in /installer/updates/ud_009.php

    // Define the table changes
      $Q[] = "ALTER TABLE exp_member_groups ADD COLUMN can_search char(1) NOT NULL default 'n'"; // Duplicate Column
    
      $Q[] = "ALTER TABLE exp_member_groups ADD COLUMN search_flood_control mediumint(5) unsigned NOT NULL"; // Duplicate Column
    
      $Q[] = "ALTER TABLE exp_member_groups ADD COLUMN can_moderate_comments char(1) NOT NULL default 'n'"; // Duplicate Column
        
      $Q[] = "ALTER TABLE exp_weblogs ADD COLUMN search_excerpt int(4) unsigned NOT NULL"; // Table Doesn't Exist
    
      $Q[] = "ALTER TABLE exp_weblogs ADD COLUMN comment_moderate char(1) NOT NULL default 'n'"; // Table Doesn't Exist
    
      $Q[] = "ALTER TABLE exp_comments ADD COLUMN status char(1) NOT NULL default 'o'"; // Duplicate Column
    
      $Q[] = "ALTER TABLE exp_referrers ADD COLUMN ref_ip varchar(16) default '0' NOT NULL"; // Table Doesn't Exist
    
      $Q[] = "ALTER TABLE exp_referrers ADD COLUMN ref_date int(10) unsigned default '0' NOT NULL"; // Table Doesn't Exist
    
      $Q[] = "ALTER TABLE exp_referrers ADD COLUMN ref_agent varchar(100) NOT NULL"; // Table Doesn't Exist
    
      $Q[] = "ALTER TABLE exp_templates ADD COLUMN php_parse_location char(1) NOT NULL default 'o'"; // Duplicate Column
    
        
      // Fix DB typos
      $Q[] = "ALTER TABLE exp_member_homepage CHANGE COLUMN memeber_search_form member_search_form char(1) NOT NULL default 'n'"; // Unknown Column
    
      $Q[] = "ALTER TABLE exp_member_homepage CHANGE COLUMN memeber_search_form_order member_search_form_order int(3) unsigned NOT NULL default '0'"; // Unknown Column
    
      $Q[] = "UPDATE exp_actions SET method = 'retrieve_password' WHERE class = 'Member' AND method = 'retreive_password'"; // Haven't experienced problems from this line.
      
      // Add keys to some tables
      $Q[] = "ALTER TABLE exp_weblog_titles ADD INDEX(weblog_id)"; // Table Doesn't Exist
    
      $Q[] = "ALTER TABLE exp_weblog_titles ADD INDEX(author_id)"; // Table Doesn't Exist
    
      $Q[] = "ALTER TABLE exp_category_posts ADD INDEX(entry_id)"; // Haven't experienced problems from this line.
    
      $Q[] = "ALTER TABLE exp_category_posts ADD INDEX(cat_id)"; // Haven't experienced problems from this line.
    
      $Q[] = "ALTER TABLE exp_weblogs ADD INDEX(cat_group)"; // Table Doesn't Exist
    
      $Q[] = "ALTER TABLE exp_weblogs ADD INDEX(status_group)"; // Table Doesn't Exist
      
      $Q[] = "ALTER TABLE exp_weblogs ADD INDEX(field_group)"; // Table Doesn't Exist

    I’d really appreciate some help on this as I am at a loss at this point.

    -Ben

  • #2 / Oct 14, 2011 7:21am

    Sue Crocker

    26054 posts

    Hi, Ben.

    If EE is prompting you for items found in ud_009.php (which is what these items are) that means you didn’t remember to put back your config.php and database.php files into the /system/expressionengine/config folder, or that those two files are zero length.

    Might that be the case?

  • #3 / Oct 14, 2011 10:55am

    guerilladesigns

    2 posts

    Sue,

    Thanks for your reply. I am using my backed up config.php and database.php files. I have tried changing the version number in my config.php file with no luck.

    I am also using a fresh copy of my database dump from before the initial upgrade every time I try to upgrade. So I don’t think I have artifacts from attempts to do this upgrade.

    Thanks!

    -Ben

  • #4 / Oct 14, 2011 5:56pm

    Kevin Smith

    4784 posts

    Hi Ben,

    That file (ud_009.php) shouldn’t even be called during your upgrade, and when it is, it’s generally a sign that EE is having trouble reading your config.php file. That’s what Sue was alluding to. Check this part of the Troubleshooting Upgrade Errors wiki for information on EE trying to read the config.php file. If there are any unusual customizations there, sometimes EE’s upgrade wizard has a tough time reading it.

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

ExpressionEngine News!

#eecms, #events, #releases