Warning: php_uname() has been disabled for security reasons

Warning: php_uname() has been disabled for security reasons in /app/public/wp-content/plugins/query-monitor/collectors/environment.php on line 230

Using the popular plugin Query Monitor, I get this error. The solution is straightforward but I wanted to check if there was a particular reason that php_uname is disabled or if that was/is the default configuration of PHP for the container?

I’m going to file an issue on the QM github repo to add a conditional around that line, but I don’t remember seeing the error in previous builds of LbF (though admittedly, it’s easy to miss at the bottom of the page and QM does not catch it since the code runs after it’s stopped checking for errors).

Cheers

Same. Query Monitor user wondering why it’s disabled.

@daron502 @apmeyer,

php_uname is disabled in the Preferred Environment to mirror Flywheel.

If you switch the site to the Custom Environment the error should go away.

Sorry for the confusion!

1 Like