Can’t locate the source of this problem, but suddenly rules autocomplete doesn’t work anymore.
Here: Chrome error log:
Uncaught TypeError: Cannot set property '_renderItem' of undefined
rules.autocomplete.js:108Drupal.rules.autocomplete
rules.autocomplete.js:108Drupal.behaviors.rules_autocomplete.attach
rules.autocomplete.js:12b.extend.each
jquery.js:34b.fn.b.each
jquery.js:27$.fn.once
jquery.once.js:55Drupal.behaviors.rules_autocomplete.attach
rules.autocomplete.js:10Drupal.attachBehaviors
drupal.js:55b.extend.each
jquery.js:33Drupal.attachBehaviors
drupal.js:53Drupal.theme.placeholder
drupal.js:391b.extend.ready
jquery.js:30uj
query.js:38
Comment | File | Size | Author |
---|---|---|---|
#14 | rules-1410978-14.patch | 1.04 KB | pjcdawkins |
#6 | rules-1410978-6.patch | 783 bytes | pjcdawkins |
Comments
Comment #1
ErnestoJaboneta CreditAttribution: ErnestoJaboneta commentedI'm having the same issue.
Comment #2
mlsamuelson CreditAttribution: mlsamuelson commentedThis one's affected me as well.
Everything was fine while I set up a number of rules for my site, then returning to the Rules admin UI a few weeks later, attempting to update a data compare condition, I get the error noted above, and the data value's data selector doesn't work. Additionally, I cannot open any collapsed fieldsets (probably because javascript has errored out).
After futzing around with trying to debug this and having no luck, I started disabling modules.
Turing off Apache Solr Autocomplete gets me my Rules JS back. Not sure as to the ultimate cause yet.
Comment #3
Sk1Zy CreditAttribution: Sk1Zy commentedHad the same issue, disableing "Search Autocomplete" module fixed it for me.
Comment #4
designcontext CreditAttribution: designcontext commentedSame here! Search autocompete - 10 grey hairs more...
Comment #5
seanrSame here. Luckily I found this post on the first try. It'd be nice to get to the bottom of this, but alas I'm not nearly proficient enough with JavaScript to chase this one down. :-/
Comment #6
pjcdawkins CreditAttribution: pjcdawkins commentedIt's probably to do with different versions of jQuery UI. Try this, but this might only be for users with jQuery Update.
Comment #8
seanr#6: rules-1410978-6.patch queued for re-testing.
Comment #10
seanrActually, that passed, not sure why the bot posted that incorrectly. See here for background on the testbot weirdness:
http://drupal.org/node/1501962#comment-7439564
Comment #11
pjcdawkins CreditAttribution: pjcdawkins commentedThere probably isn't a test relating to this JS file anyway.
My patch in #6 solves the problem for me... but I think it's specifically to do with sites that are running later versions of jQuery UI (perhaps >=1.10).
Comment #12
mattsmith3 CreditAttribution: mattsmith3 commentedI can confirm this issue- which now happens with the latest dev branch of jquery_update. Patch did not work for me. I got a new error:
Uncaught TypeError: Cannot set property 'close' of undefined
Drupal.rules.autocomplete
(anonymous function)
e.extend.each jquery.min.js:2
e.fn.e.each jquery.min.js:2
$.fn.once jquery.once.js:55
Drupal.behaviors.rules_autocomplete.attach
(anonymous function) drupal.js:76
e.extend.each jquery.min.js:2
Drupal.attachBehaviors drupal.js:74
Drupal.ajax.commands.insert ajax.js:542
Drupal.ajax.success ajax.js:400
ajax.options.success ajax.js:164
c.success jquery.form.min.js:11
n jquery.min.js:2
o.fireWith jquery.min.js:2
w jquery.min.js:4
d jquery.min.js:4
Comment #13
mattsmith3 CreditAttribution: mattsmith3 commentedjquery_update 7.x-2.3 resolves the issue for now.
Comment #14
pjcdawkins CreditAttribution: pjcdawkins commented@mattsmith3 the attached patch fixes the further problem you mention in #12. Again it's just to work with later version(s) of jQuery UI - I think 1.10 and later.
Comment #15
fagoSo this is related: #1810656: Rules UI does not work with JQuery 1.7+
Comment #16
pjcdawkins CreditAttribution: pjcdawkins commentedThanks @fago. I think this is really a duplicate of that thread.
Comment #16.0
pjcdawkins CreditAttribution: pjcdawkins commentedlog attached