View Issue Details

IDProjectCategoryView StatusLast Update
0003811Composr alpha bug reports[All Projects] General / Uncategorisedpublic2019-06-09 20:58
ReporterSalmanAssigned ToChris Graham 
SeverityFeature-request 
Status resolvedResolutionfixed 
Summary0003811: Query error in Hook_member_boxes_buildr::run() in v11
DescriptionI am getting the following error inside member tooltips:
A query has failed [SELECT m.*,r.*,rm.name AS room_name FROM cms11_w_members m JOIN cms11_w_realms r ON m.location_realm=r.id JOIN cms11_w_rooms rm ON r.location_x=rm.location_x AND r.location_y=rm.location_y AND r.location_realm=rm.location_realm WHERE (m.id=4) LIMIT 1] [Unknown column 'r.location_x' in 'on clause']

The culprit is the following line (# 51) in "sources_custom/hooks/systems/member_boxes/buildr.php":
$rows = $GLOBALS['SITE_DB']->query_select('w_members m JOIN ' . $GLOBALS['SITE_DB']->get_table_prefix() . 'w_realms r ON m.location_realm=r.id JOIN ' . $GLOBALS['SITE_DB']->get_table_prefix() . 'w_rooms rm ON r.location_x=rm.location_x AND r.location_y=rm.location_y AND r.location_realm=rm.location_realm', array('m.*', 'r.*', 'rm.name AS room_name'), array('m.id' => $member_id), '', 1);

I tried to find a fix but the `w_realms` table doesn't have `location_x` and `location_y` columns in any repo branch so I'm not sure what needs to be done.
Steps To Reproduce1. Go to Forum home
2. Hover over a member's name (e.g., in the "Last Post" column of a forum group).
TagsNo tags attached.
Sponsorship open

Activities

Chris Graham

2019-06-09 20:58

administrator   ~0005961

Fixed in bf03acaa787365ef9d5a6c207aef66d9bb1e6038

Issue History

Date Modified Username Field Change
2019-06-01 20:15 Salman New Issue
2019-06-01 20:15 Salman Description Updated View Revisions
2019-06-09 20:58 Chris Graham Assigned To => Chris Graham
2019-06-09 20:58 Chris Graham Status non-assigned => resolved
2019-06-09 20:58 Chris Graham Resolution open => fixed
2019-06-09 20:58 Chris Graham Note Added: 0005961
2023-02-26 18:29 Chris Graham Category General => General / Uncategorised