When I try the autocomplete for data selectors I am now seeing raw css (e.g., "

I have tried several admin themes and Firefox, Chrome, and IE and all have this problem.

Any thoughts of what might be going on? I just updated from the previous dev version to the current one and that didn't help, either.

Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hitfactory’s picture

This usually indicates a javascript error. Disabling the jQuery Update module fixed the problem for me.

kopeboy’s picture

I'm having the same problem on 7-2.6

Data selector dropdown is showing "

Did you mean disabling and re enabling jQuery update or keep it disabled? In that case that is not a solution..

pkiff’s picture

To kopeboy: Have you checked your jquery version, and did you try disabling the jQuery Update module as suggested by hitfactory in #1 above?

I ran into the same problem (the raw HTML code divs appearing in the dropdown selector, rendering the selector non-functional) when running Rules 7.x-2.7, but it went away when I changed my jQuery Update settings to use version 1.5.

jordi_bcktt’s picture

Changing jquery update to 1.5 in administrative pages fix the error for me.

seycom’s picture

Same as #4. Changing to jQuery 1.5 helps.

echoz’s picture

Status: Active » Fixed

Thanks, jQuery set to 1.5 for admin fixed this for me!

kopeboy’s picture

Status: Fixed » Needs review

Hi all, changing to 1.5 didn't solve for me.

Only after I try to save with data selector empty, the page will reload with the error notice and show the data selectors.

BUT this doesn't work on some conditions, for example "Entity is of bundle". In this case, even trying to save and reloading won't make the data selectors appear.

I was using jQuery 1.7 and they always appeared, but of course with raw html.

How can we fix this? What about newer jQuery versions? Its very frustrating, even more considering this is a very important and popular module.

Look in this issue as well.

PascalAnimateur’s picture

Apply this patch on jquery_update : https://www.drupal.org/files/jquery_update-1548028-25-default-jquery.patch
Then select "Default (provided by Drupal)" for the administration pages.

This should fix your problem.

mamanerd’s picture

If you are using jQueryUI 1.10 and don't want to switch the admin jQuery version to 1.5, use this patch. See this page for more info: http://stackoverflow.com/questions/17568630/jqueryui-version-1-10-autoco...

AaronBauman’s picture

Both references to this.jqObject.data("autocomplete") need to be changed.
This will address the behavior whereby after you choose an autocomplete selection, you have to click away, then re-click the input field to get the autocomplete selector to appear again.

summerg’s picture

jQuery 1.5 works for me... guess we can switch bck and forth for the few times we modify rules

thomasmurphy’s picture

#8 is there an issue or page for this patch? I'd like to use it but I'd like some context. I am having this issue even with JQuery update set to 1.5 or default for admin areas, but disabling JQuery Update solves the problem (not that that is a solution!)

Anonymous’s picture

The issue is this one: https://www.drupal.org/node/1548028

Also, it appears this patch has been committed to the current dev version of Jquery Update.

rsvelko’s picture

Just a speculation: but if you use the CDN settings in jquery_update settings, try settings CDN to None.
The issue might be entirely jquery_update's fault for this specific thread.

TR’s picture

Status: Needs review » Postponed (maintainer needs more info)

Haven't had any more occurrences of this problem for three years - does it still happen for some people?
If it is still happening for you, are you using jquery_update? What version of jQuery are you updating to?

Unfortunately, some jQuery changes are not backwards compatible, so it's difficult if not impossible in principle to support the default Drupal core version of jQuerey (1.4.4) at the same time as significantly newer versions of jQuery.

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further information provided. Feel free to reopen the issue if you can provide detailed steps to reproduce the issue on a clean site.