Expected Behaviour:
Settings page in web UI should display
Actual Behaviour:
Settings page blank
I'm running Pi-hole in a dedicated Centos 7 VM (nothing else installed) and has been running fine. I decided to do a update on Centos (yum update) and Pi-hole v3.2 (pihole -up). But my VM was to small (3Gb, oops). So I spun up a new VM and reinstalled everything. All was successful.
I view the Web UI in a Windows 2012 R2 VM using Firefox 57 with no add-ons, but got the same result using a bare metal Windows 7 with Firefox 57.
When I logged back into the Web UI and went to settings, all I got was a blank page. Looking at the log at /var/log/lighttpd/error.log I saw:
2017-12-13 23:44:44: (mod_fastcgi.c.434) FastCGI-stderr: PHP Fatal error: Can't use function return value in write context in /var/www/html/pihole/index.php on line 108
2017-12-13 23:49:49: (mod_fastcgi.c.434) FastCGI-stderr: PHP Fatal error: Can't use function return value in write context in /var/www/html/admin/settings.php on line 15
2017-12-13 23:49:54: (mod_fastcgi.c.434) FastCGI-stderr: PHP Warning: date_create(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/html/admin/index.php on line 55
If I comment out line 15 in "/var/www/html/admin/settings.php". I get the settings page to display again.
"// return !empty(shell_exec(sprintf("which %s", escapeshellarg($cmd))));"
The "function command_exist($cmd)" does not exist in the version v3.1.4 settings.php
PHP scripting is a little beyond me so I don't know what impact that change will have. Any help here would be appreciated.
As no one else is have this issue I must be something specific to Centos or Firefox?
If I can provide any further information. Please ask.
Thank you.
EDIT: I get same result with Internet Explorer 11