When using Drupal.ajax commands or quickedit send request to server, server responses with error 500.
After investigation code, I found that AdvAgg throw new error when render js_assets array, which contain one element with index "-1" and empty array value.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Archual created an issue. See original summary.

Archual’s picture

I created patch, which check assets array for empty.

NickDickinsonWilde’s picture

Status: Active » Fixed

huh that's an odd and wrong thing. Safe work-around though, so applying, thanks. (and sorry for the delay)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Denis Danielyan’s picture

We experienced a similar issue. The array does not only contain one malformed entry but a malformed and a valid entry. This is why we changed the code slightly.

I have no idea where this comes from. The fix is only symptom-fighting but I have no in-depth knowledge of the module :-(.

Denis Danielyan’s picture

Denis Danielyan’s picture

mikeytown2’s picture

Status: Closed (fixed) » Needs review

@Denis Danielyan
In the future open up a new issue

The last submitted patch, 2: advagg-check_empty_assets-2838940-2.patch, failed testing.

mikeytown2’s picture

Status: Needs review » Fixed

#8 has been committed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.