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 directly calling advagg_get_js_aggregate_contents() function, to "manually" agregate and minify, an error will be thrown:
Notice: Undefined index: advagg:file:8uaylaTWkj2AXhs7EC7_cD97qE3qpw97gOzQuB1RdyQ in advagg_get_js_aggregate_contents() (line 874 of ../advagg/advagg.missing.inc).
By just adding an isset() check will prevent this unfortunate notice.
isset($info_on_files[$cid]['content_hash'])
Attached patch adds this check.
Comment | File | Size | Author |
---|---|---|---|
advagg_check_info_on_files--1.patch | 747 bytes | adrien.felipe | |
Comments
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedLooks good! Committed.