• Getting this PHP Warning.

    
    [14-Mar-2018 17:27:05 UTC] PHP Warning:  php_uname() has been disabled for security reasons in /app/public/wp-content/plugins/debug-bar/debug-bar.php on line 234
    

    Hope it will be fixed in next update.

    I am using PHP 7.1.7 on nginx

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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 5 years, 9 months ago by xjamesb.

    Fixed: It is also necessary to make the change in debug-bar.php

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Getting a PHP Warning’ is closed to new replies.