Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Old Version fixes and change logs (http://forum.bytesforall.com/forumdisplay.php?f=37)
-   -   PATCH 3723-02: Notice: register_sidebar was called incorrectly. (http://forum.bytesforall.com/showthread.php?t=23185)

juggledad May 11, 2015 06:41 PM

PATCH 3723-02: Notice: register_sidebar was called incorrectly.
 
1 Attachment(s)
When updating to Atahualpa 3.7.23 you may see the following on screen
HTML Code:

Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the "Left Sidebar" 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.)....
followed by more Notices.

For the longest time sidebars didn't need to use an 'id' when they were being created. As of WordPress 4.2, they have made it mandatory - everything will still work but they will issue these messages. This will only display if you have 'WP_DEBUG' set to 'true'.

You can correct it one of two ways (1) edit your wp-config.php and changing the line
HTML Code:

define('WP_DEBUG', true);
and changing it to
HTML Code:

define('WP_DEBUG', false);
or (2) unzip the attached file and use it to replace the existing replace the existing 'wp-content/themes/atahualpa/functions.php' file.

This will be included in a future release.


All times are GMT -6. The time now is 09:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.