I’m also on php7 and getting:
`
( ! ) Notice: The called constructor method for Debug_Bar_Panel::Debug_Bar_Panel in Debug_Bar_Panel is <strong>deprecated</strong> since version 0.8.3! Use <pre>__construct()</pre> instead. in /srv/www/example.com/current/web/wp/wp-includes/functions.php on line 3902
`
Thank you for this amazing plugin, man.
My error is only happening when I have another plugin installed which calls Debug_Bar_Panel::Debug_Bar_Panel
.
–
(@arswright)
@mikeill This plugin doesn’t seem to be seeing much in the way of active development so, to reduce the logspam, here’s a quick fix for the deprecated constructor call:
File: plugins/debug-bar/panels/class-debug-bar-panel.php
Line: 20
_deprecated_constructor( __METHOD__, '0.8.3', __CLASS__ );
Change to:
$e_level = error_reporting();
error_reporting(0);
_deprecated_constructor( __METHOD__, '0.8.3', __CLASS__ );
error_reporting($e_level);
@arswright Thanks for this. Really annoying notices nonstop in my debug log. Cheers!
I tried Gray’s fix but oddly it did not work for me.
-
This reply was modified 6 years, 2 months ago by
xjamesb.
Fixed: It is also necessary to make the change in debug-bar.php