Closed imyller closed 6 months ago
How are your zones look like in UI?
Looking at the code, this fatal error would only occur if there are no zones to build. A workaround until a fix is released is to build at least one zone.
There are only localhost zones and their reverse provided by default install.
I can confirm that workaround of creating at least one valid zone on fresh install works.
This is now fixed in fmDNS 6.0.4 and later.
fM Version : 4.6.1 fmDNS Version : 6.0.3
In raising this issue, I confirm the following (please check boxes, eg [X]):
(BUG | ISSUE) Expected Behavior:
Client should be able to call /buildconf.php endpoint at fM server (POST /buildconf.php)
(BUG | ISSUE) Actual Behavior:
client/facileManager/fmDNS/client.php buildconf
fails silently with exit code 1/buildconf.php
fails with http/500[php:error] PHP Fatal error: Uncaught TypeError: array_unique(): Argument #1 ($array) must be of type array, null given in /var/www/facileManager/fm-modules/fmDNS/classes/class_buildconf.php:739\nStack trace:\n#0 /var/www/facileManager/fm-modules/fmDNS/classes/class_buildconf.php(739): array_unique()\n#1 /var/www/facileManager/fm-modules/shared/pages/buildconf.php(52): fm_module_buildconf->buildServerConfig()\n#2 /var/www/facileManager/index.php(57): include('...')\n#3 {main}\n thrown in /var/www/facileManager/fm-modules/fmDNS/classes/class_buildconf.php on line 739
(BUG | ISSUE) Steps to reproduce: