When Apache Solr autocomplete module is enabled, Autocomplete Deluxe field doesn't work.
When i disable Apache Solr autocomplete, my autocomplete deluxe field work find.

The Autocomplete deluxe field callback is overrided by the link below when Apache Solr autocomplete module is enabled.

http://mysite/search?query=edou&limit=10&timestamp=1334304189190

To reproduce the bug

Create a form with autocomplete deluxe field in you module
Create your menu callback and callback function
Install Apache Solr autocomplete and enable it.

Comments

mike27’s picture

I can confirm this problem. However, I could not manage to implement the solution. Is there another way to solve this issue?
Thanks,
mike

Taxoman’s picture

Is this also an issue with 2.x? (if so, should be moved into that queue, if not, nice with a confirmation)

jitse’s picture

Version: 7.x-1.0-beta5 » 7.x-2.0-beta2

I can confirm the incompatibility between apache solr autocomplete still exists.
I used apache sorl autocomplete 7.x.1.3 and Autocomplete deluxe 7.x-2.0-beta2. I'm changing the version to 7.x-2.0.

jitse’s picture

For future readers. an easy way to circumvent this is to disable apache solr autocomplete on node/add node/edit pages.
You might do something like this

function mymodule_js_alter(&$javascript) {
  if ((strpos($_SERVER['REQUEST_URI'],"node/add")!==FALSE) || (strpos($_SERVER['REQUEST_URI'],"/edit")!==FALSE)) {
    unset($javascript['sites/all/modules/apachesolr_autocomplete/apachesolr_autocomplete.js']);
    unset($javascript['sites/all/modules/apachesolr_autocomplete/jquery-autocomplete/jquery.autocomplete.js']);
  }
}

I did not check if both scripts need to be unloaded.
Cheers

IT100’s picture

any progress on this?

Daniel Schaefer’s picture

#6 worked for me. HOWEVER, when using multiple value fields, the Autocomplete Deluxe fields break upon clicking the "add" button.

In need of a quick solution I added the following line to the admin theme (in this case Seven):

function seven_js_alter(&$javascript) {
    unset($javascript['sites/all/modules/apachesolr_autocomplete/apachesolr_autocomplete.js']);
    unset($javascript['sites/all/modules/apachesolr_autocomplete/jquery-autocomplete/jquery.autocomplete.js']);
}

I don't like it that way, though - feels dirty..
What is the best way to investigate how the modules are in conflict?

LNakamura’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Hi, all - does this problem still exist for the 2.x dev version? From the comments, it appears that the incompatibility would show up when editing nodes with Autocomplete Deluxe fields in them when Apache Solr autocomplete was simply enabled (i.e., you don't need to code a custom module which creates a form using the Autocomplete Deluxe widget, and you don't need to configure Apache Solr autocomplete). I've installed Apache Solr and Apache Solr autocomplete and enabled both, but have no problems with even multiple Autocomplete Deluxe fields in a single node edit form.

Here's what I'm running with:
apachesolr - 7.x-1.8
apachesolr_autocomplete - 7.x-1.6
Drupal - 7.56
autocomplete_deluxe - 7.x-2.x-dev

If anyone still sees this problem running the 2.x dev version, please let me know - we'll need more detailed instructions on reproducing the problem, however.

Thanks!

rajab natshah’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)