Laravel по-русски

Русское сообщество разработки на PHP-фреймворке Laravel.

Ты не вошёл. Вход тут.

#1 18.10.2015 14:12:47

Вместо сландартного Whoops, looks like something went wrong.

В различных видео, при работе в Laravel все используют какую-то страницу там на чарном фоне много информации, если косяки в коде...
У меня же на белом фоне Whoops, looks like something went wrong.
Как такую панельку поставить.... помойму это не стандартная laravel
Спасибо!

Не в сети

#2 22.10.2015 16:04:11

Alexsaab
Откуда: Москва
Сообщений: 92

Re: Вместо сландартного Whoops, looks like something went wrong.

Нужно переключить среду разработки на development в файле .env, что в корне поставьте

APP_ENV=local
APP_DEBUG=true

Не в сети

#3 22.10.2015 22:12:35

Artdevue
Откуда: Kiev
Сообщений: 119
Сайт

Re: Вместо сландартного Whoops, looks like something went wrong.


If you think it’s expensive to hire a professional to do the job, wait until you hire an amateur.

Не в сети

#4 06.07.2016 18:55:29

саша

Re: Вместо сландартного Whoops, looks like something went wrong.

ребят помогите ошибка in C:\OpenServer\domains\laravelTest.ru\vendor\symfony\routing\Symfony\Component\Routing\Route.php line 643
at Route->sanitizeRequirement('adminModel', '') in Route.php line 531
at Route->addRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 516
at Route->setRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 91
at Route->__construct('admin/login', array(), array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*'), array(), '') in Route.php line 241
at Route->compileRoute() in Route.php line 216
at Route->matches(object(Request), true) in RouteCollection.php line 222
at RouteCollection->Illuminate\Routing\{closure}('admin/login', object(Route))
at call_user_func(object(Closure), 'admin/login', object(Route)) in Arr.php line 158
at Arr::first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure), null) in helpers.php line 150
at array_first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure)) in RouteCollection.php line 223
at RouteCollection->check(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Request)) in RouteCollection.php line 128
at RouteCollection->match(object(Request)) in Router.php line 729
at Router->findRoute(object(Request)) in Router.php line 652
at Router->dispatchToRoute(object(Request)) in Router.php line 628
at Router->dispatch(object(Request)) in Kernel.php line 214
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 43
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Kernel.php line 115
at Kernel->sendRequestThroughRouter(object(Request)) in C:\OpenServer\domains\laravelTest.ru\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php line 84
at Kernel->handle(object(Request)) in index.php line 53

#5 06.07.2016 23:02:46

Re: Вместо сландартного Whoops, looks like something went wrong.

Alexsaab пишет:

Нужно переключить среду разработки на development в файле .env, что в корне поставьте

APP_ENV=local
APP_DEBUG=true

По дефолту в 5 версии этой страницы нет. Нужно ставить доп модуль.
Вот инструкция http://stackoverflow.com/questions/2994 … debug-page

Не в сети

#6 07.07.2016 00:34:50

саша

Re: Вместо сландартного Whoops, looks like something went wrong.

оно у меня стоит я незнаю что делать в этом деле я чайник плис обьясните что куда

#7 07.07.2016 00:54:21

саша

Re: Вместо сландартного Whoops, looks like something went wrong.

вот ошибка в консоли вот   [PDOException]
  SQLSTATE[HY000] [1049] Unknown database
а на сайте вотin Route.php line 643
at Route->sanitizeRequirement('adminModel', '') in Route.php line 531
at Route->addRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 516
at Route->setRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 91
at Route->__construct('admin/login', array(), array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*'), array(), '') in Route.php line 241
at Route->compileRoute() in Route.php line 216
at Route->matches(object(Request), true) in RouteCollection.php line 222
at RouteCollection->Illuminate\Routing\{closure}('admin/login', object(Route))
at call_user_func(object(Closure), 'admin/login', object(Route)) in Arr.php line 158
at Arr::first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure), null) in helpers.php line 150
at array_first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure)) in RouteCollection.php line 223
at RouteCollection->check(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Request)) in RouteCollection.php line 128
at RouteCollection->match(object(Request)) in Router.php line 729
at Router->findRoute(object(Request)) in Router.php line 652
at Router->dispatchToRoute(object(Request)) in Router.php line 628
at Router->dispatch(object(Request)) in Kernel.php line 214
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 43
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Kernel.php line 115
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 84
at Kernel->handle(object(Request)) in index.php line 53

#8 07.07.2016 19:39:11

Re: Вместо сландартного Whoops, looks like something went wrong.

Elelas пишет:
Alexsaab пишет:

Нужно переключить среду разработки на development в файле .env, что в корне поставьте

APP_ENV=local
APP_DEBUG=true

По дефолту в 5 версии этой страницы нет. Нужно ставить доп модуль.
Вот инструкция http://stackoverflow.com/questions/2994 … debug-page

Ничего не нужно ставить. В .env файле нужно прописать то, что написал Alexsaab, тогда вместо Whoops будет показана ошибка. Эту же ошибку можно посмотреть в логе, если debug отключен.

Изменено AlexeyMezenin (07.07.2016 19:40:00)

Не в сети

#9 07.07.2016 22:48:31

саша

Re: Вместо сландартного Whoops, looks like something went wrong.

у меня поставлено на local и true а ошибка таже

#10 08.07.2016 22:14:17

Re: Вместо сландартного Whoops, looks like something went wrong.

AlexeyMezenin пишет:
Elelas пишет:
Alexsaab пишет:

Нужно переключить среду разработки на development в файле .env, что в корне поставьте

APP_ENV=local
APP_DEBUG=true

По дефолту в 5 версии этой страницы нет. Нужно ставить доп модуль.
Вот инструкция http://stackoverflow.com/questions/2994 … debug-page

Ничего не нужно ставить. В .env файле нужно прописать то, что написал Alexsaab, тогда вместо Whoops будет показана ошибка. Эту же ошибку можно посмотреть в логе, если debug отключен.

Во первых зависит от версии. Как минимум, нужно изменить перехватчик и отрисовщик исключений. Для версии 5.2, если я правильно понял, вот мануал https://laracasts.com/discuss/channels/ … laravel-52, для версии 5.1 https://mattstauffer.co/blog/bringing-w … -laravel-5. Если включить режим дебага, то по умолчанию будет выводиться просто стек вызовов.

Не в сети

#11 08.07.2016 22:15:55

Re: Вместо сландартного Whoops, looks like something went wrong.

саша пишет:

вот ошибка в консоли вот   [PDOException]
  SQLSTATE[HY000] [1049] Unknown database
а на сайте вотin Route.php line 643
at Route->sanitizeRequirement('adminModel', '') in Route.php line 531
at Route->addRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 516
at Route->setRequirements(array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*')) in Route.php line 91
at Route->__construct('admin/login', array(), array('adminModelId' => '[0-9]+', 'adminModel' => '', 'adminWildcard' => '.*'), array(), '') in Route.php line 241
at Route->compileRoute() in Route.php line 216
at Route->matches(object(Request), true) in RouteCollection.php line 222
at RouteCollection->Illuminate\Routing\{closure}('admin/login', object(Route))
at call_user_func(object(Closure), 'admin/login', object(Route)) in Arr.php line 158
at Arr::first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure), null) in helpers.php line 150
at array_first(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Closure)) in RouteCollection.php line 223
at RouteCollection->check(array('/' => object(Route), 'home' => object(Route), 'auth/register/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/login/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/logout/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'auth/{_missing}' => object(Route), 'password/email/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/reset/{one?}/{two?}/{three?}/{four?}/{five?}' => object(Route), 'password/{_missing}' => object(Route), 'admin/{adminModel}/async/{adminDisplayName?}' => object(Route), 'admin/assets/images/all' => object(Route), 'admin/login' => object(Route), 'admin/assets/lang' => object(Route), 'admin/logout' => object(Route), 'admin/{adminModel}' => object(Route), 'admin/{adminModel}/create' => object(Route), 'admin/{adminModel}/{adminModelId}/edit' => object(Route), 'admin/{adminWildcard}' => object(Route)), object(Request)) in RouteCollection.php line 128
at RouteCollection->match(object(Request)) in Router.php line 729
at Router->findRoute(object(Request)) in Router.php line 652
at Router->dispatchToRoute(object(Request)) in Router.php line 628
at Router->dispatch(object(Request)) in Kernel.php line 214
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 43
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
at VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
at StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline->then(object(Closure)) in Kernel.php line 115
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 84
at Kernel->handle(object(Request)) in index.php line 53

Ошибка свзязана с базой. Попробуйте установить вручную соединение с теми параметрами, которые указаны в .env

Не в сети

#12 11.07.2016 16:46:20

саша

Re: Вместо сландартного Whoops, looks like something went wrong.

вы можете дать мне свой вк или скайп можем поговорить плс и убрать ошибку буду рад если дадите

#13 11.07.2016 17:31:29

саша

Re: Вместо сландартного Whoops, looks like something went wrong.

у меня в консоли выскакивает ошибка  [PDOException]
  SQLSTATE[HY000] [1049] Unknown database я сколько не менял на root не получается плис помогите и уменя стоит APP_ENV=local
APP_DEBUG=true зар спасибо

#14 16.07.2016 20:31:25

stsepelin
Откуда: Estonia
Сообщений: 43

Re: Вместо сландартного Whoops, looks like something went wrong.

Он не находит базу в принципе, у вас вообще база данных создана и прописано имя в Env?

Не в сети

Подвал раздела