Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6.3
-
Fix Version/s: 4.6.4
-
Component/s: CiviReport
-
Labels:None
-
Documentation Required?:None
Description
Below is the back trace.
The reason is because the report has a containts/doesn't contain filter on the target contact. That means it gets put into the HAVING clause.
So, the code that
backTrace
#0 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Core/Error.php(191): CRM_Core_Error::backtrace()
#1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
#2 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/packages/PEAR.php(931): call_user_func((Array:2), Object(DB_Error))
#3 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/packages/DB.php(975): PEAR_Error->PEAR_Error("DB Error: no such field", -19, 16, (Array:2), "SELECT SQL_CALC_FOUND_ROWS GROUP_CONCAT(civicrm_contact_contact_source SEPARA...")
#4 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/packages/PEAR.php(564): DB_Error->DB_Error(-19, 16, (Array:2), "SELECT SQL_CALC_FOUND_ROWS GROUP_CONCAT(civicrm_contact_contact_source SEPARA...")
#5 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/packages/DB/common.php(1905): PEAR->raiseError(NULL, -19, NULL, NULL, "SELECT SQL_CALC_FOUND_ROWS GROUP_CONCAT(civicrm_contact_contact_source SEPARA...", "DB_Error", TRUE)
#6 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/packages/DB/mysql.php(899): DB_common->raiseError(-19, NULL, NULL, NULL, "1054 Unknown column 'civicrm_contact_contact_target_id' in 'having clause'")
#7 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/packages/DB/mysql.php(328): DB_mysql->mysqlRaiseError()
#8 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/packages/DB/common.php(1216): DB_mysql->simpleQuery("SELECT SQL_CALC_FOUND_ROWS GROUP_CONCAT(civicrm_contact_contact_source SEPARA...")
#9 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/packages/DB/DataObject.php(2442): DB_common->query("SELECT SQL_CALC_FOUND_ROWS GROUP_CONCAT(civicrm_contact_contact_source SEPARA...")
#10 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/packages/DB/DataObject.php(1634): DB_DataObject->_query("SELECT SQL_CALC_FOUND_ROWS GROUP_CONCAT(civicrm_contact_contact_source SEPARA...")
#11 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Core/DAO.php(325): DB_DataObject->query("SELECT SQL_CALC_FOUND_ROWS GROUP_CONCAT(civicrm_contact_contact_source SEPARA...")
#12 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Core/DAO.php(1116): CRM_Core_DAO->query("SELECT SQL_CALC_FOUND_ROWS GROUP_CONCAT(civicrm_contact_contact_source SEPARA...", TRUE)
#13 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Report/Form/Activity.php(592): CRM_Core_DAO::executeQuery("SELECT SQL_CALC_FOUND_ROWS GROUP_CONCAT(civicrm_contact_contact_source SEPARA...")
#14 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Report/Form.php(2802): CRM_Report_Form_Activity->add2group("1240")
#15 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Report/Form/Activity.php(696): CRM_Report_Form->endPostProcess((Array:50))
#16 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Core/Form.php(328): CRM_Report_Form_Activity->postProcess()
#17 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Submit.php(73): CRM_Core_Form->mainProcess()
#18 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Submit->perform(Object(CRM_Report_Form_Activity), "submit")
#19 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Report_Form_Activity), "submit")
#20 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Core/Controller.php(356): HTML_QuickForm_Page->handle("submit")
#21 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(117): CRM_Core_Controller->run()
#22 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Report/Page/Instance.php(103): CRM_Utils_Wrapper->run("CRM_Report_Form_Activity", NULL, NULL)
#23 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Core/Invoke.php(335): CRM_Report_Page_Instance->run((Array:4), NULL)
#24 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Core/Invoke.php(79): CRM_Core_Invoke::runItem((Array:14))
#25 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4))
#26 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/sites/all/modules/civicrm/drupal/civicrm.module(457): CRM_Core_Invoke::invoke((Array:4))
#27 [internal function](): civicrm_invoke("report", "instance", "16")
#28 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:3))
#29 /var/aegir/platforms/cortazar-ourpowerbase-d7-c4.5/index.php(21): menu_execute_active_handler()
#30
Sorry but we are not able to provide this at the moment.
DB Error: no such field
Return to home page.