Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.7
-
Fix Version/s: 1.7
-
Component/s: Core CiviCRM
-
Labels:None
Description
Create a group "test" and add authenticated user to it.
Log in as authenticated user and go to page civicrm/user
Get error below.
Delete the group "test" from system and contact dashboard will load with "no group memberships" message.
Contact Dashboard
Sorry. A non-recoverable error has occurred.
Database Error Code: Unknown column 'test' in 'where clause', 1054
Return to CiviCRM menu.
Error Details:
Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => handle
)
[code] => -19
[message] => DB Error: no such field
[mode] => 16
[debug_info] => SELECT count(DISTINCT civicrm_group_contact.id) FROM civicrm_contact contact_a LEFT JOIN civicrm_group_contact ON contact_a.id = civicrm_group_contact.contact_id LEFT JOIN civicrm_group ON civicrm_group.id = civicrm_group_contact.group_id LEFT JOIN civicrm_subscription_history
ON civicrm_group_contact.contact_id = civicrm_subscription_history.contact_id
AND civicrm_group_contact.group_id = civicrm_subscription_history.group_id WHERE contact_a.id = 2 AND civicrm_group.is_active = 1 AND ( ( civicrm_group_contact.group_id IN (test ) AND civicrm_group_contact.status = 'Added' ) ) [nativecode=1054 ** Unknown column 'test' in 'where clause']
[type] => DB_Error
[user_info] => SELECT count(DISTINCT civicrm_group_contact.id) FROM civicrm_contact contact_a LEFT JOIN civicrm_group_contact ON contact_a.id = civicrm_group_contact.contact_id LEFT JOIN civicrm_group ON civicrm_group.id = civicrm_group_contact.group_id LEFT JOIN civicrm_subscription_history
ON civicrm_group_contact.contact_id = civicrm_subscription_history.contact_id
AND civicrm_group_contact.group_id = civicrm_subscription_history.group_id WHERE contact_a.id = 2 AND civicrm_group.is_active = 1 AND ( ( civicrm_group_contact.group_id IN (test ) AND civicrm_group_contact.status = 'Added' ) ) [nativecode=1054 ** Unknown column 'test' in 'where clause']
[to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT count(DISTINCT civicrm_group_contact.id) FROM civicrm_contact contact_a LEFT JOIN civicrm_group_contact ON contact_a.id = civicrm_group_contact.contact_id LEFT JOIN civicrm_group ON civicrm_group.id = civicrm_group_contact.group_id LEFT JOIN civicrm_subscription_history
ON civicrm_group_contact.contact_id = civicrm_subscription_history.contact_id
AND civicrm_group_contact.group_id = civicrm_subscription_history.group_id WHERE contact_a.id = 2 AND civicrm_group.is_active = 1 AND ( ( civicrm_group_contact.group_id IN (test ) AND civicrm_group_contact.status = 'Added' ) ) [nativecode=1054 ** Unknown column 'test' in 'where clause']"]
)