Title: Getting error when displaying content inside widget
Last modified: March 29, 2018

---

# Getting error when displaying content inside widget

 *  Resolved [CodingBee](https://wordpress.org/support/users/codingbee/)
 * (@codingbee)
 * [8 years ago](https://wordpress.org/support/topic/getting-error-when-displaying-content-inside-widget/)
 * Hello,
 * I’m getting the following error message when using the ‘Post Content Widget’:
 * Warning: html_entity_decode() expects parameter 1 to be string, array given in/
   home/codingbe/public_html/wp-content/plugins/post-content-shortcodes/classes/
   class-post-content-shortcodes.php on line 396
 * The content still appears after the error message though. Everything was working
   fine last week. So I suspect I got the error message when I did the upgrade to
   v1.0.1.
 * By the way, I’m a big fan of this plugin!
 * Thanks,
    Sher
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgetting-error-when-displaying-content-inside-widget%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Curtiss Grymala](https://wordpress.org/support/users/cgrymala/)
 * (@cgrymala)
 * [8 years ago](https://wordpress.org/support/topic/getting-error-when-displaying-content-inside-widget/#post-10127901)
 * Well, that’s no good.
 * I’ve just pushed a small update to [the GitHub repo for this plugin;](https://github.com/cgrymala/post-content-shortcodes)
   if you are able to do so, would you mind testing that new version on your site
   to see if it fixes the issue? If it does, I’ll go ahead and push it out for release.
   Thanks.
 *  Thread Starter [CodingBee](https://wordpress.org/support/users/codingbee/)
 * (@codingbee)
 * [8 years ago](https://wordpress.org/support/topic/getting-error-when-displaying-content-inside-widget/#post-10144796)
 * Hi Curtiss,
 * Many apologies, just seeing this now. However it looks like the latest update
   fixed this bug. Many thanks!
 * Kind regards,
    Sher Chowdhury

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

The topic ‘Getting error when displaying content inside widget’ is closed to new
replies.

 * ![](https://ps.w.org/post-content-shortcodes/assets/icon-256x256.png?rev=979726)
 * [Post Content Shortcodes](https://wordpress.org/plugins/post-content-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-content-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-content-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/post-content-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-content-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-content-shortcodes/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [CodingBee](https://wordpress.org/support/users/codingbee/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/getting-error-when-displaying-content-inside-widget/#post-10144796)
 * Status: resolved