Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.4
-
Fix Version/s: 1.4
-
Component/s: Technical infrastructure
-
Labels:None
Description
Running on drupal 4.7, CiviCRM 1.4
The error seems to have something to do with file
Contact.php line 1647, since the mysql-code in question is located there.
Home » CiviCRM » Kontakt Ansehen » Search Results
Aktivitäten
unbehebbarer Fehler
Entschuldigung. Ein nicht behebbarer Fehler ist aufgetreten.
Datenbank-Errorcode: 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 '' at line 8, 1064
Zum CiviCRM-Menu zurückkehren.
error
Array
(
[callback] => Array
(
[0] => CRM_Core_Error
[1] => handle
)
[code] => -2
[message] => DB Error: syntax error
[mode] => 16
[debug_info] => SELECT civicrm_individual.first_name, civicrm_individual.last_name, civicrm_email.email, civicrm_contact.do_not_email
FROM civicrm_contact
LEFT JOIN civicrm_individual ON (civicrm_contact.id = civicrm_individual.contact_id)
LEFT JOIN civicrm_location ON (civicrm_location.entity_table = 'civicrm_contact' AND
civicrm_contact.id = civicrm_location.entity_id AND
civicrm_location.is_primary = 1)
LEFT JOIN civicrm_email ON (civicrm_location.id = civicrm_email.location_id AND civicrm_email.is_primary = 1)
WHERE civicrm_contact.id = [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 '' at line 8]
[type] => DB_Error
[user_info] => SELECT civicrm_individual.first_name, civicrm_individual.last_name, civicrm_email.email, civicrm_contact.do_not_email
FROM civicrm_contact
LEFT JOIN civicrm_individual ON (civicrm_contact.id = civicrm_individual.contact_id)
LEFT JOIN civicrm_location ON (civicrm_location.entity_table = 'civicrm_contact' AND
civicrm_contact.id = civicrm_location.entity_id AND
civicrm_location.is_primary = 1)
LEFT JOIN civicrm_email ON (civicrm_location.id = civicrm_email.location_id AND civicrm_email.is_primary = 1)
WHERE civicrm_contact.id = [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 '' at line 8]
[to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info=" SELECT civicrm_individual.first_name, civicrm_individual.last_name, civicrm_email.email, civicrm_contact.do_not_email
FROM civicrm_contact
LEFT JOIN civicrm_individual ON (civicrm_contact.id = civicrm_individual.contact_id)
LEFT JOIN civicrm_location ON (civicrm_location.entity_table = 'civicrm_contact' AND
civicrm_contact.id = civicrm_location.entity_id AND
civicrm_location.is_primary = 1)
LEFT JOIN civicrm_email ON (civicrm_location.id = civicrm_email.location_id AND civicrm_email.is_primary = 1)
WHERE civicrm_contact.id = [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 '' at line 8]"]
)