[X] I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.
[X] I have checked that the issue I'm posting isn't already reported.
[X] I have checked that the issue I'm posting isn't already solved and no duplicates exist in closed issues and opened issues
[X] I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.
(BUG | ISSUE) Expected Behavior:
Group add dialog opens without error.
(BUG | ISSUE) Actual Behavior:
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /opt/facileManager/server/fm-modules/facileManager/functions.php:873 Stack trace: #0 /opt/facileManager/server/fm-modules/facileManager/classes/class_users.php(705): buildSelect() #1 /opt/facileManager/server/fm-modules/facileManager/ajax/getData.php(103): fm_users->printUsersForm() #2 {main} thrown in /opt/facileManager/server/fm-modules/facileManager/functions.php on line 873
Thanks for the report. This happens because there are no additional users created yet. As a workaround, create a new user first (it can even be in a disabled state).
fM Version : 4.6.1 fmDNS Version : 6.0.4
Debian 12 (Bookworm) PHP 8.2.7 Apache 2.4.57
In raising this issue, I confirm the following (please check boxes, eg [X]):
(BUG | ISSUE) Expected Behavior:
Group add dialog opens without error.
(BUG | ISSUE) Actual Behavior:
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /opt/facileManager/server/fm-modules/facileManager/functions.php:873 Stack trace: #0 /opt/facileManager/server/fm-modules/facileManager/classes/class_users.php(705): buildSelect() #1 /opt/facileManager/server/fm-modules/facileManager/ajax/getData.php(103): fm_users->printUsersForm() #2 {main} thrown in /opt/facileManager/server/fm-modules/facileManager/functions.php on line 873
(BUG | ISSUE) Steps to reproduce:
Add new