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.

Cannot update ExpressionEngine.

November 03, 2011 12:38pm

Subscribe [3]
  • #1 / Nov 03, 2011 12:38pm

    adlur

    104 posts

    Below represents the steps taken in my third instance of a failed upgrade. Three unique websites (all on the same server), twice trying 2.1.x to 2.3.1 and once attempting 2.1.x to 2.2.2, all with similar results however this time I wrote everything down.

    A note- where I restore from the DB, I mean I drop all the existing tables and import the .sql file I exported just after clearing all the caches.

    The EE wizard says “Congratulations! Your server is ready to use ExpressionEngine!”. (Everything is green.)

    Using the directories and files from the most recent version of EE I create duplicate directories and files with “_new” appended to the name.

    Copy the config and database files, third_party directories etc. from my existing installation; set permissions, revise index files et al for the correct system path.

    Upload the duplicate “new” directories and files.

    Log in to CP, clear all caches, log in to server, export DB.

    Rename the existing files and directories by appending “_old” and then remove “_new” from the new directories and files.

    Navigate to CP address (http://www.website.com/masked_system_folder), begin update process.

    A Database Error Occurred
    Error Number: 1060
    Duplicate column name ‘batch_location’
    ALTER TABLE `exp_upload_prefs` ADD `batch_location` VARCHAR(255)
    Filename: updates/ud_215.php
    Line Number: 169

    Confirm ‘batch_location’ now exists; restore DB from backup; confirm ‘batch_loaction’ does not exist; comment out

    'batch_location'  => array(
    'type' => 'VARCHAR',
    'constraint' => 255,
    ),

    from field arrays feeding line 169

    $this->EE->dbforge->add_column('upload_prefs', $fields);

    Restart update process by navigating to CP address.

    A Database Error Occurred
    Error Number: 1061
    Duplicate key name ‘last_activity_idx’
    CREATE INDEX last_activity_idx on exp_sessions(last_activity)
    Filename: updates/ud_220.php
    Line Number: 82

    Confirm ‘last_activity_idx’ is index on ‘last_activity’; restore from DB backup; confirm ‘last_activity_idx’ is no longer index on ‘last_activity’; comment out

    $this->EE->db->query("CREATE INDEX last_activity_idx on exp_sessions(last_activity)");

    from line 82

    Restart update process by navigating to CP address.

    A Database Error Occurred
    Error Number: 1146
    Table ‘(db name).exp_files’ doesn’t exist
    ALTER TABLE `exp_files` ADD `caption` text
    Filename: updates/ud_220.php
    Line Number: 182

    Confirm ‘exp_files’ does not exist: this is the first instance of an error where a “back” button is available, click it, resume update process at “accept license” screen.

    A Database Error Occurred
    Error Number: 1060
    Duplicate column name ‘salt’
    ALTER TABLE `exp_members` ADD `salt` VARCHAR(128) DEFAULT ‘’ NOT NULL
    Filename: updates/ud_220.php
    Line Number: 153

    Confirm ‘salt’ exists: another “back” button, click it, resume update process at “accept license” screen, same error.

    Restore DB; confirm ‘salt’ does not exist; comment out

    $field = array(
    'salt' => array(
    'type' => 'VARCHAR',
    'constraint' => 128,
    'default'  => '',
    'null' => FALSE
    )
    );

    from array feeding line 153

    $this->EE->dbforge->add_column('members', $field);

    Click “back” button, resume update process at “accept license” screen.

    A Database Error Occurred
    Error Number: 1064
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘`password` VARCHAR(128)’ at line 2
    ALTER TABLE `exp_members` ADD `password` `password` VARCHAR(128)
    Filename: updates/ud_220.php
    Line Number: 153

    Comment out line 153; click “back” button; resume update process at “accept license” screen.

    A Database Error Occurred
    Error Number: 1146
    Table ‘(db name).exp_files’ doesn’t exist
    ALTER TABLE `exp_files` ADD `caption` text
    Filename: updates/ud_220.php
    Line Number: 182

    Confirm ‘exp_files’ doesn’t exist; click “back” button; resume update process at “accept license” screen.

    A Database Error Occurred
    Error Number: 1060
    Duplicate column name ‘remember_me’
    ALTER TABLE `exp_members` ADD `remember_me` VARCHAR(32) DEFAULT ‘’ NOT NULL
    Filename: updates/ud_220.php
    Line Number: 166

    Take a chance, click “back” button, resume update process at “accept license” screen: same results.

    Confirm ‘remember_me’ exists, comment out

    $field = array(
    'remember_me' => array(
    'type' => 'VARCHAR',
    'constraint' => 32,
    'default' => '',
     'null' => FALSE
    )
    );
    $this->EE->dbforge->add_column('members', $field);

    from ud_220.php as it follows ‘salt’ above and I assume leaving line 166 ($this->EE->dbforge->add_column(‘members’, $field); ) will produce same results as previous error.

    Click “back” button, resume update process at “accept license” screen.

    A Database Error Occurred
    Error Number: 1146
    Table ‘(db name).exp_files’ doesn’t exist
    ALTER TABLE `exp_files` ADD `caption` text
    Filename: updates/ud_220.php
    Line Number: 182

    Confirm ‘exp_files’ doesn’t exist; hit “back” button; resume upgrade process at “accept license” screen.

    Here I am at a loss- I don’t see anything obvious in what I’ve done that would have removed a function to create ‘exp_files’, but it’s not there. I don’t know what to add or remove so I put everything back as it was before.

     

  • #2 / Nov 04, 2011 4:11am

    John Henry Donovan

    12339 posts

    Hi TPE,

    Sorry to see you are running into these issues. You shouldn’t need to make all these mods to the updater. can you once again roll back to your older version.

    Take a look at MySQL Errors in the Upgrade Wizard, specifically point 3 Multiple Browser Requests

    What browser are you using to upgrade with?
    Can you try a different one for the next time you attempt it?

  • #3 / Nov 04, 2011 1:28pm

    adlur

    104 posts

    Thanks John, I had been attempting the upgrade using Chrome (Windows.) Using IE9 the upgrade ran fine, however now I cannot log in to the CP. I’ve tried using several browsers, clearing caches and cookies, I added this to my config.php:

    $config['cookie_domain'] = "";
    $config['cookie_path'] = "";
    $config['cookie_prefix'] = "";
    $config['admin_session_type'] = "c";
    $config['user_session_type'] = "c";
    $config['require_ip_for_login'] = "n";
    $config['require_ip_for_posting'] = "n"; 
    $config['secure_forms'] = "n";

    as well as turning extensions off, no go.

  • #4 / Nov 07, 2011 2:55pm

    Dan Decker

    7338 posts

    Hi TPE,

    I’m glad you were able to work through the update process, sorry that was such a booger for you. Can you verify that you are unable to login to the CP using any browser? Or are you only having trouble in IE 9?

    Thanks!

  • #5 / Nov 07, 2011 3:44pm

    adlur

    104 posts

    I cannot log in using any browser-

  • #6 / Nov 09, 2011 7:54pm

    adlur

    104 posts

    I’ve had an inoperable website for 5 days now. Should I roll back the installation to one that functioned? Find a different CMS?

  • #7 / Nov 09, 2011 10:07pm

    Dan Decker

    7338 posts

    Hi TPE,

    I apologize for the frustration you are experiencing. We certainly want to do everything we can to get you relief. In that regard, please be on the lookout for an email from me.

    Thanks,

  • #8 / Nov 09, 2011 10:14pm

    Dan Decker

    7338 posts

    requested login details

  • #9 / Nov 13, 2011 3:30pm

    adlur

    104 posts

    Hello, I’ve submitted the server/login information requested, do you have any suggestions? Otherwise I’ll need to roll the site back to a working installation.

    Please let me know-

  • #10 / Nov 14, 2011 11:10am

    Dan Decker

    7338 posts

    Hi Adam,

    I sent you an update via our private communication, but just to ensure that we are fully engaged here… We need access to your database at this point. Is there any way you can supply us with access to your database management tool, PHPMyAdmin perhaps? We are prepared to do whatever we can to get you a solution.

    Thanks!

  • #11 / Nov 14, 2011 12:12pm

    adlur

    104 posts

    Thanks Dan, I haven’t received any private communications… I can either give you access to phpmyadmin or I can add your IP to remote access if you’d prefer-

  • #12 / Nov 14, 2011 12:14pm

    Dan Decker

    7338 posts

    Hey Adam,

    Check your junk mail I suppose. You should have received an email via the same address you used to supply your original credentials. PHPMyAdmin will be fine to get us started. If you can’t find that email, let me know here and I’ll get you a means to send those to us.

    Thanks!

  • #13 / Nov 14, 2011 12:23pm

    adlur

    104 posts

    Nothing- can I send it to you via the “email” link in your member profile?

  • #14 / Nov 14, 2011 1:08pm

    Dan Decker

    7338 posts

    Hi Adam,

    You should have an email from me that supplied you with my address.

    Thanks!

  • #15 / Nov 16, 2011 2:57pm

    Robin Sowell

    13255 posts

    TPE- I’ve dropped you an email via our support tool.  Wanted to note it here since there were issues with email earlier.  If it didn’t get there?  Let me know and I’ll email directly.

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

ExpressionEngine News!

#eecms, #events, #releases