WordPress.org

Ready to get started?Download WordPress

Forums

Custom Sidebars
[resolved] Warning and Notice when WP_DEBUG is set to true (2 posts)

  1. daviedR
    Member
    Posted 1 year ago #

    Hi, this is a very nice plugin. But unfortunately I see some notice from PHP regards your code. These notices appears as I turn on the WP_DEBUG mode to true. Below I list the notice I have seen,

    Admin Settings Page

    Notice: Undefined index: defaults in ...\wp-content\plugins\custom-sidebars\customsidebars.php on line 506
    
    Notice: Undefined variable: tabdonation in ...\wp-content\plugins\custom-sidebars\views\tabs.php on line 28

    and on Front end

    Notice: Undefined index: defaults in ...\wp-content\plugins\custom-sidebars\customsidebars.php on line 506
    
    Notice: Undefined variable: sb in ...\wp-content\plugins\custom-sidebars\customsidebars.php on line 98

    This plugin works perfectly, however it would be better if these notices also disappear :)

    Thanks!

    http://wordpress.org/extend/plugins/custom-sidebars/

  2. Mike
    WPMU DEV Support Staff
    Posted 9 months ago #

    Hi @davidR

    You don't need to worry about Notices as PHP errors. When you disable debug mode they will go, this is just information that might be useful to developer but is not in any way a problem and can be safely ignored.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags