Postponed (maintainer needs more info)
Project:
Apache Solr Autocomplete
Version:
6.x-1.2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2011 at 22:03 UTC
Updated:
4 Mar 2015 at 18:41 UTC
Jump to comment: Most recent
Comments
Comment #1
janusman commentedTry clearing caches; if you're aggregating JS that might be the issue. If you keep having problems siwtch to the legacy "Drupal Core Autocomplete" widget at admin/settings/apachesolr under "Advanced options". See the README.txt for more.
Comment #2
saifthe1 commentedThank you for your help..
I even tried calling the jquery autocomplete js file with core js includes, then changed the sequence of include in the module file and even tried delay timer to call the function though still not detecting autosuggest function. However i switched to legacy auto suggest but isn't there any solution for the problem.
Comment #3
janusman commentedOther things to try:
- switch off JS aggregation at admin/build/performance
- disable other modules that add JS to your pages (maybe one is in conflict with the new Autocomplete widget)
Comment #4
janusman commentedWaiting for more feedback. You're the only one reporting this so I need more data to go on (I really suspect it's a collision with another module). It'd be awesome if you alse specify if yo uhave jQuery Update or other modules that add/change jQuery plugins installed.
Comment #5
Bill Choy commentedI know this is a old issue.... but here is the solution for 6.x-1.4.
apachesolr_autocomplete_init() bring in the Javascripts in the wrong order. The jQuery_autocomplete JS needs to be included before the module's JS file.
.......
apachesolr_autocomplete.js uses the JQuery $ variable before it has been defined by jquery-autocomplete.js [with the standard "function($) {....})(jQuery);" ]
So if we change
to
Everything should work. Or you can stop using the 'Autocomplete widget to use: Custom autocomplete widget' in /admin/settings/apachesolr under "Advanced configuration".
see my patch in https://www.drupal.org/node/2446059