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 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.
Comment | File | Size | Author |
---|---|---|---|
#8 | advagg-check_empty_assets-2838940-6.patch | 666 bytes | Denis Danielyan |
| |||
#2 | advagg-check_empty_assets-2838940-2.patch | 512 bytes | Archual |
Comments
Comment #2
Archual CreditAttribution: Archual at Cold Brain commentedI created patch, which check assets array for empty.
Comment #3
NickDickinsonWildehuh that's an odd and wrong thing. Safe work-around though, so applying, thanks. (and sorry for the delay)
Comment #6
Denis Danielyan CreditAttribution: Denis Danielyan commentedWe 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 :-(.
Comment #7
Denis Danielyan CreditAttribution: Denis Danielyan commentedComment #8
Denis Danielyan CreditAttribution: Denis Danielyan commentedComment #9
mikeytown2 CreditAttribution: mikeytown2 commented@Denis Danielyan
In the future open up a new issue
Comment #12
mikeytown2 CreditAttribution: mikeytown2 commented#8 has been committed