Ошибка

Вернитесь на главную страницу

ErrorException: Trying to get property of non-object in /var/www/html/app/Http/Controllers/ShopFrontController.php:85
Stack trace:
#0 /var/www/html/app/Http/Controllers/ShopFrontController.php(85): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Trying to get p...', '/var/www/html/a...', 85, Array)
#1 [internal function]: App\Http\Controllers\ShopFrontController->getCategory('pedaly')
#2 /var/www/html/bootstrap/cache/compiled.php(8927): call_user_func_array(Array, Array)
#3 /var/www/html/bootstrap/cache/compiled.php(8996): Illuminate\Routing\Controller->callAction('getCategory', Array)
#4 /var/www/html/bootstrap/cache/compiled.php(8976): Illuminate\Routing\ControllerDispatcher->call(Object(App\Http\Controllers\ShopFrontController), Object(Illuminate\Routing\Route), 'getCategory')
#5 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#6 /var/www/html/bootstrap/cache/compiled.php(9647): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#7 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#8 /var/www/html/bootstrap/cache/compiled.php(9629): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#9 /var/www/html/bootstrap/cache/compiled.php(8977): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#10 /var/www/html/bootstrap/cache/compiled.php(8962): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(App\Http\Controllers\ShopFrontController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'getCategory')
#11 /var/www/html/bootstrap/cache/compiled.php(7911): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'App\\Http\\Contro...', 'getCategory')
#12 /var/www/html/bootstrap/cache/compiled.php(7882): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))
#13 /var/www/html/bootstrap/cache/compiled.php(7535): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#14 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#15 /var/www/html/bootstrap/cache/compiled.php(9647): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#16 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#17 /var/www/html/bootstrap/cache/compiled.php(9629): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#18 /var/www/html/bootstrap/cache/compiled.php(7536): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#19 /var/www/html/bootstrap/cache/compiled.php(7524): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#20 /var/www/html/bootstrap/cache/compiled.php(7509): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#21 /var/www/html/bootstrap/cache/compiled.php(2310): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#22 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#23 /var/www/html/bootstrap/cache/compiled.php(9647): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#24 /var/www/html/bootstrap/cache/compiled.php(2925): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#25 [internal function]: Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#26 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#27 /var/www/html/bootstrap/cache/compiled.php(12998): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#29 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#30 /var/www/html/app/Http/Middleware/CheckUserSession.php(101): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 [internal function]: App\Http\Middleware\CheckUserSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#32 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#33 /var/www/html/bootstrap/cache/compiled.php(11590): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#34 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#35 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#36 /var/www/html/bootstrap/cache/compiled.php(12735): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#37 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#38 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#39 /var/www/html/bootstrap/cache/compiled.php(12672): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#40 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#41 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#42 /var/www/html/bootstrap/cache/compiled.php(2982): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#43 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#44 /var/www/html/bootstrap/cache/compiled.php(9639): call_user_func_array(Array, Array)
#45 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /var/www/html/bootstrap/cache/compiled.php(9629): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#47 /var/www/html/bootstrap/cache/compiled.php(2257): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#48 /var/www/html/bootstrap/cache/compiled.php(2240): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#49 /var/www/html/public/index.php(56): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#50 /var/www/html/index.php(28): require_once('/var/www/html/p...')
#51 {main}