I’m getting this same error – breaks my entire page – disabled the plugin until there is an update:
Fatal error: Cannot use object of type WP_Error as array in /home3/lovione/public_html/wp-content/plugins/youtube-channel-gallery/youtube-channel-gallery.php on line 952
http://yogawrap.com
In case any Youtube-channel-gallery developers are reading this, you should be able to see the problem we’re all getting intermittently by adding a line to wp-includes/http-functions.php:
function wp_remote_get($url, $args = array()) {
return new WP_Error('ouch');
$http = _wp_http_get_object();
return $http->get( $url, $args );
}
and to wp-includes/http.php
function wp_remote_get($url, $args = array()) {
return new WP_Error('ouch');
$http = _wp_http_get_object();
return $http->get( $url, $args );
}
to simulate network not working.
By the way it seems to be an odd design decision that you must put your api key in the shortcode!? Why not make it a global option for the plugin and all Youtube displays? Also, whenever the plugin is deactivated everyone would see the shortcode api key. Will this also be fixed in a new release soon?