@sweet6ness

Whoops, looks like something went wrong. не открывает одну из страниц сайта, как решить?

Когда пытаюсь открыть страницу с игрой на моем сайте (по CS:GO), то вылезает ошибка такого характера:

spoiler
ErrorException in 6deb19e3785e96342a0daa0cca8d4313 line 118:
Trying to get property of non-object (View: /var/www/html/resources/views/pages/1x1.blade.php)
in 6deb19e3785e96342a0daa0cca8d4313 line 118
at CompilerEngine->handleViewException(object(ErrorException), '1') in PhpEngine.php line 44
at PhpEngine->evaluatePath('/var/www/html/storage/framework/views/6deb19e3785e96342a0daa0cca8d4313', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'title' => 'Title not stated', 'steam_status' => 'good', 'sound' => null, 'players' => object(Collection), 'game1x11' => object(Game_1x1), 'bets' => array(object(stdClass), object(stdClass)), 'user_avatar_2' => 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/a4/a47eb1e9db5339544558962b8f01a0e19499b9b8_full.jpg', 'user_avatar_1' => 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/96/96a722f8653286fd6fe369a62d9904565a03343b_full.jpg', 'user_avatar_3' => null, 'items_1' => object(stdClass), 'items_2' => object(stdClass), 'items_3' => null, 'price_1' => '1.88', 'price_2' => '3.65', 'price_3' => null, 'chance_1' => '34', 'chance_2' => '66', 'chance_3' => '0', 'user_steam_1' => '76561198381142809', 'user_steam_2' => '76561198190109621', 'user_steam_3' => '3', 'games' => array(object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass)), 'bet1' => '77', 'bet2' => '78', 'bet3' => null, 'users_1' => '622', 'users_2' => '1244', 'users_3' => null)) in CompilerEngine.php line 58
at CompilerEngine->get('/var/www/html/resources/views/pages/1x1.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'title' => 'Title not stated', 'steam_status' => 'good', 'sound' => null, 'players' => object(Collection), 'game1x11' => object(Game_1x1), 'bets' => array(object(stdClass), object(stdClass)), 'user_avatar_2' => 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/a4/a47eb1e9db5339544558962b8f01a0e19499b9b8_full.jpg', 'user_avatar_1' => 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/96/96a722f8653286fd6fe369a62d9904565a03343b_full.jpg', 'user_avatar_3' => null, 'items_1' => object(stdClass), 'items_2' => object(stdClass), 'items_3' => null, 'price_1' => '1.88', 'price_2' => '3.65', 'price_3' => null, 'chance_1' => '34', 'chance_2' => '66', 'chance_3' => '0', 'user_steam_1' => '76561198381142809', 'user_steam_2' => '76561198190109621', 'user_steam_3' => '3', 'games' => array(object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass), object(stdClass)), 'bet1' => '77', 'bet2' => '78', 'bet3' => null, 'users_1' => '622', 'users_2' => '1244', 'users_3' => null)) in View.php line 138
at View->getContents() in View.php line 107
at View->renderContents() in View.php line 81
at View->render() in Response.php line 51
at Response->setContent(object(View)) in Response.php line 202
at Response->__construct(object(View)) in Router.php line 1225
at Router->prepareResponse(object(Request), object(View)) in ControllerDispatcher.php line 113
at ControllerDispatcher->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 114
at ControllerDispatcher->callWithinStack(object(Game_1x1Controller), object(Route), object(Request), 'currentGame') in ControllerDispatcher.php line 69
at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\Game_1x1Controller', 'currentGame') in Route.php line 201
at Route->runWithCustomDispatcher(object(Request)) in Route.php line 134
at Route->run(object(Request)) in Router.php line 704
at Router->Illuminate\Routing\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 706
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 671
at Router->dispatchToRoute(object(Request)) in Router.php line 631
at Router->dispatch(object(Request)) in Kernel.php line 236
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 139
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 50
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 54
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 62
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 23
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 124
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 122
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 87
at Kernel->handle(object(Request)) in index.php line 54


Что сделано не так? В комменты кину сам файл 1x1.blade.php
  • Вопрос задан
  • 281 просмотр
Решения вопроса 2
alexey-m-ukolov
@alexey-m-ukolov Куратор тега PHP
Trying to get property of non-object
/var/www/html/storage/framework/views/6deb19e3785e96342a0daa0cca8d4313
line 118

У вас есть все данные для самостоятельного решения проблемы.
Ответ написан
Trying to get property of non-object


Вы где-то пытаетесь обратиться к переменной как к объекту, хотя переменная объектом не является
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
l3ftoverz
@l3ftoverz Куратор тега PHP
Люблю Финский металкор и ищу работу.
Что сделано не так?

Trying to get property of non-object

Половиной решения проблемы будет перевод ошибки на понятный тебе язык.
Потом ищешь ту строку, где происходит ошибка, добавляешь проверку.

???. Profit.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы