Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Critical
-
Resolution: Duplicate
-
Affects Version/s: 4.4.1
-
Fix Version/s: None
-
Component/s: Core CiviCRM
-
Labels:None
Description
This is pretty much the same as CRM-13715, but that bug was closed as fixed. It is not fixed. See details below:
- Here is the original bug description, and comments from me and another person after 4.4.1 release:
In the Civi Demo 4 Drupal site, I made two fields searchable, so that they would show up on the report field selection. Used Contribution Details report and select the "How long have you been a donor?" field for the report. Got the following error:
backTrace
#0 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Error.php(149): CRM_Core_Error::backtrace()
#1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
#2 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/PEAR.php(931): call_user_func((Array:2), Object(DB_Error))
#3 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB.php(969): PEAR_Error->PEAR_Error("DB Error: no such field", -19, 16, (Array:2), "CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
#4 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/PEAR.php(564): DB_Error->DB_Error(-19, 16, (Array:2), "CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
#5 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/common.php(1905): PEAR->raiseError(NULL, -19, NULL, NULL, "CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...", "DB_Error", TRUE)
#6 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/mysql.php(898): DB_common->raiseError(-19, NULL, NULL, NULL, "1054 ** Unknown column 'value_donor_information_3_civireport.how_long_have_yo...")
#7 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/mysql.php(327): DB_mysql->mysqlRaiseError()
#8 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/common.php(1216): DB_mysql->simpleQuery("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
#9 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/DataObject.php(2421): DB_common->query("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
#10 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/DB/DataObject.php(1613): DB_DataObject->_query("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
#11 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/DAO.php(158): DB_DataObject->query("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
#12 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/DAO.php(905): CRM_Core_DAO->query("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...", TRUE)
#13 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Report/Form/Contribute/Detail.php(599): CRM_Core_DAO::executeQuery("CREATE TEMPORARY TABLE civireport_contribution_detail_temp2 AS SELECT SQL_CAL...")
#14 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Form.php(261): CRM_Report_Form_Contribute_Detail->postProcess()
#15 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/QuickForm/Action/Submit.php(73): CRM_Core_Form->mainProcess()
#16 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Submit->perform(Object(CRM_Report_Form_Contribute_Detail), "submit")
#17 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Report_Form_Contribute_Detail), "submit")
#18 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Controller.php(345): HTML_QuickForm_Page->handle("submit")
#19 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Utils/Wrapper.php(117): CRM_Core_Controller->run()
#20 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Report/Page/Instance.php(103): CRM_Utils_Wrapper->run("CRM_Report_Form_Contribute_Detail", NULL, NULL)
#21 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Invoke.php(323): CRM_Report_Page_Instance->run((Array:4), NULL)
#22 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:14))
#23 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4))
#24 /var/www/drupal7.civicrm.org/svn/civicrmdemo43/drupal/civicrm.module(436): CRM_Core_Invoke::invoke((Array:4))
#25 [internal function](): civicrm_invoke("report", "instance", "7")
#26 /var/www/drupal7.civicrm.org/public/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:3))
#27 /var/www/drupal7.civicrm.org/public/index.php(21): menu_execute_active_handler()
#28
Sorry but we are not able to provide this at the moment.
DB Error: no such field
Activity
All
Comments
Work Log
History
Activity
Commits
Source
Reviews
Logan Bear added a comment - 07/Nov/13 12:59 AM
I just ran the same test on drupal.demo.civicrm.org version 4.4.1 and it isn't fixed. I get the same error.
Roni O added a comment - 08/Nov/13 3:00 PM
Same here. Yesterday I upgraded from 4.3.5 to 4.4.1. Upgrade went successfully - no error messages (I tried 3 times before with 4.4.beta4 and 4.4.0release, had installation conversion problems, so it seemed like the same problem was occurring then, but I attributed it to upgrade conversion issue, so did not dig deeper).
Now a bit more detail about this problem. I spent most of the day yesterday, first trying to narrow down on the issue with custom fields. I get exactly the problem as the person above. Then to make sure that this was conversion issue, I created a NEW CUSTOM FIELD SET. The moment I include the new custom field set into my Donation Detail report, the same problem above happens again. So it is not related to custom field conversion during upgrade, but a problem is deeper. Maybe something gets corrupted in a different civicrm table that helps to reference civicrm_custom_field and civicrm_custom_group table? Or maybe it is a straight new code bug?
Hope this information helps to determine the issue.