Viewing 2 replies - 1 through 2 (of 2 total)
  • crestedbuttecomputers

    (@crestedbuttecomputers)

    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

    https://yogawrap.com

    Thread Starter programmin

    (@programmin)

    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Breaks site with 500 error sometimes’ is closed to new replies.