Skip to content

Unable to add new users #6089

@muhamaddilah

Description

@muhamaddilah

I can't add a new user on the User Management menu page.
When I press the add icon, an error pop-up always appears

I am using cacti version 1.2.29 and spine 1.2.29 with php version 8.3

Image

Logs

2025-02-05 16:49:43 - CMDPHP WARNING: Cacti Page:user_admin.php?tab=general&action=user_edit for User:admin Generated a Fatal Error:500
2025-02-05 16:49:43 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2025-02-05 16:49:43 - ERROR PHP ERROR: Uncaught TypeError: htmlspecialchars(): Argument #1 ($string) must be of type string, array given in /opt/cacti/lib/html.php:1131 Stack trace: #0 /opt/cacti/lib/html.php(1131): htmlspecialchars() #1 /opt/cacti/lib/html.php(1085): html_escape() #2 /opt/cacti/lib/html_form.php(790): html_create_list() #3 /opt/cacti/lib/html_form.php(250): form_dropdown() #4 /opt/cacti/lib/html_form.php(150): draw_edit_control() #5 /opt/cacti/user_admin.php(1878): draw_edit_form() #6 /opt/cacti/user_admin.php(55): user_edit() #7 {main} thrown in file: /opt/cacti/lib/html.php on line: 1131
2025-02-05 16:49:41 - CMDPHP PHP ERROR WARNING Backtrace: (/user_admin.php[72]:user(), /user_admin.php[2351]:form_selectable_cell(), /lib/html_utility.php[248]:CactiErrorHandler())
2025-02-05 16:49:41 - ERROR PHP WARNING: Array to string conversion in file: /opt/cacti/lib/html_utility.php on line: 248```

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions