Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#10 | rules-jquery_ui_autocomplete_fix-2240611-10.patch | 915 bytes | AaronBauman |
#9 | rules-remove-html-from-data-selector-2240611-9.patch | 637 bytes | mamanerd |
Comments
Comment #1
hitfactory CreditAttribution: hitfactory commentedThis usually indicates a javascript error. Disabling the jQuery Update module fixed the problem for me.
Comment #2
kopeboy CreditAttribution: kopeboy commentedI'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..
Comment #3
pkiff CreditAttribution: pkiff commentedTo 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.
Comment #4
jordi_bcktt CreditAttribution: jordi_bcktt commentedChanging jquery update to 1.5 in administrative pages fix the error for me.
Comment #5
seycom CreditAttribution: seycom commentedSame as #4. Changing to jQuery 1.5 helps.
Comment #6
echoz CreditAttribution: echoz commentedThanks, jQuery set to 1.5 for admin fixed this for me!
Comment #7
kopeboy CreditAttribution: kopeboy commentedHi 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.
Comment #8
PascalAnimateur CreditAttribution: PascalAnimateur commentedApply 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.
Comment #9
mamanerd CreditAttribution: mamanerd commentedIf 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...
Comment #10
AaronBaumanBoth 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.
Comment #11
summerg CreditAttribution: summerg commentedjQuery 1.5 works for me... guess we can switch bck and forth for the few times we modify rules
Comment #12
thomasmurphy CreditAttribution: thomasmurphy commented#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!)
Comment #13
Anonymous (not verified) CreditAttribution: Anonymous commentedThe 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.
Comment #14
rsvelko CreditAttribution: rsvelko as a volunteer commentedJust 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.
Comment #15
TR CreditAttribution: TR commentedHaven'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.
Comment #16
TR CreditAttribution: TR commentedNo further information provided. Feel free to reopen the issue if you can provide detailed steps to reproduce the issue on a clean site.