Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When this module is combined with AdvAgg CDN Javascript (advagg_js_cdn), a submodule of Advanced CSS/JS Aggregation (advagg), AJAX calls to Rules actions fail.
Steps to reproduce;
- Create a new Rule
- Add an action
- Choose an action from the select list
Expected;
Rules performs an AJAX call and the correct form is shown.
Actual result
A white page and 4 Javascript errors:
jquery.min.js:138
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
ajax.js?v=7.41:661
Uncaught TypeError: Cannot read property 'addImport' of undefinedDrupal.ajax.commands.add_css @ ajax.js?v=7.41:661Drupal.ajax.success @ ajax.js?v=7.41:428ajax.options.success @ ajax.js?v=7.41:189a.success @ jquery.form.js?v=2.52:12c.extend.handleSuccess @ jquery.min.js:142w.onreadystatechange @ jquery.min.js:141
jquery-ui.min.js:16
Uncaught TypeError: Cannot read property 'appendChild' of null(anonymous function) @ jquery-ui.min.js:16b.fn.b.ready @ jquery.min.js:26b.fn.b.init @ jquery.min.js:25$.fn.init @ drupal.js?nzasdn:26b @ jquery.min.js:22(anonymous function) @ jquery-ui.min.js:16(anonymous function) @ jquery-ui.min.js:17
jquery-ui.js:1187
Uncaught TypeError: Cannot read property 'add' of undefined
Idea
I suppose this issue belongs to Rules as it loads a non-standard jQuery version, whereas advagg is just loading Drupal's default version 1.4 resulting in a conflict.
Comments
Comment #2
geek-merlinThanks for reporting this! i really got crazy hunting a WSOD without syslog entry until i looked into the JS console and googled a random error message. This saved me testing 20+ modules for interference.
Nevdrtheless i think this is an advagg issue.
Comment #3
karuna patel CreditAttribution: karuna patel as a volunteer and at SynapseIndia Outsourcing Pvt. Ltd. commentedHi @Neograph734,
Issue might be related to
AdvAgg module or compatible jquery version.
I am using AdvAgg CDN and is working perfectly in my site, check once with your jquery update version.
In my case -
Thanks..
Comment #4
TR CreditAttribution: TR commentedActually, that's not true. Rules uses the default core jQuery, and doesn't specify anything more.
I really doubt this is a Rules issue.
Comment #5
TR CreditAttribution: TR commentedComment #6
druzero CreditAttribution: druzero commentedI am currently getting this issue.
How did you get around the problem @Neograph734?
Comment #7
Neograph734@druzero, I doubt if I ever have. But I really can't recall.