Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Critical
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.7
-
Fix Version/s: 4.2.8
-
Component/s: CiviCampaign, CiviMember
-
Labels:None
Description
When trying to do a search->find Memberships with CiviCampaign enabled and a campaign defined, selecting the campaign and choosing search results in an error. The backtrace from the demo site is at the end of this description.
To reproduce the error on the demo site: enable civicampaign. Create at least one campaign. From the search Menu choose Find memberships. In the search page the Campaign Drop down will appear with your created campaigns. Choose at least one and click the search button. The result will be an error with the backtrace
backTrace
#0 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Core/Error.php(307): CRM_Core_Error::backtrace()
#1 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Contact/BAO/Query.php(1858): CRM_Core_Error::fatal()
#2 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Contact/BAO/Query.php(1491): CRM_Contact_BAO_Query->restWhere((Array:5))
#3 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Contact/BAO/Query.php(1529): CRM_Contact_BAO_Query->whereClauseSingle((Array:5))
#4 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Contact/BAO/Query.php(459): CRM_Contact_BAO_Query->whereClause()
#5 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Contact/BAO/Query.php(420): CRM_Contact_BAO_Query->initialize()
#6 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Member/Selector/Search.php(173): CRM_Contact_BAO_Query->__construct((Array:3), (Array:16), NULL, FALSE, FALSE, 8)
#7 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Member/Form/Search.php(353): CRM_Member_Selector_Search->__construct((Array:3), 1, NULL, FALSE, NULL, "search")
#8 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Core/Form.php(246): CRM_Member_Form_Search->postProcess()
#9 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Core/QuickForm/Action/Refresh.php(75): CRM_Core_Form->mainProcess()
#10 /var/www/drupal7.civicrm.org/svn/civicrm42/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Refresh->perform(Object(CRM_Member_Form_Search), "refresh")
#11 /var/www/drupal7.civicrm.org/svn/civicrm42/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Member_Form_Search), "refresh")
#12 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Core/Controller.php(302): HTML_QuickForm_Page->handle("refresh")
#13 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Core/Invoke.php(220): CRM_Core_Controller->run((Array:3), NULL)
#14 /var/www/drupal7.civicrm.org/svn/civicrm42/CRM/Core/Invoke.php(51): CRM_Core_Invoke::_invoke((Array:3))
#15 /var/www/drupal7.civicrm.org/svn/civicrm42/drupal/civicrm.module(500): CRM_Core_Invoke::invoke((Array:3))
#16 [internal function](): civicrm_invoke("member", "search")
#17 /var/www/drupal7.civicrm.org/public/includes/menu.inc(516): call_user_func_array("civicrm_invoke", (Array:2))
#18 /var/www/drupal7.civicrm.org/public/index.php(21): menu_execute_active_handler()