Expected Behaviour:
I ran pihole on Arch on a Raspberry Pi. I went to /admin/settings.php?tab=piholedhcp
and checked the "DHCP server enabled" option and clicked "Save". I expected the DHCP server to start.
Actual Behaviour:
The DHCP server did not start, and half of the settings page disappeared.
In the logs I can see the following error:
2022/04/29 15:21:21 [error] 506#506: *314 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: feof(): Argument #1 ($stream) must be of type resource, bool given in /srv/http/pihole/admin/settings.php:581
Stack trace:
#0 /srv/http/pihole/admin/settings.php(581): feof()
#1 {main}
thrown in /srv/http/pihole/admin/settings.php on line 581" while reading upstream, client: 192.168.0.150, server: _, request: "POST /admin/settings.php?tab=piholedhcp HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/php-fpm.sock:", host: "192.168.0.80", referrer: "http://192.168.0.80/admin/settings.php?tab=piholedhcp"