Title: Plugin causes and error message on sidebar
Last modified: August 21, 2016

---

# Plugin causes and error message on sidebar

 *  Resolved [Whitenorthstar](https://wordpress.org/support/users/whitenorthstar/)
 * (@whitenorthstar)
 * [13 years ago](https://wordpress.org/support/topic/plugin-causes-and-error-message-on-sidebar/)
 * Hi, and thank you for a great plugin! The thing is, my site (ghostofatale.com)
   is working well now, but a couple of days ago… there was this error message, 
   showing up among the widgets in my sidebar:
 * Warning: get_class() expects parameter 1 to be object, string given in
    wp-content/
   plugins/restrict-widgets/restrict-widgets.php on line 100
 * It is gone, but as you’ll understand, I’m afraid that it will pop up again and
   I don’t want to constantly check my site just in case. Would you please guide
   me to a cure?
    Thank you! David
 * [http://wordpress.org/extend/plugins/restrict-widgets/](http://wordpress.org/extend/plugins/restrict-widgets/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [dFactory](https://wordpress.org/support/users/dfactory/)
 * (@dfactory)
 * [13 years ago](https://wordpress.org/support/topic/plugin-causes-and-error-message-on-sidebar/#post-3804461)
 * Hi,
    The get_class() function doesn’t even exist in our plugin, so it’s not the
   one that caouses the issue I think. Some of the widget authord use hacks to put
   widget-like elements into widget page, which are not built using any WP coding
   practices. And thats where I’d look for a source of a problem.

Viewing 1 replies (of 1 total)

The topic ‘Plugin causes and error message on sidebar’ is closed to new replies.

 * ![](https://ps.w.org/restrict-widgets/assets/icon-256x256.png?rev=1018448)
 * [Restrict Widgets](https://wordpress.org/plugins/restrict-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-widgets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [dFactory](https://wordpress.org/support/users/dfactory/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/plugin-causes-and-error-message-on-sidebar/#post-3804461)
 * Status: resolved