From John R Wilson, 1 Month ago, written in Plain Text.
Embed
  1. {
  2.   "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",
  3.   "exception": "TypeError",
  4.   "file": "/opt/librenms/app/Models/DeviceRelatedModel.php",
  5.   "line": 35,
  6.   "trace": [
  7.     {
  8.       "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
  9.       "line": 1475,
  10.       "function": "scopeHasAccess",
  11.       "class": "App\\Models\\DeviceRelatedModel",
  12.       "type": "->"
  13.     },
  14.     {
  15.       "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
  16.       "line": 1218,
  17.       "function": "callNamedScope",
  18.       "class": "Illuminate\\Database\\Eloquent\\Model",
  19.       "type": "->"
  20.     },
  21.     {
  22.       "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
  23.       "line": 1199,
  24.       "function": "Illuminate\\Database\\Eloquent\\{closure}",
  25.       "class": "Illuminate\\Database\\Eloquent\\Builder",
  26.       "type": "->"
  27.     },
  28.     {
  29.       "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
  30.       "line": 1217,
  31.       "function": "callScope",
  32.       "class": "Illuminate\\Database\\Eloquent\\Builder",
  33.       "type": "->"
  34.     },
  35.     {
  36.       "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
  37.       "line": 1653,
  38.       "function": "callNamedScope",
  39.       "class": "Illuminate\\Database\\Eloquent\\Builder",
  40.       "type": "->"
  41.     },
  42.     {
  43.       "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php",
  44.       "line": 23,
  45.       "function": "__call",
  46.       "class": "Illuminate\\Database\\Eloquent\\Builder",
  47.       "type": "->"
  48.     },
  49.     {
  50.       "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
  51.       "line": 2132,
  52.       "function": "forwardCallTo",
  53.       "class": "Illuminate\\Database\\Eloquent\\Model",
  54.       "type": "->"
  55.     },
  56.     {
  57.       "file": "/opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
  58.       "line": 2144,
  59.       "function": "__call",
  60.       "class": "Illuminate\\Database\\Eloquent\\Model",
  61.       "type": "->"
  62.     },
  63.     {
  64.       "file": "/opt/librenms/includes/html/graphs/application/auth.inc.php",
  65.       "line": 6,
  66.       "function": "__callStatic",
  67.       "class": "Illuminate\\Database\\Eloquent\\Model",
  68.       "type": "::"
  69.     },
  70.     {
  71.       "file": "/opt/librenms/includes/html/graphs/graph.inc.php",
  72.       "line": 35,
  73.       "function": "require"
  74.     },
  75.     {
  76.       "file": "/opt/librenms/html/graph.php",
  77.       "line": 29,
  78.       "function": "require"
  79.     }
  80.   ]
  81. }