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;

  1. Create a new Rule
  2. Add an action
  3. 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

Neograph734 created an issue. See original summary.

geek-merlin’s picture

Thanks 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.

karuna patel’s picture

Hi @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 -


default jquery version is 1.8
alternate jquery version is 1.8
and jQuery and jQuery UI CDN is selected to jquery.

Thanks..

TR’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

I suppose this issue belongs to Rules as it loads a non-standard jQuery version

Actually, that's not true. Rules uses the default core jQuery, and doesn't specify anything more.

I really doubt this is a Rules issue.

TR’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
druzero’s picture

I am currently getting this issue.

How did you get around the problem @Neograph734?

Neograph734’s picture

@druzero, I doubt if I ever have. But I really can't recall.