advagg PHP E' Notice report:

Notice: Undefined index: host in advagg_check_missing_handler() (line 356 of advagg.install).
CommentFileSizeAuthor
#2 advagg-1188806-2.patch937 bytesmikeytown2

Comments

Peter Bowey’s picture

Title: PHP E' Notice: Undefined index: host in advagg_check_missing_handler() in advagg.install » PHP E' Notice: Undefined index: host in advagg_check_missing_handler() in advagg.install *FIX*

*fix*

      $url_cdn_css = advagg_build_uri($css_path . $filepath . '.css');
      $parts_css = @parse_url($url_cdn_css);
      // Do not test CDN CSS if the hosts are the same.
-      if (strcmp($parts_css['host'], $_SERVER['HTTP_HOST']) == 0) {
+      if (isset($parts_css['host']) && strcmp($parts_css['host'], $_SERVER['HTTP_HOST']) == 0) {
        $parts_css = FALSE;
      }



(+) Also, the latest 'patch' via http://drupal.org/files/issues/advagg-1185756-1.patch
has created the original issue of 'missing schema' for CDN assets!

So I am back to my old method / patch!! See http://drupal.org/node/1172012

mikeytown2’s picture

Status: Active » Fixed
StatusFileSize
new937 bytes

Thanks! Committed this patch.

Peter Bowey’s picture

+1 Many thanks!

Status: Fixed » Closed (fixed)

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