The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Restrict Widgets
[resolved] Plugin causes and error message on sidebar (2 posts)

  1. Whitenorthstar
    Posted 3 years ago #

    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


  2. dFactory
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Restrict Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic