ErrorException {#3086
#message: "Trying to get property 'id' of non-object"
#code: 0
#file: "/var/www/html/leatherseatpros/addons/default/anomaly/products-module/src/Http/Controller/ProductsController.php"
#line: 249
#severity: E_NOTICE
trace: {
/var/www/html/leatherseatpros/addons/default/anomaly/products-module/src/Http/Controller/ProductsController.php:249 {
› $currentCategory = CategoryModel::where('slug', $category)->first();\r
› $related = $currentCategory->relatedProducts($products->id);\r
› $quantity = $size_id = $color_id = $attributeValue = $attribute_details = null;\r
arguments: {
$level: 8
$message: "Trying to get property 'id' of non-object"
$file: "/var/www/html/leatherseatpros/addons/default/anomaly/products-module/src/Http/Controller/ProductsController.php"
$line: 249
$context: array:5 [ …5]
}
}
Anomaly\ProductsModule\Http\Controller\ProductsController->view() {}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 {
› {
› return call_user_func_array([$this, $method], $parameters);
› }
arguments: {
$function_name: array:2 [ …2]
$parameters: array:3 [ …3]
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 {
› if (method_exists($controller, 'callAction')) {
› return $controller->callAction($method, $parameters);
› }
arguments: {
$method: "view"
$parameters: array:3 [ …3]
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Route.php:219 {
› return $this->controllerDispatcher()->dispatch(
› $this, $this->getController(), $this->getControllerMethod()
› );
arguments: {
$route: Route {#1871 …}
$controller: ProductsController {#2549 …}
$method: "view"
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Route.php:176 {
› if ($this->isControllerAction()) {
› return $this->runController();
› }
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Router.php:682 {
› return $this->prepareResponse(
› $request, $route->run()
› );
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {
› try {
› return $destination($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/anomaly/streams-platform/src/Http/Middleware/CheckForMaintenanceMode.php:87 {
› ) {
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/anomaly/streams-platform/src/Http/Middleware/HttpCache.php:78 {
› /* @var Response $response */
› $response = $next($request);
›
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/core/anomaly/redirects-module/src/Http/Middleware/RedirectDomains.php:30 {
› if (!$domains = require $domains) {
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/core/anomaly/users-module/src/Http/Middleware/AuthorizeRoutePermission.php:149 {
›
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/core/anomaly/users-module/src/Http/Middleware/AuthorizeControlPanel.php:44 {
› if ($request->segment(1) !== 'admin' || in_array($request->path(), ['admin/login', 'admin/logout'])) {
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/core/anomaly/users-module/src/Http/Middleware/AuthorizeModuleAccess.php:54 {
› if ($request->segment(1) !== 'admin' || in_array($request->path(), ['admin/login', 'admin/logout', 'admin'])) {
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/core/anomaly/users-module/src/Http/Middleware/AuthorizeRouteRoles.php:139 {
›
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/core/anomaly/users-module/src/Http/Middleware/CheckSecurity.php:47 {
› if ($request->segment(1) !== 'admin' || in_array($request->path(), ['admin/login', 'admin/logout'])) {
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/core/anomaly/installer-module/src/Http/Middleware/CheckIfInstallerExists.php:72 {
›
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/anomaly/streams-platform/src/Http/Middleware/ApplicationReady.php:45 {
›
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/anomaly/streams-platform/src/Http/Middleware/CheckLocale.php:32 {
› if (!defined('LOCALE')) {
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/anomaly/streams-platform/src/Http/Middleware/SetLocale.php:114 {
›
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/anomaly/streams-platform/src/Http/Middleware/PrefixDomain.php:44 {
› if (!$prefix = config('streams::system.domain_prefix')) {
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/anomaly/streams-platform/src/Http/Middleware/ForceSsl.php:49 {
›
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/anomaly/streams-platform/src/Http/Middleware/PoweredBy.php:26 {
› /* @var \Illuminate\Http\Response $response */
› $response = $next($request);
›
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
›
› return $pipeline($this->passable);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Router.php:684 {
› );
› });
› }
arguments: {
$destination: Closure {#2557 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Router.php:659 {
› return $this->prepareResponse($request,
› $this->runRouteWithinStack($route, $request)
› );
arguments: {
$route: Route {#1871 …}
$request: Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625 {
› {
› return $this->runRoute($request, $this->findRoute($request));
› }
arguments: {
$request: Request {#34 …}
$route: Route {#1871 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Router.php:614 {
›
› return $this->dispatchToRoute($request);
› }
arguments: {
$request: Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
›
› return $this->router->dispatch($request);
› };
arguments: {
$request: Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {
› try {
› return $destination($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
›
› return $next($request);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63 {
›
› $response = $next($request);
›
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
› {
› $response = $next($request);
›
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66 {
› {
› return $this->encrypt($next($this->decrypt($request)));
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:163 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Request {#34 …}
$next: Closure {#2465 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
›
› return $pipeline($this->passable);
› }
arguments: {
Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {
› ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
› ->then($this->dispatchToRouter());
› }
arguments: {
$destination: Closure {#2456 …}
}
}
/var/www/html/leatherseatpros/vendor/anomaly/streams-platform/src/Http/Kernel.php:117 {
›
› return parent::sendRequestThroughRouter($request);
› }
arguments: {
$request: Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
›
› $response = $this->sendRequestThroughRouter($request);
› } catch (Exception $e) {
arguments: {
$request: Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/barryvdh/laravel-httpcache/src/CacheKernel.php:27 {
› {
› return $this->kernel->handle($request);
› }
arguments: {
$request: Request {#34 …}
}
}
/var/www/html/leatherseatpros/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:85 {
› try {
› return $kernel->handle($request, $type, $catch);
› } finally {
arguments: {
$request: Request {#34 …}
$type: 1
$catch: true
}
}
/var/www/html/leatherseatpros/vendor/symfony/http-kernel/HttpCache/HttpCache.php:478 {
› // always a "master" request (as the real master request can be in cache)
› $response = SubRequestHandler::handle($this->kernel, $request, HttpKernelInterface::MASTER_REQUEST, $catch);
›
arguments: {
$kernel: CacheKernel {#22 …}
$request: Request {#34 …}
$type: 1
$catch: true
}
}
/var/www/html/leatherseatpros/vendor/symfony/http-kernel/HttpCache/HttpCache.php:450 {
›
› $response = $this->forward($subRequest, $catch);
›
arguments: {
$request: Request {#34 …}
$catch: true
}
}
/var/www/html/leatherseatpros/vendor/symfony/http-kernel/HttpCache/HttpCache.php:347 {
›
› return $this->fetch($request, $catch);
› }
arguments: {
$request: Request {#47 …}
$catch: true
}
}
/var/www/html/leatherseatpros/vendor/symfony/http-kernel/HttpCache/HttpCache.php:222 {
› } else {
› $response = $this->lookup($request, $catch);
› }
arguments: {
$request: Request {#47 …}
$catch: true
}
}
/var/www/html/leatherseatpros/public/index.php:55 {
› $response = $kernel->handle(
› $request = Illuminate\Http\Request::capture()
› );
arguments: {
$request: Request {#47 …}
}
}
}
}