Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.4
-
Fix Version/s: 1.4
-
Component/s: None
-
Labels:None
Description
1. Create a profile with a group selector.
2. Add yourself to a group via the profile.
3. When viewing the profile under ?my account?, the group?s name is clickable, but clicking it throws the following error:
Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => handle
)
[code] => -2
[message] => DB Error: syntax error
[mode] => 16
[debug_info] => SELECT count(civicrm_contact.id) FROM civicrm_contact LEFT JOIN civicrm_individual ON (civicrm_contact.id = civicrm_individual.contact_id) LEFT JOIN civicrm_group_contact ON civicrm_contact.id = civicrm_group_contact.contact_id WHERE civicrm_contact.domain_id = 1 AND civicrm_group_contact.group_id IN (4) AND civicrm_group_contact.status IN ("Added") AND LOWER() LIKE "%%" AND ( 1 ) [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') LIKE "%%" AND ( 1 )' at line 1]
[type] => DB_Error
[user_info] => SELECT count(civicrm_contact.id) FROM civicrm_contact LEFT JOIN civicrm_individual ON (civicrm_contact.id = civicrm_individual.contact_id) LEFT JOIN civicrm_group_contact ON civicrm_contact.id = civicrm_group_contact.contact_id WHERE civicrm_contact.domain_id = 1 AND civicrm_group_contact.group_id IN (4) AND civicrm_group_contact.status IN ("Added") AND LOWER() LIKE "%%" AND ( 1 ) [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') LIKE "%%" AND ( 1 )' at line 1]
[to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT count(civicrm_contact.id) FROM civicrm_contact LEFT JOIN civicrm_individual ON (civicrm_contact.id = civicrm_individual.contact_id) LEFT JOIN civicrm_group_contact ON civicrm_contact.id = civicrm_group_contact.contact_id WHERE civicrm_contact.domain_id = 1 AND civicrm_group_contact.group_id IN (4) AND civicrm_group_contact.status IN ("Added") AND LOWER() LIKE "%%" AND ( 1 ) [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') LIKE "%%" AND ( 1 )' at line 1]"]
)