We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Upgrade from EE v5 to v6

How Do I?

Timmermann Group's avatar
Timmermann Group
1 posts
3 years ago
Timmermann Group's avatar Timmermann Group

I am updating a client website from v5 to v6 and run a snag when running the Update Wizard.

Almost immediatly after I started to run the update, I got the follwing error message. The catch is the column DOES exist in that table. Has anyone run into this situation.

“SQLSTATE[42000]: Syntax error or access violation: 1091 Can’t DROP ‘display_avatars’; check that column/key exists: ALTER TABLE exp_members DROP display_avatars”

I have attached a screenshot of the stack trace.

       
bree's avatar
bree
19 posts
3 years ago
bree's avatar bree

Same for me. Any solution here?

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
3 years ago
Robin Sowell's avatar Robin Sowell

It looks like the avatars field isn’t there to drop, so it throws an error. There is a conditional check in v7, but it doesn’t look like it’s made it to 6 yet.

Can you try the fix here: system/ee/installer/updates/ud_6_00_00_b_1.php

So in system/ee/installer/updates/ud_6_00_00_b_1.php around line 209, you want to change it to look like

if (ee()->db->field_exists('display_avatars', 'members')) {
            ee()->dbforge->drop_column('members', 'display_avatars');
        }
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.