OK, can you open up autoptimizeExtra.php and on line 488-490 replace
if ( $url_parsed['host'] !== $site_host && empty( $cdn_url ) ) {
return false;
} elseif ( ! empty( $cdn_url ) && strpos( $url, $cdn_url ) === false && $url_parsed['host'] !== $site_host ) {
with
if ( array_key_exists( 'host', $url_parsed ) && $url_parsed['host'] !== $site_host && empty( $cdn_url ) ) {
return false;
} elseif ( ! empty( $cdn_url ) && strpos( $url, $cdn_url ) === false && array_key_exists( 'host', $url_parsed ) && $url_parsed['host'] !== $site_host ) {
and check if that makes those annoying PHP notices go away? 🙂
frank
any news, have you been able to make that small change @marcoevich? 🙂
Yes sorry for the delay Frank. I’ve just looked at the debug log and there have been no more messages regarding to Autoptimize so it looks like this piece of code worked like a charm 🙂
thanks for the confirmation Marco 🙂
feel free to leave a review of the plugin and support here! 🙂