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
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.
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?
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
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.
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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.