Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #433909

    I’m just setting up a new WordPress site and have installed WordPress 4.2 and the Enfold 3.1.3 theme.

    I’m getting all these errors at the top of each page like this:

    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 /home/sydneyf1/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 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 /home/sydneyf1/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 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 /home/sydneyf1/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 – 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 /home/sydneyf1/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 – column2” 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/sydneyf1/public_html/wp-includes/functions.php on line 3560

    Not sure why these are appearing or how to get rid of them?

    #433985

    Yes Im getting the same errors in the same circumstances – no obvious way of getting intot he admin so I guess the theme needs an urgent fix followed by reinstalling by FTP.

    Presumably that will kill the custom code though?

    #434021

    Yes – getting the same error after updating :-(

    #434102

    Hi!

    I am not getting any issues on my WP 4.2 Enfold 3.1.3 installation. Can you please try re-updating the theme via FTP – kriesi.at/documentation/enfold/updating-your-theme-files/
    If you have modified theme files, they will be overwritten, so please make sure to have a backup. Changes you made in Enfold theme options and your content are safe.

    Regards,
    Yigit

    #434320

    Yes, I am getting the same error I’m not keen to re-download theme and rebuild, suggestion on other sites is below, though I dont think my site is in debug mode

    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.

    #434332

    Just figure out that I am in debug mode

    check wp-config.php and look at

    define(‘WP_DEBUG’, true);

    Set it to false and the problem with be hidden untill someone clever fixes

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Getting Notice errors register_sidebar was called incorrectly’ is closed to new replies.