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

error when (finally) updating to 5.2.2 from 3.x

How Do I?

liberty79's avatar
liberty79
135 posts
6 years ago
liberty79's avatar liberty79

I can’t figure out what this is. It doesn’t look like an add-on issue?

Exception Caught

SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘m.url’ in ‘field list’: SELECT t.entry_id, t.channel_id, t.forum_topic_id, t.author_id, t.ip_address, t.title, t.url_title, t.status, t.view_count_one, t.view_count_two, t.view_count_three, t.view_count_four, t.allow_comments, t.comment_expiration_date, t.sticky, t.entry_date, t.year, t.month, t.day, t.edit_date, t.expiration_date, t.recent_comment_date, t.comment_total, t.site_id as entry_site_id, w.channel_title, w.channel_name, w.channel_url, w.comment_url, w.comment_moderate, w.channel_html_formatting, w.channel_allow_img_urls, w.channel_auto_link_urls, w.comment_system_enabled, m.username, m.email, m.url, m.screen_name, m.location, m.occupation, m.interests, m.aol_im, m.yahoo_im, m.msn_im, m.icq, m.signature, m.sig_img_filename, m.sig_img_width, m.sig_img_height, m.avatar_filename, m.avatar_width, m.avatar_height, m.photo_filename, m.photo_width, m.photo_height, m.group_id, m.member_id, m.bday_d, m.bday_m, m.bday_y, m.bio, md.*, wd.* FROM exp_channel_titles AS t LEFT JOIN exp_channels AS w ON t.channel_id = w.channel_id LEFT JOIN exp_channel_data AS wd ON t.entry_id = wd.entry_id LEFT JOIN exp_members AS m ON m.member_id = t.author_id LEFT JOIN exp_member_data AS md ON md.member_id = m.member_id WHERE t.entry_id IN (3737) ORDER BY t.sticky desc, t.entry_date desc, t.entry_id desc

ee/legacy/database/drivers/mysqli/mysqli_connection.php:117

Stack Trace: Please include when reporting this error

0 ee/legacy/database/drivers/mysqli/mysqli_driver.php(112): CI_DB_mysqli_connection->query(‘SELECT t.entry…’)

1 ee/legacy/database/DB_driver.php(270): CI_DB_mysqli_driver->_execute(‘SELECT t.entry…’)

2 ee/legacy/database/DB_driver.php(180): CI_DB_driver->simple_query(‘SELECT t.entry…’)

3 ee/EllisLab/Addons/channel/mod.channel.php(248): CI_DB_driver->query(‘SELECT t.entry…’)

4 ee/legacy/libraries/Template.php(1847): Channel->entries()

5 ee/legacy/libraries/Template.php(1482): EE_Template->process_tags()

6 ee/legacy/libraries/Template.php(578): EE_Template->tags()

7 ee/legacy/libraries/Template.php(234): EE_Template->parse(‘{!– ra:0000000…’, false, 1, false)

8 ee/legacy/libraries/Template.php(165): EE_Template->fetch_and_parse(”, ”, false)

9 ee/legacy/libraries/Core.php(661): EE_Template->run_template_engine(”, ”)

10 ee/legacy/controllers/ee.php(63): EE_Core->generate_page()

11 [internal function]: EE->index()

12 ee/EllisLab/ExpressionEngine/Core/Core.php(241): call_user_func_array(Array, Array)

13 ee/EllisLab/ExpressionEngine/Core/Core.php(110): EllisLab\ExpressionEngine\Core\Core->runController(Array)

14 ee/EllisLab/ExpressionEngine/Boot/boot.php(151): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))

15 public_html/index.php(173): require_once(‘…’)

15 public_html/index.php(173): require_once(‘…’)

       
liberty79's avatar
liberty79
135 posts
6 years ago
liberty79's avatar liberty79

I seem to only get this error on my home/index page. all other templates, sub directories and the control panel seem to work without issue.

edit:

if i remove all exp:channel:entries tags on that page, the error goes away

       
liberty79's avatar
liberty79
135 posts
6 years ago
liberty79's avatar liberty79

does anyone know what this “m.url” column missing error is all about?

       
liberty79's avatar
liberty79
135 posts
6 years ago
liberty79's avatar liberty79

well embarrassingly, I was doing this locally to test/debug and think what happened was I accidentally imported the wrong DB file, so of course EE was confused by the wrong database.

       
liberty79's avatar
liberty79
135 posts
6 years ago
liberty79's avatar liberty79

I thought I’d figured this out and ironed out any bugs locally, but I tried to replicate my steps in production and received the same error.

       
liberty79's avatar
liberty79
135 posts
6 years ago
liberty79's avatar liberty79

attempted this again on my production server and am getting the same error

       
liberty79's avatar
liberty79
135 posts
6 years ago
liberty79's avatar liberty79

would there be any value in attempting to upgrade from 3 > 4 and then 4 > 5 instead of 3 > 5?

       
liberty79's avatar
liberty79
135 posts
about 6 years ago
liberty79's avatar liberty79

I’ve tried the EE 3 > EE 4 upgrade and get the exact same error.

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
about 6 years ago
Robin Sowell's avatar Robin Sowell

Boy- you’ve almost worked all the way through!

> does anyone know what this “m.url” column missing error is all about?

Used to be, there was a ‘url’ field in exp_members. But that was removed and anyone that had records in it had a custom member field created to hold it. Because really, it didn’t need to be there by default.

So something you have on that homepage is still looking for that field in the old location.

Weirdly, it looks like it’s the channel module doing it, but that doesn’t really make sense.

You’ve got it on v5 now, right? Does it happen if you disable extensions?

If it’s still happening, try simplifying. Build that template up a section at a time until you can zero in on the smallest, simplest bit that causes the error.

       
liberty79's avatar
liberty79
135 posts
about 6 years ago
liberty79's avatar liberty79

Thanks Robin. I’ve done what you said and rebuilt the ee tags element by element.

it looks like including disable=”member_data” is triggering the error.

oddly enough, it only does that in the home/index template. other templates that also use a channel entries tag with disable=”member_data” specified still work?

       
liberty79's avatar
liberty79
135 posts
about 6 years ago
liberty79's avatar liberty79

does anyone have an ideas? i’m officially stuck and am unsure what to do

       
MID's avatar
MID
166 posts
about 6 years ago
MID's avatar MID

I have a similar problem on a site I’m currently trying to upgrade from EE2 (was originally on EE1).

Upgrade to EE 3 was fine, but on upgrading to 5, I get the following error on the User add-on’s page. (I made sure to upgrade add-ons as I went along with appropriate versions).

Any suggestions gratefully received!

Exception Caught

SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘user_m_Preference_exp_user_preferences.site_id’ in ‘field list’: SELECT user_m_Preference_exp_user_preferences.preference_id as user_m_Preference__preference_id, user_m_Preference_exp_user_preferences.preference_name as user_m_Preference__preference_name, user_m_Preference_exp_user_preferences.preference_value as user_m_Preference__preference_value, user_m_Preference_exp_user_preferences.site_id as user_m_Preference__site_id FROM (exp_user_preferences as user_m_Preference_exp_user_preferences) WHERE ( user_m_Preference_exp_user_preferences.site_id = 1 ) LIMIT 18446744073709551615

ee/legacy/database/drivers/mysqli/mysqli_connection.php:117

Stack Trace: Please include when reporting this error

0 ee/legacy/database/drivers/mysqli/mysqli_driver.php(112): CI_DB_mysqli_connection->query(‘SELECT user_m_P…’)

1 ee/legacy/database/DB_driver.php(270): CI_DB_mysqli_driver->_execute(‘SELECT user_m_P…’)

2 ee/legacy/database/DB_driver.php(180): CI_DB_driver->simple_query(‘SELECT user_m_P…’)

3 ee/legacy/database/DB_active_rec.php(1138): CI_DB_driver->query(‘SELECT user_m_P…’)

4 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(49): CI_DB_active_record->get()

5 ee/EllisLab/ExpressionEngine/Service/Model/DataStore.php(282): EllisLab\ExpressionEngine\Service\Model\Query\Select->run()

6 ee/EllisLab/ExpressionEngine/Service/Model/DataStore.php(228): EllisLab\ExpressionEngine\Service\Model\DataStore->runQuery(‘Select’, Object(EllisLab\ExpressionEngine\Service\Model\Query\Builder))

7 ee/EllisLab/ExpressionEngine/Service/Model/Query/Builder.php(144): EllisLab\ExpressionEngine\Service\Model\DataStore->selectQuery(Object(EllisLab\ExpressionEngine\Service\Model\Query\Builder))

8 ee/EllisLab/ExpressionEngine/Service/Model/Query/Builder.php(63): EllisLab\ExpressionEngine\Service\Model\Query\Builder->fetch()

9 user/addons/user/mcp.user.php(1862): EllisLab\ExpressionEngine\Service\Model\Query\Builder->all()

10 user/addons/user/mcp.user.php(140): User_mcp->preferences(”)

11 [internal function]: User_mcp->index()

12 ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(1662): call_user_func_array(Array, Array)

13 ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(946): EllisLab\ExpressionEngine\Controller\Addons\Addons->getModuleSettings(‘user’, ‘index’, Array)

14 [internal function]: EllisLab\ExpressionEngine\Controller\Addons\Addons->settings(‘user’)

15 ee/EllisLab/ExpressionEngine/Core/Core.php(241): call_user_func_array(Array, Array)

16 ee/EllisLab/ExpressionEngine/Core/Core.php(110): EllisLab\ExpressionEngine\Core\Core->runController(Array)

17 ee/EllisLab/ExpressionEngine/Boot/boot.php(151): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))

18 admin.php(153): require_once(‘…’)

18 admin.php(153): require_once(‘…’)

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
about 6 years ago
Robin Sowell's avatar Robin Sowell

I wanted to circle back around as support was able to dig in and it turned out to be related to caching. For some reason, with memcache in use, it kept using an old query for one of the tags.

Clearing all caches cleared out the problem. But it was a weird one!

MID you’re running into something else- that looks related to the User third party add-on.

Do you have the latest version and have you run the update for it in the Add-ons section? If that doesn’t help resolve it, it might be better to start a new topic, just because this one is already a bit long and involved.

       
MID's avatar
MID
166 posts
about 6 years ago
MID's avatar MID

Thanks Robin. Sorry to butt in! I thought it might be worth joining this thread as the error messages seemed similar, and related to member fields being moved around during the upgrade from 3 to 5.

Upgrading User hadn’t helped but I was able to fix it by uninstalling and reinstalling.

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
about 6 years ago
Robin Sowell's avatar Robin Sowell

No worries, it could have been related. It’s more likely than the weird caching issue it ended up being!

But yours is definitely something to do with User.

       

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.