• After updating to WordPress version 4.2.0 I now have the following error at the top of the screen:

    Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Page Area” sidebar. Defaulting to “sidebar-1”. Manually set the id to “sidebar-1” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Blog Area” sidebar. Defaulting to “sidebar-2”. Manually set the id to “sidebar-2” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Portfolio Area” sidebar. Defaulting to “sidebar-3”. Manually set the id to “sidebar-3” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer Top Area” sidebar. Defaulting to “sidebar-4”. Manually set the id to “sidebar-4” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer 1 Area” sidebar. Defaulting to “sidebar-5”. Manually set the id to “sidebar-5” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer 2 Area” sidebar. Defaulting to “sidebar-6”. Manually set the id to “sidebar-6” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer 3 Area” sidebar. Defaulting to “sidebar-7”. Manually set the id to “sidebar-7” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer 4 Area” sidebar. Defaulting to “sidebar-8”. Manually set the id to “sidebar-8” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer 5 Area” sidebar. Defaulting to “sidebar-9”. Manually set the id to “sidebar-9” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer 6 Area” sidebar. Defaulting to “sidebar-10”. Manually set the id to “sidebar-10” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer Bottom Area” sidebar. Defaulting to “sidebar-11”. Manually set the id to “sidebar-11” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Header Area” sidebar. Defaulting to “sidebar-12”. Manually set the id to “sidebar-12” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Sidebar” sidebar. Defaulting to “sidebar-13”. Manually set the id to “sidebar-13” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/chattrax/public_html/wp-includes/functions.php on line 3560 Warning: Cannot modify header information – headers already sent by (output started at /home/chattrax/public_html/wp-includes/functions.php:3560) in /home/chattrax/public_html/wp-includes/pluggable.php on line 1196 Warning: Cannot modify header information – headers already sent by (output started at /home/chattrax/public_html/wp-includes/functions.php:3560) in /home/chattrax/public_html/wp-includes/pluggable.php on line 1196

    https://www.telitrax.com/

    How can I resolve this?

Viewing 15 replies - 1 through 15 (of 21 total)
  • Hello,
    There is nothing wrong with the WordPress Core 4.2 update. You are getting this Notice, as the new update can track doing_it_wrong for sidebar register. Please check your theme code ( register_sidebar() ) function.
    U can switch to default theme too.. that will also resolve Your issue.

    You must ad the “id” to the functions.php for sidebars, f.e.:

    ‘name’ => ‘Footer 4’,
    ‘id’ => ‘Footer 4’, // <- missing part!

    Hello All,

    I just updated and I have the same issue. Can anyone help with a fix to this issue. I use a Real Homes Child theme of the original Real Homes theme on myurbanplaces.com

    Thanks.

    Update from elegant themes avail for the fix.

    Search for register_sidebar in functions.php and see if it has an id as madloki said.

    From Function Reference/register sidebar

    If you do not set the id argument value, you will get E_USER_NOTICE messages in debug mode, starting with version 4.2.

    So if you did not have id in your functions.php while using register_sidebar() function, and you updated to wp 4.2, you’ll get this notice (in debug mode).

    Just add a counter $i, and when going through your sidebars, increase i by 1 ($i++) and add

    'id' => 'sidebar-'.$i,

    in your register_sidebar() function.

    Thank you guys. I edited the functions.php file in the Theme’s folder and this solved it.

    @dingo_bastard I am facing the same issue but don’t know how to make a counter $i. Would you please give me the instructions? Thank you in advance for your help!

    hi i have some errors:

    Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Displayed Everywhere” sidebar. Defaulting to “sidebar-1”. Manually set the id to “sidebar-1” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home2/ikexpert/public_html/3dstudio/wp-includes/functions.php on line 3560

    Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Sidebar Blog” sidebar. Defaulting to “sidebar-2”. Manually set the id to “sidebar-2” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home2/ikexpert/public_html/3dstudio/wp-includes/functions.php on line 3560

    Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Sidebar Pages” sidebar. Defaulting to “sidebar-3”. Manually set the id to “sidebar-3” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home2/ikexpert/public_html/3dstudio/wp-includes/functions.php on line 3560

    Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Footer – column1” sidebar. Defaulting to “sidebar-4”. Manually set the id to “sidebar-4” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home2/ikexpert/public_html/3dstudio/wp-includes/functions.php on line 3560

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home2/ikexpert/public_html/3dstudio/wp-includes/functions.php:3560) in /home2/ikexpert/public_html/3dstudio/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 32

    But i dont have register_sidebar() function in functions.php
    How do I fix this?

    Maybe one of your plug-ins tries to register one? Did you do a full search in all the files?

    The same thing has happened.
    But the error to me is a little different.

    Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the ” ” sidebar. Defaulting to ” “. Manually set the id to ” ” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/—/—/public_html/wp/wp-includes/functions.php on line 3560

    ” ” nothing is written.

    Perplexed.

    madloki said:

    ‘id’ => ‘Footer 4’, // <- missing part!

    Must be all in lowercase, with no spaces (default is a numeric auto-incremented ID).

    codex link

    Hi,

    I’ve got the same issue.

    Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Copyright ? Your Company” sidebar. Defaulting to “sidebar-13”. Manually set the id to “sidebar-13” to silence this notice and keep existing sidebar content. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /vdir/www.eskills.ch/var/www/vhosts/www.eskills.ch/web/wp-includes/functions.php on line 3560

    I opened functions.php but i don’t know what i must add :

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    // QODE SIDEBARS
    
    if ( function_exists('register_sidebar') ) {
        register_sidebar(array(
            'name' => 'Sidebar',
    				'id' => 'sidebar-13',
            'description' => 'Default Sidebar',
            'before_widget' => '<div id="%1$s" class="widget %2$s posts_holder">',
            'after_widget' => '</div>',
            'before_title' => '<h5>',
            'after_title' => '</h5>'
        ));
    		register_sidebar(array(
    				'name' => 'Sidebar Page',
    				'id' => 'sidebar_page',
            'description' => 'Sidebar for Page',
            'before_widget' => '<div id="%1$s" class="widget %2$s posts_holder">',
            'after_widget' => '</div>',
            'before_title' => '<h5>',
            'after_title' => '</h5>'
        ));
    	register_sidebar(array(
    				'name' => 'Sidebar Portfolio',
    				'id' => 'sidebar_portfolio',
            'description' => 'Sidebar for Portfolio',
            'before_widget' => '<div id="%1$s" class="widget %2$s posts_holder">',
            'after_widget' => '</div>',
            'before_title' => '<h5>',
            'after_title' => '</h5>'
        ));
    		register_sidebar(array(
            'name' => 'Header Left',
    				'id' => 'header_left',
    				'description' => 'Header Left',
            'before_widget' => '<div>',
            'after_widget' => '</div>',
            'before_title' => '',
            'after_title' => ''
        ));
    		register_sidebar(array(
            'name' => 'Header Right',
    				'id' => 'header_right',
    				'description' => 'Header Right',
            'before_widget' => '<div>',
            'after_widget' => '</div>',
            'before_title' => '',
            'after_title' => ''
        ));
    		register_sidebar(array(
            'name' => 'WooCommerce Drop Down Cart',
    				'id' => 'woocommerce_dropdown_cart',
    				'description' => 'Use this area only for woocommerce dropdown cart widget',
            'before_widget' => '<div class="shopping_cart_outer"><div class="shopping_cart_inner">',
            'after_widget' => '</div></div>',
            'before_title' => '',
            'after_title' => ''
        ));
    		register_sidebar(array(
    				'name' => 'Side Area',
    				'id' => 'sidearea',
    				'description' => 'Side Area',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h5>',
            'after_title' => '</h5>'
        ));
    		register_sidebar(array(
    				'name' => 'Footer Column 1',
    				'id' => 'footer_column_1',
            'description' => 'Footer Column 1',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h6>',
            'after_title' => '</h6>'
        ));
    		register_sidebar(array(
    				'name' => 'Footer Column 2',
    				'id' => 'footer_column_2',
            'description' => 'Footer Column 2',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h6>',
            'after_title' => '</h6>'
        ));
    		register_sidebar(array(
    				'name' => 'Footer column 3',
    				'id' => 'footer_column_3',
            'description' => 'Footer Column 3',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h6>',
            'after_title' => '</h6>'
        ));
    		register_sidebar(array(
    				'name' => 'Footer column 4',
    				'id' => 'footer_column_4',
            'description' => 'Footer Column 4',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h6>',
            'after_title' => '</h6>'
        ));
    		register_sidebar(array(
            'name' => 'Footer text',
    				'id' => 'footer_text',
            'description' => 'Footer Text',
            'before_widget' => '',
            'after_widget' => '',
            'before_title' => '',
            'after_title' => ''
        ));
    }

    Thanks for your help.
    SOphie

    sofiette,

    The id you added looks correct. Things you might check.. If your editing a parent theme make sure it’s not being overridden in a child theme. I’m unfamiliar with the isUserMadeSidebar function, what theme are you using?

    Anyway that function might be for other sidebars registered somewhere else in the theme. I have no idea on that though.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Error after updating to 4.2’ is closed to new replies.