Title: Fatal error
Last modified: August 21, 2016

---

# Fatal error

 *  [jpbenassi](https://wordpress.org/support/users/jpbenassi/)
 * (@jpbenassi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-826/)
 * The plugin worked perfectly and overnight showed the following message:
 * Fatal error: Cannot use object of type WP_Error as array in /home/directup/public_html/
   site/wp-content/plugins/youtube-channel-gallery/youtube-channel-gallery.php on
   line 553
 * How can I solve the problem?
 * [http://wordpress.org/plugins/youtube-channel-gallery/](http://wordpress.org/plugins/youtube-channel-gallery/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [opuscreo](https://wordpress.org/support/users/opuscreo/)
 * (@opuscreo)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967202)
 * I have a similar problem…
 * But mine relates to attributes()
 * [http://www.vlog.thebespokeblackbook.com/culture/](http://www.vlog.thebespokeblackbook.com/culture/)
 * Fatal error: Call to a member function attributes() on a non-object in /{removed}/
   plugins/youtube-channel-gallery/youtube-channel-gallery.php on line 636
 *  [piwel](https://wordpress.org/support/users/piwel/)
 * (@piwel)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967242)
 * The problem comes from private videos in a playlist.
 * Add this line just before line 636 in the file for it to work, or unprivatise
   your videos :
    if(!$media->group->thumbnail) continue;
 * If the correction could be done in the plugin it would be great !
 * Thanks by advance.
 *  [Batigolle](https://wordpress.org/support/users/batigolle/)
 * (@batigolle)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967246)
 * Hi
    I have the same problem Fatal error: Cannot use object of type WP_Error as
   array in E:\XAMPP\htdocs\WPtesttest\wp-content\plugins\youtube-channel-gallery\
   youtube-channel-gallery.php on line 553
 * When the error occurs, it blocks the functionality of other plugins, example ‘
   Ditty News Ticker’
 * Thanks
 *  Plugin Author [PoseLab](https://wordpress.org/support/users/javitxu123/)
 * (@javitxu123)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967251)
 * Hi
 * Update to new version
 *  [kckconsult](https://wordpress.org/support/users/kckconsult/)
 * (@kckconsult)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967252)
 * We updated to the new version, but still see: Fatal error: Cannot use object 
   of type WP_Error as array in /home/kck1/public_html/aac/wp-content/plugins/youtube-
   channel-gallery/youtube-channel-gallery.php on line 557.
 *  Plugin Author [PoseLab](https://wordpress.org/support/users/javitxu123/)
 * (@javitxu123)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967253)
 * Hi kckconsult
 * could send the shortcode you are using or the values ​​of the widget?
 *  [Batigolle](https://wordpress.org/support/users/batigolle/)
 * (@batigolle)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967254)
 * Hi
    after the upgrade, I still have the message “Fatal error: Cannot use object
   of type WP_Error as array in E:\XAMPP\htdocs\calcio\wp-content\plugins\youtube-
   channel-gallery\youtube-channel-gallery.php on line 557”
 * I use the widget, what you mean by “values the widget” ?
 *  [warcryes1987](https://wordpress.org/support/users/warcryes1987/)
 * (@warcryes1987)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967255)
 * I have the same problem.
 *  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 work and sometimes doesn’t
 * What could be wrong?
 *  Plugin Author [PoseLab](https://wordpress.org/support/users/javitxu123/)
 * (@javitxu123)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967256)
 * could anyone send me the shortcode or widget values?
 *  [Batigolle](https://wordpress.org/support/users/batigolle/)
 * (@batigolle)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967257)
 * Hi PoseLab
    have an email address that I can send screen-shot of the configuration
   of the widget?
 *  [powermission123](https://wordpress.org/support/users/powermission123/)
 * (@powermission123)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967258)
 * Hello PoserLab:
 * your plugin “youtube gallery” is great but the problem is… in the menu: FEED •
   PLAYER • THUMBNAILS • LINKS… if you press any links, show this error: “404 (Page
   Not Found) Error ” i have the last version of WP and the YOUTUBEGALLERY.. thanks
   please help
 *  [vasyl_m](https://wordpress.org/support/users/vasyl_m/)
 * (@vasyl_m)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967261)
 * Hi **PoseLab**,
    There are couple users reported the same error through [WP Bug Tracker](http://wordpress.org/plugins/wp-bug-tracker/)
   plugin. This time it is in file youtube-channel-gallery.php.
 *  My recommendation is each time you are trying to get ‘body’ from $video_result,
   check if it is is_wp_error().
 *  Regards,
    Vasyl
 *  [warcryes1987](https://wordpress.org/support/users/warcryes1987/)
 * (@warcryes1987)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967262)
 * Hello Poselab,
 * I’m using your plugin with 2 youtube users.
 * The one linked to my account works ok but the other sometimes work and sometimes
   It doesn’t.
 * I’m using it in two different areas by a widget and a shortcode. None of these
   works properly.
 * I got a lot of errors in line 557
 * [Youtube_Channel_Gallery user=”webfutbolparatodos” 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″]
 * This is my shortcode,
 * I notice this problem is happening recently.
 * Thanks

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Fatal error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/youtube-channel-gallery_f11a1f.svg)
 * [Youtube Channel Gallery](https://wordpress.org/plugins/youtube-channel-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youtube-channel-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youtube-channel-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/youtube-channel-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youtube-channel-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youtube-channel-gallery/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [wp_error](https://wordpress.org/support/topic-tag/wp_error/)

 * 13 replies
 * 9 participants
 * Last reply from: [warcryes1987](https://wordpress.org/support/users/warcryes1987/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-826/#post-3967262)
 * Status: not resolved