CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • Quick Search Broken for me in 4.5 B9
Pages: [1]

Author Topic: Quick Search Broken for me in 4.5 B9  (Read 1524 times)

lee.gooding

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
    • Clear River Church
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.7
  • PHP version: 5.3
Quick Search Broken for me in 4.5 B9
September 08, 2014, 07:04:39 am
This is similar to a previous post but I am having a different error.

The quick search has an endless wait. If I put the cursor in the quick search and hit return (% search) then I get the following error. Clearing the cache does not fix it.

Code: [Select]
Sep 08 09:57:24  [info] $Fatal Error Details = Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -3
    [message] => QuickForm Error: nonexistent html element
    [mode] => 16
    [debug_info] => Element 'country' does not exist in HTML_QuickForm::getElementValue()
    [type] => HTML_QuickForm_Error
    [user_info] => Element 'country' does not exist in HTML_QuickForm::getElementValue()
    [to_string] => [html_quickform_error: message="nonexistent html element" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="QuickForm Error: " info="Element 'country' does not exist in HTML_QuickForm::getElementValue()"]
)


Sep 08 09:57:24  [info] $backTrace = #0 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/CRM/Core/Error.php(239): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 [internal function](): CRM_Core_Error::handle(Object(HTML_QuickForm_Error))
#2 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/packages/PEAR.php(931): call_user_func((Array:2), Object(HTML_QuickForm_Error))
#3 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/packages/HTML/QuickForm.php(2096): PEAR_Error->PEAR_Error("nonexistent html element", -3, 16, (Array:2), "Element 'country' does not exist in HTML_QuickForm::getElementValue()")
#4 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/packages/PEAR.php(564): HTML_QuickForm_Error->HTML_QuickForm_Error(-3, 16, (Array:2), "Element 'country' does not exist in HTML_QuickForm::getElementValue()")
#5 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/packages/HTML/QuickForm.php(814): PEAR->raiseError(NULL, -3, NULL, 512, "Element 'country' does not exist in HTML_QuickForm::getElementValue()", "HTML_QuickForm_Error", TRUE)
#6 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/CRM/Core/Form.php(1800): HTML_QuickForm->getElementValue("country")
#7 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/CRM/Core/Form.php(399): CRM_Core_Form->validateChainSelectFields()
#8 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Refresh.php(66): CRM_Core_Form->validate()
#9 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Refresh->perform(Object(CRM_Contact_Form_Search_Advanced), "refresh")
#10 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contact_Form_Search_Advanced), "refresh")
#11 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/CRM/Core/Controller.php(356): HTML_QuickForm_Page->handle("refresh")
#12 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/CRM/Core/Invoke.php(331): CRM_Core_Controller->run((Array:4), (Array:0))
#13 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/CRM/Core/Invoke.php(75): CRM_Core_Invoke::runItem((Array:13))
#14 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4))
#15 /var/aegir/platforms/drupal-7.31/sites/all/modules/civicrm/drupal/civicrm.module(457): CRM_Core_Invoke::invoke((Array:4))
#16 [internal function](): civicrm_invoke("contact", "search", "advanced")
#17 /var/aegir/platforms/drupal-7.31/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:3))
#18 /var/aegir/platforms/drupal-7.31/index.php(21): menu_execute_active_handler()
#19 {main}

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Quick Search Broken for me in 4.5 B9
September 08, 2014, 10:00:33 am
Try clearing the Drupal cache - assuming you're using Drupal, that is.  I had the same problem - emptying the Civi cache didn't seem to fix it - I then emptied the Drupal caches which then fixed the problem.  And then I wondered whether I'd just been a bit hasty and should have waited a few seconds for the Civi cache... 
Andy Clark

lee.gooding

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
    • Clear River Church
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.7
  • PHP version: 5.3
Re: Quick Search Broken for me in 4.5 B9
September 09, 2014, 07:18:36 am
I don't have Drupal cache enabled. Unless it is caching something I don't know about, this won't help my situation.

I had to revert back to 4.5B8. (I'm crazy and I'm using this on our production server :)). I'm going to wait until this weekend and attempt to upgrade again. I am also going to rebuild the schema and import my data (I think there may be some other corruption going on). I'll post back if this issue crops up again.
« Last Edit: September 09, 2014, 08:18:55 am by lee.gooding »

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Quick Search Broken for me in 4.5 B9
September 10, 2014, 06:57:48 am
Drupal has a fair number of caches - some of which I don't think you can turn off - so probably worth clearing them.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

andrewhunt

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 13
    • AGH Strategies
  • CiviCRM version: all of 'em
  • CMS version: Drupal, Joomla, and WordPress
Re: Quick Search Broken for me in 4.5 B9
October 17, 2014, 11:59:07 am
A client of ours has exactly this error, but on 4.5.1 and now 4.5.2.  Did you find any resolution?

This happens in two situations:
  • When using the quick search, typing "fred" or whatever and hitting return to go straight to the search page
  • When using Advanced Search and opening the Address Fields pane, that's the response to the AJAX request, and the pane doesn't display anything
« Last Edit: October 17, 2014, 12:01:19 pm by andrewhunt »
You can find me at AGH Strategies.
Need help now?  Civi911 is your go-to for CiviCRM support.

lee.gooding

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
    • Clear River Church
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.7
  • PHP version: 5.3
Re: Quick Search Broken for me in 4.5 B9
October 20, 2014, 06:23:34 am
Andrew,

Try enable "Country" within the "address editing" section under Administer > Localization > Address Settings. I'm not sure what is going on, but I had to enable that to fix that error.

Let me know if it works!

Quote from: andrewhunt on October 17, 2014, 11:59:07 am
A client of ours has exactly this error, but on 4.5.1 and now 4.5.2.  Did you find any resolution?

This happens in two situations:
  • When using the quick search, typing "fred" or whatever and hitting return to go straight to the search page
  • When using Advanced Search and opening the Address Fields pane, that's the response to the AJAX request, and the pane doesn't display anything

andrewhunt

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 13
    • AGH Strategies
  • CiviCRM version: all of 'em
  • CMS version: Drupal, Joomla, and WordPress
Re: Quick Search Broken for me in 4.5 B9
October 20, 2014, 06:53:51 am
Yeah, we found that and reported it (https://issues.civicrm.org/jira/browse/CRM-15479) on Friday, and it turns out Eileen reported the same thing earlier that day (https://issues.civicrm.org/jira/browse/CRM-15476).  Thanks!
You can find me at AGH Strategies.
Need help now?  Civi911 is your go-to for CiviCRM support.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • Quick Search Broken for me in 4.5 B9

This forum was archived on 2017-11-26.