Title: Shortcode error &gt; Object stdClass to Array error
Last modified: October 11, 2017

---

# Shortcode error > Object stdClass to Array error

 *  Resolved [dj.cowan](https://wordpress.org/support/users/djcowan/)
 * (@djcowan)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/shortcode-error-object-stdclass-to-array-error/)
 * We encountered a Fatal error on three websites.
    It appears that the Facebook
   data is now being sent as an object rather than as an array. We have corrected
   the issue in our limited scenario by performing a find/replace for the bracket
   notation string ‘[0]->’ to ‘->’ filepath: /facebook-feed/facebook-feed-shortcode.
   php This hack has corrected the issue for us – however we only use the one identical
   shortcode in all instances.

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

 *  [TRILOS new media](https://wordpress.org/support/users/trilos/)
 * (@trilos)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/shortcode-error-object-stdclass-to-array-error/#post-9577596)
 * Is this corresponding to the error_log entry
 * `Fatal error: Cannot use object of type stdClass as array in (...)/wp-content/
   plugins/facebook-feed/facebook-feed-shortcode.php on line 194`
 * and will the author correct this?
 *  Thread Starter [dj.cowan](https://wordpress.org/support/users/djcowan/)
 * (@djcowan)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/shortcode-error-object-stdclass-to-array-error/#post-9580315)
 * Does this correspond to the error in /facebook-feed-shortcode.php on line 194?
   –
   Yes, this is the same error we logged. Will the author correct the error? – We
   hope so.
 * The error will either be fixed or we will source an alternative at some point.
 *  [abhishek](https://wordpress.org/support/users/abhipathak/)
 * (@abhipathak)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/shortcode-error-object-stdclass-to-array-error/#post-9580352)
 * Hi [@trilos](https://wordpress.org/support/users/trilos/),@djcowan
 * Sorry for the inconvenience. we just release a new version 1.4.8.2 with the fixed
   Please update your plugin and check.
 * Let me know did it work.
 * Thanks
    A
 *  [TRILOS new media](https://wordpress.org/support/users/trilos/)
 * (@trilos)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/shortcode-error-object-stdclass-to-array-error/#post-9580384)
 * Well done, plugins runs after update.
 *  [abhishek](https://wordpress.org/support/users/abhipathak/)
 * (@abhipathak)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/shortcode-error-object-stdclass-to-array-error/#post-9580393)
 * Hi [@trilos](https://wordpress.org/support/users/trilos/)
 * Glad to know that it works again for you.
 * If you like our plugin and support can i ask you for a super review here [https://wordpress.org/support/plugin/facebook-feed/reviews/?filter=5](https://wordpress.org/support/plugin/facebook-feed/reviews/?filter=5)
 * Please mark this thread as resolved.
 * Thanks
    A
 *  Thread Starter [dj.cowan](https://wordpress.org/support/users/djcowan/)
 * (@djcowan)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/shortcode-error-object-stdclass-to-array-error/#post-9580401)
 * Issue resolved

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

The topic ‘Shortcode error > Object stdClass to Array error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook-feed.svg)
 * [FaceBook Feed](https://wordpress.org/plugins/facebook-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-feed/reviews/)

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [dj.cowan](https://wordpress.org/support/users/djcowan/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/shortcode-error-object-stdclass-to-array-error/#post-9580401)
 * Status: resolved