Restrict Widgets
"Get Class" Error (4 posts)

  1. Christine
    Posted 2 years ago #

    I am having the same issue as a user that posted earlier (different line #):

    Warning: get_class() expects parameter 1 to be object, string given in
    wp-content/plugins/restrict-widgets/restrict-widgets.php on line 218

    ...to which you replied that the get_class() function doesn't even exist in your plugin. Well, yes, it does. And it's causing problems. Don't know if it's been added since the other user posted (3 months ago) but I've had to use another widget control plugin for now.


  2. dFactory
    Plugin Author

    Posted 2 years ago #

    You're right - we're using this PHP function.

    Can you tell us more about the issue - when it happens, in what circumstances. It's hard to find the problem without that info.

  3. Michelle
    Posted 2 years ago #

    I'm seeing this too, when looking at a site in IE8 specifically. I suspect this happens when there's an old widget/plugin active (one that doesn't use the "new" Widgets API.

  4. dFactory
    Plugin Author

    Posted 2 years ago #

    Exactly. We'll prepare an update for that, even though we believe that every widget should be coded using Widgets API you mention. Unfortunatelly, some of the plugins/widgets authors just don't care.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic


No tags yet.