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) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Javascript errors breaking Quick Search on "/civicrm" only
Pages: [1]

Author Topic: Javascript errors breaking Quick Search on "/civicrm" only  (Read 397 times)

duwease

  • I’m new here
  • *
  • Posts: 15
  • Karma: 1
  • CiviCRM version: 4.2.4
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5
Javascript errors breaking Quick Search on "/civicrm" only
April 02, 2015, 10:40:19 am
Drupal vers: 7.x
Civi vers: 4.4.5 (also tried 4.4.14)

We're having an issue where the Quick Search doesn't work on the CiviCRM home page.. but only the CiviCRM home page ('/civicrm').  Any other link (even '/civicrm/dashboard') works.. unfortunately, the 'CiviCRM' links in the breadcrumbs generally link to '/civicrm'.

There are Javascript errors in the Chrome console:
Code: [Select]
jquery.notify.min.js?nm6vb5:7 Uncaught TypeError: undefined is not a function
Common.js?nm6vb5:774 Uncaught TypeError: undefined is not a function

From what I can tell, the error is due to the fact that '/civicrm' doesn't load the packaged jQuery UI 1.9.0 library, whereas the other pages do ('/sites/all/modules/civicrm/packages/jquery/jquery-ui-1.9.0/js/jquery-ui-1.9.0.custom.min.js?nm6vb5').  This causes calls such as 'notify()' that rely on the 1.9.0 UI library to not resolve to a function.

Any clue/fix that would resolve this issue?  I've tried clearing the /sites/default/files/civicrm/templates_c/ cache out, to no avail.
« Last Edit: April 02, 2015, 10:43:56 am by duwease »

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Javascript errors breaking Quick Search on "/civicrm" only
April 02, 2015, 10:53:58 am
That's a really weird one. Do you have any custom code/hooks that are doing something special with that page?
Have you tried the other steps at http://forum.civicrm.org/index.php/topic,35850.0.html
Try asking your question on the new CiviCRM help site.

duwease

  • I’m new here
  • *
  • Posts: 15
  • Karma: 1
  • CiviCRM version: 4.2.4
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5
Re: Javascript errors breaking Quick Search on "/civicrm" only
April 02, 2015, 11:21:20 am
Thanks for the link (and the quick response!)  Following that advice, I spent some time disabling custom modules one-by-one, and found a culprit.  I'll have to investigate.  Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Javascript errors breaking Quick Search on "/civicrm" only

This forum was archived on 2017-11-26.