• Resolved croshad

    (@croshad)


    I’m getting a notice : “The called constructor method for Debug_Bar_Panel::Debug_Bar_Panel in Debug_Bar_Panel is deprecated since version 0.8.3! Use __construct() instead. (functions.php line 3893)” in the latest version (0.9).

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Konstantin Obenland

    (@obenland)

    Yes, the deprecation notice was added in that release.
    Do you use any other debug bar plugins on your site, and if so would you mind sharing which ones?

    Thanks

    Thread Starter croshad

    (@croshad)

    Ok i found the culprit. It’s the “Log Viewer” plugin from the Automatic’s Developer package. There were no notices in 0.8.4 though. Thanks for the reply!

    Plugin Author Konstantin Obenland

    (@obenland)

    Thanks for the report! I notified the author about it.

    Plugin Author Konstantin Obenland

    (@obenland)

    Thanks for the report! I notified the author about it.

    Another plug-in named “Improved Variable Product Attributes” (ivpawoo in short) has same issue, FYI.

    You have this topic showing as resolved?
    However I’ve the latest version of the “Log Viewer” plugin installed and I have to disable it to get rid of the same message as originally given except the line number has increased by 1?

    Notice: The called constructor method for Debug_Bar_Panel::Debug_Bar_Panel in Debug_Bar_Panel is deprecated since version 0.8.3! Use __construct() instead. in (functions.php on line 3894)

    I ended up doing this:

    
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    

    This allows WP_DEBUG to be on and to see any errors via the debug bar itself without plastering them all over the page via HTML.

    Pali Madra

    (@palimadra)

    Thanks, @viper007bond.

    Now things look cleaner!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Deprecated warning’ is closed to new replies.