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

mikeytown2’s picture

Status: Active » Closed (duplicate)