Title: Getting a PHP Warning
Last modified: March 14, 2018

---

# Getting a PHP Warning

 *  [Muhammad Saqib Sarwar](https://wordpress.org/support/users/saqibsarwar/)
 * (@saqibsarwar)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/getting-a-php-warning-2/)
 * 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)

 *  [mikeill](https://wordpress.org/support/users/mikeill/)
 * (@mikeill)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/getting-a-php-warning-2/#post-10190988)
 * 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.
 *  [mikeill](https://wordpress.org/support/users/mikeill/)
 * (@mikeill)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/getting-a-php-warning-2/#post-10191004)
 * My error is only happening when I have another plugin installed which calls `
   Debug_Bar_Panel::Debug_Bar_Panel`.
 *  [–](https://wordpress.org/support/users/arswright/)
 * (@arswright)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/getting-a-php-warning-2/#post-10682669)
 * [@mikeill](https://wordpress.org/support/users/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);
       ```
   
 *  [Philip Arthur Moore](https://wordpress.org/support/users/philiparthurmoore/)
 * (@philiparthurmoore)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/getting-a-php-warning-2/#post-10779074)
 * [@arswright](https://wordpress.org/support/users/arswright/) Thanks for this.
   Really annoying notices nonstop in my debug log. Cheers!
 *  [xjamesb](https://wordpress.org/support/users/xjamesb/)
 * (@xjamesb)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/getting-a-php-warning-2/#post-11180747)
 * I tried Gray’s fix but oddly it did not work for me.
    -  This reply was modified 7 years, 3 months ago by [xjamesb](https://wordpress.org/support/users/xjamesb/).
 *  [xjamesb](https://wordpress.org/support/users/xjamesb/)
 * (@xjamesb)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/getting-a-php-warning-2/#post-11180770)
 * 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.

 * ![](https://ps.w.org/debug-bar/assets/icon.svg?rev=3050748)
 * [Debug Bar](https://wordpress.org/plugins/debug-bar/)
 * [Support Threads](https://wordpress.org/support/plugin/debug-bar/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-bar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-bar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-bar/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [xjamesb](https://wordpress.org/support/users/xjamesb/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/getting-a-php-warning-2/#post-11180770)
 * Status: not resolved