Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #438078

    Hello!
    So after I upgraded to WordPress 4.2.2, I received a bunch of errors that looked similar to this:

    Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Displayed Everywhere” 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 /home2/jakereva/public_html/wp-includes/functions.php on line 3560

    I fixed these by going into the wp-content/themes/enfold/includes/admin/register-widget-area.php file and adding an id manually like the error message says to. I got them all to go away but one:

    Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the “Social Media Links” 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 /home2/jakereva/public_html/wp-includes/functions.php on line 3560

    ‘Social Media Links’ is the name of a custom widget area I had created… any time I create a custom widget area, this message returns… can’t quite figure out WHERE I need to add the ID at to get this last error to go away. I’d rather not turn off wp_debug, as that’s not really fixing the issue and I need it on for development.

    Thanks a lot for the help!!

    #438730

    Hey Jakerevans!

    I answered in your other thread, closing this one.

    Cheers!
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Error when creating Custom Widget’ is closed to new replies.