• Fatal error: Cannot use object of type WP_Error as array in /home/dalmagro/public_html/wp-content/plugins/youtube-channel-gallery/youtube-channel-gallery.php on line 557

    I’m using the widget in homepage and the shortcode inside a page both linking to my youtube gallery.

    I had the same error linking to another user last week.

    Sometimes a user work and sometimes It doesn’t work.

    Why is that?

    This is my shortcode value: [Youtube_Channel_Gallery user=”canallapuntocom” videowidth=”580″ ratio=”16×9″ theme=”dark” color=”red” autoplay=”0″ rel=”1″ showinfo=”1″ maxitems=”18″ thumbwidth=”183″ thumbratio=”16×9″ thumbcolumns=”3″ title=”1″ cache=”0″ description=”0″ thumbnail_alignment=”top” descriptionwordsnumber=”0″]

    https://www.ads-software.com/plugins/youtube-channel-gallery/

Viewing 15 replies - 1 through 15 (of 15 total)
  • AM having the same problem, some help mods ?

    https://www.trollingwithlogic.com

    As per the Forum Welcome, please post your own topic.

    Hello frndz…

    did anyone find any solution for this…!!! I am stuck

    Mine seemed to fix itself. Is now working.

    Hi MacDonald…

    What changes you did… please let me know…

    Thread Starter warcryes1987

    (@warcryes1987)

    Poselab, can you tell me how to fix this error?

    It is always the same error.

    Fatal error: Cannot use object of type WP_Error as array in /home/dalmagro/public_html/wp-content/plugins/youtube-channel-gallery/youtube-channel-gallery.php on line 557

    Sometimes it works just fine and sometimes it doesn’t work at all.

    I have the cache activated with “24 hs” and showing 3 thumbnails with 16×9

    I had the same problem. I deactivated (unticked) cache in widget and saved. Moment later I activated cache again and it works for now, not sure about the actual error.

    maybe the issue in timeout, add this script on plugins youtube-channel-gallery.php:

    function wpdocs_extend_http_response_timeout( $timeout ) {
    	return 30; // seconds default wordpress is 5
    }
    add_filter( 'http_response_timeout', 'wpdocs_http_response_timeout' );

    this is work for me
    hope this help…

    Hi, I solved this problem talking to my hosting provider, who had locked out the IP v6, I found the problem by modifying the function “get_rss_data” at line 852 of file “youtube-channel-gallery.php” change the line “return ($ videos_result)” with “var_dum ($ videos_result),” and gave me the following message “Failed to connect to 2607: f8b0: 4002: c07 :: 76: Network is unreachable

    It was there that I found that the error was ageno the code, and this is my recommendation to you, check that your server has enabled IP v6 Connection

    I hope I can help!

    I am experiencing the issues too, anyone has found why is happening with this plugin?

    For the moment, you can edit youtube-channel-gallery.php to avoid the problem temporarily:

    $transientId = 'ytc-' .md5( $ytchag_feed . $ytchag_user . $ytchag_maxitems );
    
    $videos_result = $this->get_rss_data ( $ytchag_cache, $transientId, $ytchag_rss_url, $ytchag_cache_time );
    
    if(is_wp_error($videos_result)) return; // Adding this line 
    
    $rss = simplexml_load_string( $videos_result['body'] );

    I’m having the same problem – is this something that will be fixed in a plugin update?

    Meanwhile, I’ll add the line of code eried suggests and see how that goes.

    I think this is issue of timeout

    Fixed by doing this
    you can change it in wp-includes/class-http.php
    line number around 72

    // By increasing http_request_timeout from 15 to 180
    'timeout' => apply_filters( 'http_request_timeout', 180),

    I am having an issue when attempting to log into my dashboard! And I can not update more change any information from my account.

    Can anyone help me with this issue?

    Error Message:

    Fatal error: Cannot use object of type WP_Error as array in /home/content/p3nexnas05_data02/77/2130877/html/wp-content/plugins/spatialtree/common/api.php on line 116

    https://www.bawnmedia.com/wp-admin
    https://www.bawnmedia.com

    I am too having the same problem.
    The page loads too slow and ultimately ends up with an error.

    Fatal error: Cannot use object of type WP_Error as array in /home/rabindra/public_html/wp-content/plugins/youtube-channel-gallery/youtube-channel-gallery.php on line 556

    Mine shows line 556 though.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Fatal error: Line 557’ is closed to new replies.