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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

adrien.felipe created an issue. See original summary.

mikeytown2’s picture

Status: Needs review » Fixed

Looks good! Committed.

Status: Fixed » Closed (fixed)

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