WordPress.org

Ready to get started?Download WordPress

Forums

Getting these deprecated notices after upgrade (13 posts)

  1. plichtenberg
    Member
    Posted 4 years ago #

    After upgrade i'm getting these errors:

    Notice: automatic_feed_links is deprecated since version 3.0! Use add_theme_support( 'automatic-feed-links' ) instead.
    Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead.
    Notice: register_widget_control is deprecated since version 2.8! Use wp_register_widget_control()
    It tells me the line of code but what am i suppose to do with this?
    Any insight is appreciated.
    Paul

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    It sounds like your theme needs updating. You can confirm this by switching temporarily to the TwentyTen theme. The error messages should disappear.

  3. plichtenberg
    Member
    Posted 4 years ago #

    I have a custom theme. can i change the code somehow?

  4. doc4
    Member
    Posted 4 years ago #

    plichtenberg,

    Check your functions.php page and look for the register bits and print the here for us to see.

  5. plichtenberg
    Member
    Posted 4 years ago #

    I could only find this snippet that had register in it. Is this what you meant?

    automatic_feed_links();
    
    if ( function_exists('register_sidebar') ) {
    register_sidebar(array(
    'before_widget' => '<li id="%1$s" class="widget %2$s">',
    'after_widget' => '',
    'before_title' => '<h2 class="widgettitle">',
    'after_title' => '</h2>',
    ));
    }
  6. doc4
    Member
    Posted 4 years ago #

    plichtenberg,

    Try deactivating your plugins and see if the issue persists.

  7. plichtenberg
    Member
    Posted 4 years ago #

    I did try that because most of my plug ins blew up when i upgraded. They are deactived and i'm down to these 3 errors.
    thanks

  8. doc4
    Member
    Posted 3 years ago #

    plichtenberg,

    Have you tried Esmi's solution yet?

  9. gazouteast
    Member
    Posted 3 years ago #

    It is Akismet that is causing this - I'm getting it too on WP3.0.1 with twentyten v1.1 - Akismet is the only active plugin

  10. mrmist
    Forum Janitor
    Posted 3 years ago #

    In the OPs case, as you can see ..

    Notice: automatic_feed_links is deprecated since version 3.0! Use add_theme_support( 'automatic-feed-links' ) instead.

    automatic_feed_links();

    Needs to be replaced as it says.

    Alternatively if you don't want to be bothered by this stuff you could just set wp_debug to disabled in your wp-config.php. If you're running with debug enabled you will see the notices and generally you'd be expected to know what to do about them, as it's a feature intended for development.

  11. gazouteast
    Member
    Posted 3 years ago #

    @plitchenberg - OK in that case download your theme to your PC, unzip it, and use windows explorer to search for automatic_feed_links inside files

    That's the quickest way to locate where in the theme the deprecated code is sitting.

    Then use your cPanel file editor to do the replacements, using your windows explorer search results to tell you which files need changed.

  12. salem80
    Member
    Posted 3 years ago #

    Just add comment to the function do disable it ...thats what i do

    /*
    automatic_feed_links();
    
     if ( function_exists('register_sidebar') ) {
    	register_sidebar(array(
    		'before_widget' => '<li id="%1$s" class="widget %2$s">',
    		'after_widget' => '</li>',
    		'before_title' => '<h2 class="widgettitle">',
    		'after_title' => '</h2>',
    	));
    } */

    in the file functions.php on your theme directory

  13. Calin
    Member
    Posted 3 years ago #

    Hey

    I have the same problem. Unfortunately I can't find in my functions.php any automatic_feed_links

    Suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.