Active
Project:
Apache Solr Autocomplete
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2012 at 06:23 UTC
Updated:
17 Aug 2012 at 01:02 UTC
I noticed that on pages with fivestar and autocomplete widget, the entire js functionality breaks. This only happens sometimes when I refresh the page continuously 3-4 times.
Uncaught TypeError: Object #<Object> has no method 'autocomplete'
Comments
Comment #1
heacu commentedApache Solr Autocomplete's "custom autocomplete widget" uses JQuery UI's autocomplete functionality. Since Drupal 7 includes jQuery 1.4.4 and jQuery UI 1.8.7, the module should include the autocomplete javascript as follows:
drupal_add_library('system', 'ui.autocomplete');
That's not how it's done in apachesolr_autocomplete_init()... which seems to be the problem.
Comment #2
heacu commentedThere are two other sub-optimal solutions to the problem:
1. Apply the patch at http://drupal.org/node/1491068#comment-5760350
2. Use the "Drupal core autocomplete widget" instead of the "Custom autocomplete widget"