Symfony Exception

RouteNotFoundException

HTTP 500 Internal Server Error

Route [front.404] not defined.

Exception

Symfony\Component\Routing\Exception\ RouteNotFoundException

  1.         if (! is_null($this->missingNamedRouteResolver) &&
  2.             ! is_null($url call_user_func($this->missingNamedRouteResolver$name$parameters$absolute))) {
  3.             return $url;
  4.         }
  5.         throw new RouteNotFoundException("Route [{$name}] not defined.");
  6.     }
  7.     /**
  8.      * Get the URL for a given route instance.
  9.      *
  1.      * @param  array  $headers
  2.      * @return \Illuminate\Http\RedirectResponse
  3.      */
  4.     public function route($route$parameters = [], $status 302$headers = [])
  5.     {
  6.         return $this->to($this->generator->route($route$parameters), $status$headers);
  7.     }
  8.     /**
  9.      * Create a new redirect response to a signed named route.
  10.      *
Redirector->route('front.404') in /home1/panel04misc/hotelpalmas/app/Exceptions/Handler.php (line 55)
  1.         if ($exception instanceof UserException) {
  2.             return redirect()->back()->with('erro'$exception->getMessage());
  3.         }
  4.         if ($exception instanceof NotFoundHttpException) {
  5.             return redirect()->route('front.404');
  6.         }
  7.         return parent::render($request$exception);
  8.     }
  1.         $handler $this->container->make(ExceptionHandler::class);
  2.         $handler->report($e);
  3.         $response $handler->render($passable$e);
  4.         if (is_object($response) && method_exists($response'withException')) {
  5.             $response->withException($e);
  6.         }
  1.     {
  2.         return function ($passable) use ($destination) {
  3.             try {
  4.                 return $destination($passable);
  5.             } catch (Throwable $e) {
  6.                 return $this->handleException($passable$e);
  7.             }
  8.         };
  9.     }
  10.     /**
Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in /home1/panel04misc/hotelpalmas/app/Http/Middleware/ForceHttps.php (line 21)
  1.                 $url 'http://' \Request::url();
  2.                 $url str_replace('https://'''$url);
  3.                 return redirect()->to($url);
  4.             }
  5.         }
  6.         return $next($request);
  7.     }
  8. }
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.      */
  2.     public function handle($requestClosure $next)
  3.     {
  4.         $this->clean($request);
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Clean the request's data.
  9.      *
  1.             if ($callback($request)) {
  2.                 return $next($request);
  3.             }
  4.         }
  5.         return parent::handle($request$next);
  6.     }
  7.     /**
  8.      * Transform the given value.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.      */
  2.     public function handle($requestClosure $next)
  3.     {
  4.         $this->clean($request);
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Clean the request's data.
  9.      *
  1.             if ($callback($request)) {
  2.                 return $next($request);
  3.             }
  4.         }
  5.         return parent::handle($request$next);
  6.     }
  7.     /**
  8.      * Transform the given value.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.             $this->startSession($request$session)
  2.         );
  3.         $this->collectGarbage($session);
  4.         $response $next($request);
  5.         $this->storeCurrentUrl($request$session);
  6.         $this->addCookieToResponse($response$session);
  1.         if ($this->manager->shouldBlock() ||
  2.             ($request->route() instanceof Route && $request->route()->locksFor())) {
  3.             return $this->handleRequestWhileBlocking($request$session$next);
  4.         }
  5.         return $this->handleStatefulRequest($request$session$next);
  6.     }
  7.     /**
  8.      * Handle the given request within session state.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.         if ($max && $request->server('CONTENT_LENGTH') > $max) {
  2.             throw new PostTooLargeException;
  3.         }
  4.         return $next($request);
  5.     }
  6.     /**
  7.      * Determine the server 'post_max_size' as bytes.
  8.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.                 null,
  2.                 $this->getHeaders($data)
  3.             );
  4.         }
  5.         return $next($request);
  6.     }
  7.     /**
  8.      * Determine if the incoming request has a maintenance mode bypass cookie.
  9.      *
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
  1.     {
  2.         $pipeline array_reduce(
  3.             array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
  4.         );
  5.         return $pipeline($this->passable);
  6.     }
  7.     /**
  8.      * Run the pipeline and return the result.
  9.      *
  1.         $this->bootstrap();
  2.         return (new Pipeline($this->app))
  3.                     ->send($request)
  4.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  5.                     ->then($this->dispatchToRouter());
  6.     }
  7.     /**
  8.      * Bootstrap the application for HTTP requests.
  9.      *
  1.         $this->requestStartedAt Carbon::now();
  2.         try {
  3.             $request->enableHttpMethodParameterOverride();
  4.             $response $this->sendRequestThroughRouter($request);
  5.         } catch (Throwable $e) {
  6.             $this->reportException($e);
  7.             $response $this->renderException($request$e);
  8.         }
Kernel->handle(object(Request)) in /home1/panel04misc/hotelpalmas/public/index.php (line 52)
  1. |
  2. */
  3. $kernel $app->make(Illuminate\Contracts\Http\Kernel::class);
  4. $response $kernel->handle(
  5.     $request Illuminate\Http\Request::capture()
  6. );
  7. $response->send();

Stack Trace

RouteNotFoundException
Symfony\Component\Routing\Exception\RouteNotFoundException:
Route [front.404] not defined.

  at /home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:477
  at Illuminate\Routing\UrlGenerator->route('front.404', array())
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Routing/Redirector.php:154)
  at Illuminate\Routing\Redirector->route('front.404')
     (/home1/panel04misc/hotelpalmas/app/Exceptions/Handler.php:55)
  at App\Exceptions\Handler->render(object(Request), object(NotFoundHttpException))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:51)
  at Illuminate\Routing\Pipeline->handleException(object(Request), object(NotFoundHttpException))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:146)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/home1/panel04misc/hotelpalmas/app/Http/Middleware/ForceHttps.php:21)
  at App\Http\Middleware\ForceHttps->handle(object(Request), object(Closure))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
  at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
  at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40)
  at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:121)
  at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(EncryptedStore), object(Closure))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64)
  at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
  at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:99)
  at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:183)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:119)
  at Illuminate\Pipeline\Pipeline->then(object(Closure))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
     (/home1/panel04misc/hotelpalmas/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
  at Illuminate\Foundation\Http\Kernel->handle(object(Request))
     (/home1/panel04misc/hotelpalmas/public/index.php:52)