Support » Fixing WordPress » Register sidebar widget error message?

  • Resolved transformer617


    Running 3.01 with the 2010 theme, I received the following error message:

    Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /home/mozartw/ on line 3237

    I assumed if I’m using the latest version of WP there wouldn’t be any deprecated elements in functions.php and, in face, I don’t find that register_sidebar_widget call in the file.

    Can someone offer help or a suggestion?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator James Huff


    Volunteer Moderator 🚀

    Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    Its not the theme which is throwing the error. Its probably one of the plugins. Disable each plugin by plugin and check if the error still exists.

    Thanks for this. FYI, I was running only one plugin, Akismet. When I deactivated it, the problem went away, so that was the culprit!!

    The confusing part is that I’ve had that running for the week or so the site’s been up, but the issue only surfaced yesterday. I’d sure like to continue running akismet; any ideas about what to do? I’m running 3.01 on a few other sites — not with this theme, though, and haven’t had any problems.

    update your Akismet plugin. I guess the latest version is 2.3.0.

    Oh! sorry, the latest plugin still has that problem…you can edit the plugin to remove those errors

    open askismet.php(located in plugins/askimet dir)

    go to lines 1147 & 1148
    replace this two lines

    register_sidebar_widget('Akismet', 'widget_akismet', null, 'akismet');
    	register_widget_control('Akismet', 'widget_akismet_control', null, 75, 'akismet');

    with this

    wp_register_sidebar_widget('Akismet-fix-1','Akismet', 'widget_akismet', null, 'akismet');
    	wp_register_widget_control('Akismet-fix-2','Akismet', 'widget_akismet_control', null, 75, 'akismet');

    Thanks Reuben. That does it! I appreciate your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Register sidebar widget error message?’ is closed to new replies.