</nav>
<br /> <br /><br />
<section class="mt-5 py-5" style="min-height: calc(100vh - 350px);">
<div class="learn_more container-fluid mx-auto" dir="ltr" style="width: 87%;">
<div class="pics-slider py-3">
<img class="main-pic shadow-sm" width="200" src="<?php echo e(url('public/admin/images/'.$type.'/'.$item->image)); ?>" alt="slider-img">
<div class="slide slide-1 shadow-sm active">
<img width="35" src="<?php echo e(url('public/admin/images/'.$type.'/'.$item->image)); ?>" alt="slider-img">
</div>
<?php if($item->gallery): ?>
<?php
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// If this content implements the "Renderable" interface then we will call the
// render method on the object so we will avoid any "__toString" exceptions
// that might be thrown and have their errors obscured by PHP's handling.
elseif ($content instanceof Renderable) {
$content = $content->render();
}
parent::setContent($content);
return $this;
*/
public function __construct($content = '', $status = 200, array $headers = [])
{
$this->headers = new ResponseHeaderBag($headers);
$this->setContent($content);
$this->setStatusCode($status);
$this->setProtocolVersion('1.0');
}
/**
$response instanceof ArrayObject ||
$response instanceof JsonSerializable ||
is_array($response))) {
$response = new JsonResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response, 200, ['Content-Type' => 'text/html']);
}
if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
$response->setNotModified();
}
* @param mixed $response
* @return \Symfony\Component\HttpFoundation\Response
*/
public function prepareResponse($request, $response)
{
return static::toResponse($request, $response);
}
/**
* Static version of prepareResponse.
*
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return tap($next($request), function ($response) use ($request) {
if ($this->shouldAddXsrfTokenCookie()) {
$this->addCookieToResponse($request, $response);
}
});
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
if ($this->manager->shouldBlock() ||
($request->route() && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
} else {
return $this->handleStatefulRequest($request, $session, $next);
}
}
/**
* Handle the given request within session state.
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
</nav>
<br /> <br /><br />
<section class="mt-5 py-5" style="min-height: calc(100vh - 350px);">
<div class="learn_more container-fluid mx-auto" dir="ltr" style="width: 87%;">
<div class="pics-slider py-3">
<img class="main-pic shadow-sm" width="200" src="<?php echo e(url('public/admin/images/'.$type.'/'.$item->image)); ?>" alt="slider-img">
<div class="slide slide-1 shadow-sm active">
<img width="35" src="<?php echo e(url('public/admin/images/'.$type.'/'.$item->image)); ?>" alt="slider-img">
</div>
<?php if($item->gallery): ?>
<?php
</nav>
<br /> <br /><br />
<section class="mt-5 py-5" style="min-height: calc(100vh - 350px);">
<div class="learn_more container-fluid mx-auto" dir="ltr" style="width: 87%;">
<div class="pics-slider py-3">
<img class="main-pic shadow-sm" width="200" src="<?php echo e(url('public/admin/images/'.$type.'/'.$item->image)); ?>" alt="slider-img">
<div class="slide slide-1 shadow-sm active">
<img width="35" src="<?php echo e(url('public/admin/images/'.$type.'/'.$item->image)); ?>" alt="slider-img">
</div>
<?php if($item->gallery): ?>
<?php
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// If this content implements the "Renderable" interface then we will call the
// render method on the object so we will avoid any "__toString" exceptions
// that might be thrown and have their errors obscured by PHP's handling.
elseif ($content instanceof Renderable) {
$content = $content->render();
}
parent::setContent($content);
return $this;
*/
public function __construct($content = '', $status = 200, array $headers = [])
{
$this->headers = new ResponseHeaderBag($headers);
$this->setContent($content);
$this->setStatusCode($status);
$this->setProtocolVersion('1.0');
}
/**
$response instanceof ArrayObject ||
$response instanceof JsonSerializable ||
is_array($response))) {
$response = new JsonResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response, 200, ['Content-Type' => 'text/html']);
}
if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
$response->setNotModified();
}
* @param mixed $response
* @return \Symfony\Component\HttpFoundation\Response
*/
public function prepareResponse($request, $response)
{
return static::toResponse($request, $response);
}
/**
* Static version of prepareResponse.
*
return (new Pipeline($this->container))
->send($request)
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return tap($next($request), function ($response) use ($request) {
if ($this->shouldAddXsrfTokenCookie()) {
$this->addCookieToResponse($request, $response);
}
});
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
if ($this->manager->shouldBlock() ||
($request->route() && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
} else {
return $this->handleStatefulRequest($request, $session, $next);
}
}
/**
* Handle the given request within session state.
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
[2/2]
ViewException
|
---|
Illuminate\View\ViewException: Attempt to read property "image" on null (View: C:\xampp\htdocs\resources\views\theme\details.blade.php) at C:\xampp\htdocs\storage\framework\views\74697bb5d9cf5d807504154b4eda6cf691091452.php:209 at Illuminate\View\Engines\CompilerEngine->handleViewException(object(ErrorException), 1) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php:43) at Illuminate\View\Engines\PhpEngine->evaluatePath('C:\\xampp\\htdocs\\storage\\framework\\views/74697bb5d9cf5d807504154b4eda6cf691091452.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'site_setting' => object(Setting), 'navigation' => object(Collection), 'type' => 'clients', 'item' => null)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php:57) at Illuminate\View\Engines\CompilerEngine->get('C:\\xampp\\htdocs\\resources\\views/theme/details.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'site_setting' => object(Setting), 'navigation' => object(Collection), 'type' => 'clients', 'item' => null)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\View.php:139) at Illuminate\View\View->getContents() (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\View.php:122) at Illuminate\View\View->renderContents() (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\View.php:91) at Illuminate\View\View->render() (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Http\Response.php:62) at Illuminate\Http\Response->setContent(object(View)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Http\Response.php:34) at Illuminate\Http\Response->__construct(object(View), 200, array('Content-Type' => 'text/html')) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:759) at Illuminate\Routing\Router::toResponse(object(Request), object(View)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:731) at Illuminate\Routing\Router->prepareResponse(object(Request), object(View)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:685) at Illuminate\Routing\Router->Illuminate\Routing\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php:78) at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:116) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:62) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
[1/2]
ErrorException
|
---|
ErrorException: Attempt to read property "image" on null at C:\xampp\htdocs\storage\framework\views\74697bb5d9cf5d807504154b4eda6cf691091452.php:209 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Attempt to read property "image" on null', 'C:\\xampp\\htdocs\\storage\\framework\\views\\74697bb5d9cf5d807504154b4eda6cf691091452.php', 209) (C:\xampp\htdocs\storage\framework\views\74697bb5d9cf5d807504154b4eda6cf691091452.php:209) at include('C:\\xampp\\htdocs\\storage\\framework\\views\\74697bb5d9cf5d807504154b4eda6cf691091452.php') (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\Engines\PhpEngine.php:41) at Illuminate\View\Engines\PhpEngine->evaluatePath('C:\\xampp\\htdocs\\storage\\framework\\views/74697bb5d9cf5d807504154b4eda6cf691091452.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'site_setting' => object(Setting), 'navigation' => object(Collection), 'type' => 'clients', 'item' => null)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\Engines\CompilerEngine.php:57) at Illuminate\View\Engines\CompilerEngine->get('C:\\xampp\\htdocs\\resources\\views/theme/details.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'site_setting' => object(Setting), 'navigation' => object(Collection), 'type' => 'clients', 'item' => null)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\View.php:139) at Illuminate\View\View->getContents() (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\View.php:122) at Illuminate\View\View->renderContents() (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\View.php:91) at Illuminate\View\View->render() (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Http\Response.php:62) at Illuminate\Http\Response->setContent(object(View)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Http\Response.php:34) at Illuminate\Http\Response->__construct(object(View), 200, array('Content-Type' => 'text/html')) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:759) at Illuminate\Routing\Router::toResponse(object(Request), object(View)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:731) at Illuminate\Routing\Router->prepareResponse(object(Request), object(View)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:685) at Illuminate\Routing\Router->Illuminate\Routing\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php:78) at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:116) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:62) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
/**
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return tap($next($request), function ($response) use ($request) {
if ($this->shouldAddXsrfTokenCookie()) {
$this->addCookieToResponse($request, $response);
}
});
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
if ($this->manager->shouldBlock() ||
($request->route() && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
} else {
return $this->handleStatefulRequest($request, $session, $next);
}
}
/**
* Handle the given request within session state.
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'Attempt to read property "image" on null (View: C:\\xampp\\htdocs\\resources\\views\\theme\\details.blade.php)', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ViewException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:344) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ViewException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ViewException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ViewException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ViewException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ViewException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:130) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php:78) at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:116) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:62) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
/**
* Render an exception to a string using "Whoops".
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
/**
$this->isReading($request) ||
$this->runningUnitTests() ||
$this->inExceptArray($request) ||
$this->tokensMatch($request)
) {
return tap($next($request), function ($response) use ($request) {
if ($this->shouldAddXsrfTokenCookie()) {
$this->addCookieToResponse($request, $response);
}
});
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
if ($this->manager->shouldBlock() ||
($request->route() && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
} else {
return $this->handleStatefulRequest($request, $session, $next);
}
}
/**
* Handle the given request within session state.
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:346) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ViewException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ViewException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ViewException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ViewException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:130) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php:78) at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:116) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:62) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
if ($this->manager->shouldBlock() ||
($request->route() && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
} else {
return $this->handleStatefulRequest($request, $session, $next);
}
}
/**
* Handle the given request within session state.
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:344) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:116) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:62) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
/**
* Render an exception to a string using "Whoops".
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
// Putting the errors in the view for every view allows the developer to just
// assume that some errors are always available, which is convenient since
// they don't have to continually run checks for the presence of errors.
return $next($request);
}
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
if ($this->manager->shouldBlock() ||
($request->route() && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
} else {
return $this->handleStatefulRequest($request, $session, $next);
}
}
/**
* Handle the given request within session state.
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:346) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:116) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:62) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
if ($this->manager->shouldBlock() ||
($request->route() && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
} else {
return $this->handleStatefulRequest($request, $session, $next);
}
}
/**
* Handle the given request within session state.
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:344) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:116) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:62) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
/**
* Render an exception to a string using "Whoops".
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
$this->startSession($request, $session)
);
$this->collectGarbage($session);
$response = $next($request);
$this->storeCurrentUrl($request, $session);
$this->addCookieToResponse($response, $session);
if ($this->manager->shouldBlock() ||
($request->route() && $request->route()->locksFor())) {
return $this->handleRequestWhileBlocking($request, $session, $next);
} else {
return $this->handleStatefulRequest($request, $session, $next);
}
}
/**
* Handle the given request within session state.
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:346) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:116) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:62) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:344) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
/**
* Render an exception to a string using "Whoops".
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
$response = $next($request);
foreach ($this->cookies->getQueuedCookies() as $cookie) {
$response->headers->setCookie($cookie);
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:346) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:344) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
/**
* Render an exception to a string using "Whoops".
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
* @param \Closure $next
* @return \Symfony\Component\HttpFoundation\Response
*/
public function handle($request, Closure $next)
{
return $this->encrypt($next($this->decrypt($request)));
}
/**
* Decrypt the cookies on the request.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:346) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:344) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
/**
* Render an exception to a string using "Whoops".
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
->through($middleware)
->then(function ($request) use ($route) {
return $this->prepareResponse(
$request, $route->run()
);
});
}
/**
* Gather the middleware for the given route with resolved class names.
*
});
$this->events->dispatch(new RouteMatched($route, $request));
return $this->prepareResponse($request,
$this->runRouteWithinStack($route, $request)
);
}
/**
* Run the given route within a Stack "onion" instance.
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function dispatchToRoute(Request $request)
{
return $this->runRoute($request, $this->findRoute($request));
}
/**
* Find the route matching a given request.
*
*/
public function dispatch(Request $request)
{
$this->currentRequest = $request;
return $this->dispatchToRoute($request);
}
/**
* Dispatch the request to a route and return the response.
*
protected function dispatchToRouter()
{
return function ($request) {
$this->app->instance('request', $request);
return $this->router->dispatch($request);
};
}
/**
* Call the terminate method on any terminable middleware.
*/
protected function prepareDestination(Closure $destination)
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:346) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
/**
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:344) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:130) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
/**
* Render an exception to a string using "Whoops".
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
{
return function ($passable) use ($destination) {
try {
return $destination($passable);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
}
/**
}
throw new MaintenanceModeException($data['time'], $data['retry'], $data['message']);
}
return $next($request);
}
/**
* Determine if the request has a URI that should be accessible in maintenance mode.
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:346) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:130) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:344) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
/**
* Render an exception to a string using "Whoops".
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
$handler = $this->container->make(ExceptionHandler::class);
$handler->report($e);
$response = $handler->render($passable, $e);
if (is_object($response) && method_exists($response, 'withException')) {
$response->withException($e);
}
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
};
};
}
{
$pipeline = array_reduce(
array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
);
return $pipeline($this->passable);
}
/**
* Run the pipeline and return the result.
*
$this->bootstrap();
return (new Pipeline($this->app))
->send($request)
->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
->then($this->dispatchToRouter());
}
/**
* Bootstrap the application for HTTP requests.
*
public function handle($request)
{
try {
$request->enableHttpMethodParameterOverride();
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:346) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:51) at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:172) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
* @param \Throwable $e
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function renderException($request, Throwable $e)
{
return $this->app[ExceptionHandler::class]->render($request, $e);
}
/**
* Get the application's route middleware groups.
*
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new RequestHandled($request, $response)
);
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:344) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:415) at Illuminate\Foundation\Http\Kernel->renderException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:113) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
/**
* Render an exception to a string using "Whoops".
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
* @param \Throwable $e
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function renderException($request, Throwable $e)
{
return $this->app[ExceptionHandler::class]->render($request, $e);
}
/**
* Get the application's route middleware groups.
*
$response = $this->sendRequestThroughRouter($request);
} catch (Throwable $e) {
$this->reportException($e);
$response = $this->renderException($request, $e);
}
$this->app['events']->dispatch(
new RequestHandled($request, $response)
);
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:346) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:415) at Illuminate\Foundation\Http\Kernel->renderException(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:113) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (C:\xampp\htdocs\public\index.php:53) at require_once('C:\\xampp\\htdocs\\public\\index.php') (C:\xampp\htdocs\index.php:21) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
* @param \Throwable $e
* @return void
*/
protected function renderHttpResponse(Throwable $e)
{
$this->getExceptionHandler()->render($this->app['request'], $e)->send();
}
/**
* Handle the PHP shutdown event.
*
}
if ($this->app->runningInConsole()) {
$this->renderForConsole($e);
} else {
$this->renderHttpResponse($e);
}
}
/**
* Render an exception to the console.
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(ErrorException), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:344) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php:119) at Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse(object(ErrorException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php:96) at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(object(ErrorException)) |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
FatalError
|
---|
Symfony\Component\ErrorHandler\Error\FatalError: Uncaught ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory in C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 Stack trace: #0 C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php(353): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/...', 'C:\\xampp\\htdocs...', 353) #1 C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php(353): include() #2 C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php(38): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/excep...') #3 C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php(353): include('C:\\xampp\\htdocs...') #4 C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php(155): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception...', Array) #5 C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php(81): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(Object(Symfony\Component\ErrorHandler\Exception\FlattenException)) #6 C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php(392): Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(Object(Symfony\Component\ErrorHandler\Exception\FlattenException)) #7 C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php(346): Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(Object(ErrorException), true) #8 C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php(327): Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(Object(ErrorException)) #9 C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php(306): Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(Object(ErrorException)) #10 C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php(211): Illuminate\Foundation\Exceptions\Handler->prepareResponse(Object(Illuminate\Http\Request), Object(ErrorException)) #11 C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(119): Illuminate\Foundation\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(ErrorException)) #12 C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php(96): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse(Object(ErrorException)) #13 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(Object(ErrorException)) #14 {main} thrown at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 |
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
<?php } ?>
<?= $this->include('views/exception.html.php', $context); ?>
<script>
<?= $this->include('assets/js/exception.js'); ?>
</script>
</body>
</html>
<!-- <?= $_message; ?> -->
private function include(string $name, array $context = []): string
{
extract($context, \EXTR_SKIP);
ob_start();
include is_file(\dirname(__DIR__).'/Resources/'.$name) ? \dirname(__DIR__).'/Resources/'.$name : $name;
return trim(ob_get_clean());
}
/**
'exception' => $exception,
'exceptionMessage' => $exceptionMessage,
'statusText' => $statusText,
'statusCode' => $statusCode,
'logger' => $this->logger instanceof DebugLoggerInterface ? $this->logger : null,
'currentContent' => \is_string($this->outputBuffer) ? $this->outputBuffer : ($this->outputBuffer)(),
]);
}
/**
* Formats an array as a string.
$headers['X-Debug-Exception-File'] = rawurlencode($exception->getFile()).':'.$exception->getLine();
}
$exception = FlattenException::createFromThrowable($exception, null, $headers);
return $exception->setAsString($this->renderException($exception));
}
/**
* Gets the HTML content associated with the given exception.
*/
*/
protected function renderExceptionWithSymfony(Throwable $e, $debug)
{
$renderer = new HtmlErrorRenderer($debug);
return $renderer->render($e)->getAsString();
}
/**
* Render the given HttpException.
*
protected function renderExceptionContent(Throwable $e)
{
try {
return config('app.debug') && class_exists(Whoops::class)
? $this->renderExceptionWithWhoops($e)
: $this->renderExceptionWithSymfony($e, config('app.debug'));
} catch (Exception $e) {
return $this->renderExceptionWithSymfony($e, config('app.debug'));
}
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function convertExceptionToResponse(Throwable $e)
{
return new SymfonyResponse(
$this->renderExceptionContent($e),
$this->isHttpException($e) ? $e->getStatusCode() : 500,
$this->isHttpException($e) ? $e->getHeaders() : []
);
}
* @return \Symfony\Component\HttpFoundation\Response
*/
protected function prepareResponse($request, Throwable $e)
{
if (! $this->isHttpException($e) && config('app.debug')) {
return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
}
if (! $this->isHttpException($e)) {
$e = new HttpException(500, $e->getMessage());
}
return $this->convertValidationExceptionToResponse($e, $request);
}
return $request->expectsJson()
? $this->prepareJsonResponse($request, $e)
: $this->prepareResponse($request, $e);
}
/**
* Prepare exception for rendering.
*
* @param \Throwable $e
* @return void
*/
protected function renderHttpResponse(Throwable $e)
{
$this->getExceptionHandler()->render($this->app['request'], $e)->send();
}
/**
* Handle the PHP shutdown event.
*
}
if ($this->app->runningInConsole()) {
$this->renderForConsole($e);
} else {
$this->renderHttpResponse($e);
}
}
/**
* Render an exception to the console.
* @return void
*/
public function handleShutdown()
{
if (! is_null($error = error_get_last()) && $this->isFatal($error['type'])) {
$this->handleException($this->fatalErrorFromPhpError($error, 0));
}
}
/**
* Create a new fatal error instance from an error array.
ErrorException
|
---|
ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory at C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(assets/js/exception.js): Failed to open stream: No such file or directory', 'C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php', 353) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at include() (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('assets/js/exception.js') (C:\xampp\htdocs\vendor\symfony\error-handler\Resources\views\exception_full.html.php:38) at include('C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php') (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:353) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->include('views/exception_full.html.php', array('exception' => object(FlattenException), 'exceptionMessage' => 'Uncaught ErrorException: include(assets/js/exception.js): Failed to open stream: No such file or directory in C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php:353Stack trace:#0 C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php(353): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, \'include(assets/...\', \'C:\\\\xampp\\\\htdocs...\', 353)#1 C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php(353): include()#2 C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\Resources\\views\\exception_full.html.php(38): Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer->include(\'assets/js/excep...\')#3 C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php(353): include(\'C:\\\\xampp\\\\htdocs...\')#4 C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php(155): Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer->include(\'views/exception...\', Array)#5 C:\\xampp\\htdocs\\vendor\\symfony\\error-handler\\ErrorRenderer\\HtmlErrorRenderer.php(81): Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer->renderException(Object(Symfony\\Component\\ErrorHandler\\Exception\\FlattenException))#6 C:\\xampp\\htdocs\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(392): Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer->render(Object(Symfony\\Component\\ErrorHandler\\Exception\\FlattenException))#7 C:\\xampp\\htdocs\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(346): Illuminate\\Foundation\\Exceptions\\Handler->renderExceptionWithSymfony(Object(ErrorException), true)#8 C:\\xampp\\htdocs\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(327): Illuminate\\Foundation\\Exceptions\\Handler->renderExceptionContent(Object(ErrorException))#9 C:\\xampp\\htdocs\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(306): Illuminate\\Foundation\\Exceptions\\Handler->convertExceptionToResponse(Object(ErrorException))#10 C:\\xampp\\htdocs\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Exceptions\\Handler.php(211): Illuminate\\Foundation\\Exceptions\\Handler->prepareResponse(Object(Illuminate\\Http\\Request), Object(ErrorException))#11 C:\\xampp\\htdocs\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Bootstrap\\HandleExceptions.php(119): Illuminate\\Foundation\\Exceptions\\Handler->render(Object(Illuminate\\Http\\Request), Object(ErrorException))#12 C:\\xampp\\htdocs\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Bootstrap\\HandleExceptions.php(96): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->renderHttpResponse(Object(ErrorException))#13 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleException(Object(ErrorException))#14 {main} thrown', 'statusText' => 'Internal Server Error', 'statusCode' => '500', 'logger' => null, 'currentContent' => '')) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:155) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->renderException(object(FlattenException)) (C:\xampp\htdocs\vendor\symfony\error-handler\ErrorRenderer\HtmlErrorRenderer.php:81) at Symfony\Component\ErrorHandler\ErrorRenderer\HtmlErrorRenderer->render(object(FlattenException)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:392) at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithSymfony(object(FatalError), true) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:344) at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(FatalError)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:327) at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(FatalError)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:306) at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(FatalError)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php:211) at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(FatalError)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php:119) at Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse(object(FatalError)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php:96) at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(object(FatalError)) (C:\xampp\htdocs\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php:130) at Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown() |