Ready to get started?Download WordPress


Restrict Widgets
"Get Class" Error (4 posts)

  1. crhodes
    Posted 11 months 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 11 months 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 9 months 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 9 months 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.


You must log in to post.

About this Plugin

About this Topic


No tags yet.