WillyXJ / facileManager

A modular suite of web apps built with the sysadmin in mind.
www.facilemanager.com
GNU General Public License v2.0
84 stars 37 forks source link

[BUG] Uncaught TypeError when adding new group #621

Closed imyller closed 2 months ago

imyller commented 3 months ago

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

grouptyperr

(BUG | ISSUE) Steps to reproduce:

WillyXJ commented 3 months ago

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).

WillyXJ commented 2 months ago

This is now fixed in fM 4.6.2 and later.