c833c1eb-64cc-4931-9c53-45094651c341
When asking for help and support, please provide as much information as possible. This should include:
- Steps to reproduce an issue.
- The output of
./validate.php
If it’s an issue with the WebUI then please consider including a screenshot and the browser version you are using.
PHP Fatal error: Trait "Silber\Bouncer\Database\HasRolesAndAbilities" not found in /data/librenms/app/Models/User.php on line 22
===========================================
Component | Version
--------- | -------
LibreNMS | 23.8.2-15-gb889e21 (2023-08-28T15:06:33-04:00)
DB Schema | Not Connected (0)
PHP | 8.1.21
Python | 3.6.8
Database | Not Connected
RRDTool | 1.4.8
SNMP | 5.7.2
===========================================
[OK] Composer Version: 2.1.6
[OK] Dependencies up-to-date.
Symfony\Component\ErrorHandler\Error\FatalError
Trait "Silber\Bouncer\Database\HasRolesAndAbilities" not found
at app/Models/User.php:22
18▕
19▕ /**
20▕ * @method static \Database\Factories\UserFactory factory(...$parameters)
21▕ */
➜ 22▕ class User extends Authenticatable
23▕ {
24▕ use HasRolesAndAbilities, Notifiable, HasFactory, HasPushSubscriptions;
25▕
26▕ protected $primaryKey = 'user_id';
Whoops\Exception\ErrorException
Trait "Silber\Bouncer\Database\HasRolesAndAbilities" not found
at app/Models/User.php:22
18▕
19▕ /**
20▕ * @method static \Database\Factories\UserFactory factory(...$parameters)
21▕ */
➜ 22▕ class User extends Authenticatable
23▕ {
24▕ use HasRolesAndAbilities, Notifiable, HasFactory, HasPushSubscriptions;
25▕
26▕ protected $primaryKey = 'user_id';
+1 vendor frames
2 [internal]:0
Whoops\Run::handleShutdown()
Error in the librenms.log
Trait "Silber\Bouncer\Database\HasRolesAndAbilities" not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait \"Silber\\Bouncer\\Database\\HasRolesAndAbilities\" not found at /data/librenms/app/Models/User.php:22)"}
Trait "Silber\Bouncer\Database\HasRolesAndAbilities" not found {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Trait \"Silber\\Bouncer\\Database\\HasRolesAndAbilities\" not found at /data/librenms/app/Models/User.php:22)"} ```