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.
Full Reports: (with PHP 5.3x E' Notice enabled):
Notice: Undefined index: data in css_emimage_advagg_files_table() (line 298 of /var/www/virtual/peterbowey.com.au/sites/all/modules/css_emimage/css_emimage.module).
Fix and Patch:
// Load the CSS file.
$images = array();
$css = advagg_build_css_bundle(array($row['filename']));
- $data = unserialize($row['data']);
+ if (!empty($row['data'])) {
+ $data = unserialize($row['data']);
+ }
// See if CSS file contains an image.
......
......
else {
$save = TRUE;
}
- if (!is_array($data['css_emimage'])) {
+ if (!empty($data['css_emimage']) && !is_array($data['css_emimage'])) {
unset($data['css_emimage']);
}
$data['css_emimage'][$filename] = $checksum;
}
if ($save) {
advagg_set_file_data($row['filename_md5'], $data);
Problem resolved!
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedmoving this to here
#1078060: CSS Embedded Images - Add in support for advagg's hooks