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

heacu’s picture

Apache 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.

heacu’s picture

There 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"