- {
- "message": "App\\Models\\DeviceRelatedModel::scopeHasAccess(): Argument #2 ($user) must be of type App\\Models\\User, null given, called in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 1475",
- "exception": "TypeError",
- "file": "/opt/librenms/app/Models/DeviceRelatedModel.php",
- "line": 35,
- "trace": [
- {
- "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
- "line": 1475,
- "function": "scopeHasAccess",
- "class": "App\\Models\\DeviceRelatedModel",
- "type": "->"
- },
- {
- "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
- "line": 1218,
- "function": "callNamedScope",
- "class": "Illuminate\\Database\\Eloquent\\Model",
- "type": "->"
- },
- {
- "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
- "line": 1199,
- "function": "Illuminate\\Database\\Eloquent\\{closure}",
- "class": "Illuminate\\Database\\Eloquent\\Builder",
- "type": "->"
- },
- {
- "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
- "line": 1217,
- "function": "callScope",
- "class": "Illuminate\\Database\\Eloquent\\Builder",
- "type": "->"
- },
- {
- "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
- "line": 1653,
- "function": "callNamedScope",
- "class": "Illuminate\\Database\\Eloquent\\Builder",
- "type": "->"
- },
- {
- "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php",
- "line": 23,
- "function": "__call",
- "class": "Illuminate\\Database\\Eloquent\\Builder",
- "type": "->"
- },
- {
- "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
- "line": 2132,
- "function": "forwardCallTo",
- "class": "Illuminate\\Database\\Eloquent\\Model",
- "type": "->"
- },
- {
- "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
- "line": 2144,
- "function": "__call",
- "class": "Illuminate\\Database\\Eloquent\\Model",
- "type": "->"
- },
- {
- "file": "/opt/librenms/includes/html/graphs/application/auth.inc.php",
- "line": 6,
- "function": "__callStatic",
- "class": "Illuminate\\Database\\Eloquent\\Model",
- "type": "::"
- },
- {
- "file": "/opt/librenms/includes/html/graphs/graph.inc.php",
- "line": 35,
- "function": "require"
- },
- {
- "file": "/opt/librenms/html/graph.php",
- "line": 29,
- "function": "require"
- }
- ]
- }