WordPress.org

Support

Support » How-To and Troubleshooting » Getting these deprecated notices after upgrade

Getting these deprecated notices after upgrade

  • 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

Viewing 12 replies - 1 through 12 (of 12 total)
  • esmi

    @esmi

    Forum Moderator

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

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

    plichtenberg,

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

    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>',
    ));
    }

    plichtenberg,

    Try deactivating your plugins and see if the issue persists.

    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

    plichtenberg,

    Have you tried Esmi’s solution yet?

    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

    mrmist

    @mrmist

    Forum Janitor

    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.

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

    salem80

    @salem80

    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

    Hey

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

    Suggestions?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Getting these deprecated notices after upgrade’ is closed to new replies.