WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Register sidebar widget error message? (7 posts)

  1. transformer617
    Member
    Posted 4 years ago #

    Hi,
    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/danascheider.com/wp-includes/functions.php 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?
    Thanks
    Bill

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

  3. Reuben Gunday
    Member
    Posted 4 years ago #

    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.

  4. transformer617
    Member
    Posted 4 years ago #

    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.
    Bill

  5. Reuben Gunday
    Member
    Posted 4 years ago #

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

  6. Reuben Gunday
    Member
    Posted 4 years ago #

    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');
  7. transformer617
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic