ErrorException {#1505 #severity: E_NOTICE }
// If the path already exists and is a symlink, get the real path... clearstatcache(true, $path); $path = realpath($path) ?: $path; $tempPath = tempnam(dirname($path), basename($path)); // Fix permissions of tempPath because `tempnam()` creates it with permissions set to 0600... if (! is_null($mode)) { @chmod($tempPath, $mode); } else { * @return callable */ protected function forwardsTo($method) { return fn (...$arguments) => static::$app ? $this->{$method}(...$arguments) : false; } /** * Determine if the error level is a deprecation. // If the path already exists and is a symlink, get the real path... clearstatcache(true, $path); $path = realpath($path) ?: $path; $tempPath = tempnam(dirname($path), basename($path)); // Fix permissions of tempPath because `tempnam()` creates it with permissions set to 0600... if (! is_null($mode)) { @chmod($tempPath, $mode); } else { $this->ensureCompiledDirectoryExists( $compiledPath = $this->getCompiledPath($this->getPath()) ); if (! $this->files->exists($compiledPath)) { $this->files->replace($compiledPath, $contents); return; } $compiledHash = $this->files->hash($compiledPath, 'xxh128'); // If this given view has expired, which means it has simply been edited since // it was last compiled, we will re-compile the views so we can evaluate a // fresh copy of the view. We'll pass the compiler the path of the view. if (! isset($this->compiledOrNotExpired[$path]) && $this->compiler->isExpired($path)) { $this->compiler->compile($path); } // 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. * * @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 section gets 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 $exception = new Exception($flattenException, $request, $this->listener, $this->basePath); $exceptionAsMarkdown = $this->viewFactory->make('laravel-exceptions-renderer::markdown', [ 'exception' => $exception, ])->render(); return $this->viewFactory->make('laravel-exceptions-renderer::show', [ 'exception' => $exception, 'exceptionAsMarkdown' => $exceptionAsMarkdown, ])->render(); try { if (config('app.debug')) { if (app()->has(ExceptionRenderer::class)) { return $this->renderExceptionWithCustomRenderer($e); } elseif ($this->container->bound(Renderer::class)) { return $this->container->make(Renderer::class)->render(request(), $e); } } return $this->renderExceptionWithSymfony($e, config('app.debug')); } catch (Throwable $e) { * @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 \Illuminate\Http\Response|\Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse */ protected function prepareResponse($request, Throwable $e) { if (! $this->isHttpException($e) && config('app.debug')) { return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e)->prepare($request); } if (! $this->isHttpException($e)) { $e = new HttpException(500, $e->getMessage(), $e); } */ protected function renderExceptionResponse($request, Throwable $e) { return $this->shouldReturnJson($request, $e) ? $this->prepareJsonResponse($request, $e) : $this->prepareResponse($request, $e); } /** * Convert an authentication exception into a response. * return $this->finalizeRenderedResponse($request, match (true) { $e instanceof HttpResponseException => $e->getResponse(), $e instanceof AuthenticationException => $this->unauthenticated($request, $e), $e instanceof ValidationException => $this->convertValidationExceptionToResponse($e, $request), default => $this->renderExceptionResponse($request, $e), }, $e); } /** * Prepare the final, rendered response to be returned to the browser. $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); } }; }; } */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // 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); */ public function handle($request, Closure $next) { $this->clean($request); return $next($request); } /** * Clean the request's data. * if ($callback($request)) { return $next($request); } } return parent::handle($request, $next); } /** * Transform the given value. * // 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); if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) { throw new PostTooLargeException('The POST data is too large.'); } return $next($request); } /** * Determine the server 'post_max_size' as bytes. * // 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); null, $this->getHeaders($data) ); } return $next($request); } /** * Determine if the incoming request has a maintenance mode bypass 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); return $next($request); } } if (! $this->hasMatchingPath($request)) { return $next($request); } $this->cors->setOptions($this->container['config']->get('cors', [])); if ($this->cors->isPreflightRequest($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); { $request::setTrustedProxies([], $this->getTrustedHeaderNames()); $this->setTrustedProxyIpAddresses($request); return $next($request); } /** * Sets the trusted proxies 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); * @param \Closure $next * @return \Symfony\Component\HttpFoundation\Response */ public function handle(Request $request, Closure $next) { return $next($request); } /** * Invoke the deferred callbacks. * // 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); if (! mb_check_encoding($decodedPath, 'UTF-8')) { throw new MalformedUrlException; } 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); ); try { return $this->withinTransaction !== false ? $this->getContainer()->make('db')->connection($this->withinTransaction)->transaction(fn () => $pipeline($this->passable)) : $pipeline($this->passable); } finally { if ($this->finally) { ($this->finally)($this->passable); } } $this->bootstrap(); return (new Pipeline($this->app)) ->send($request) ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware) ->then($this->dispatchToRouter()); } /** * Bootstrap the application for HTTP requests. * $this->requestStartedAt = Carbon::now(); try { $request->enableHttpMethodParameterOverride(); $response = $this->sendRequestThroughRouter($request); } catch (Throwable $e) { $this->reportException($e); $response = $this->renderException($request, $e); } */ public function handleRequest(Request $request) { $kernel = $this->make(HttpKernelContract::class); $response = $kernel->handle($request)->send(); $kernel->terminate($request, $response); } /**// Bootstrap Laravel and handle the request.../** @var Application $app */$app = require_once __DIR__.'/../bootstrap/app.php';$app->handleRequest(Request::capture());|
ErrorException
|
|---|
ErrorException:
tempnam(): file created in the system's temporary directory
at /home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:222
at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'tempnam(): file created in the system\'s temporary directory', '/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', 222)
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:265)
at Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}(8, 'tempnam(): file created in the system\'s temporary directory', '/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', 222)
at tempnam('/home/imestjco/public_html/professor/storage/framework/views', 'b3762e6921e23ddb21d6512620f0a484.php')
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:222)
at Illuminate\Filesystem\Filesystem->replace('/home/imestjco/public_html/professor/storage/framework/views/b3762e6921e23ddb21d6512620f0a484.php', '# <?php echo e($exception->class()); ?> - <?php echo $exception->title(); ?><?php echo $exception->message(); ?>PHP <?php echo e(PHP_VERSION); ?>Laravel <?php echo e(app()->version()); ?><?php echo e($exception->request()->httpHost()); ?>## Stack Trace<?php $__currentLoopData = $exception->frames(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $frame): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php echo e($index); ?> - <?php echo e($frame->file()); ?>:<?php echo e($frame->line()); ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if($exception->previousExceptions()->isNotEmpty()): ?>## Previous <?php echo e(\\Illuminate\\Support\\Str::plural(\'exception\', $exception->previousExceptions()->count())); ?><?php $__currentLoopData = $exception->previousExceptions(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $previous): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>### <?php echo e($index + 1); ?>. <?php echo e($previous->class()); ?><?php echo $previous->message(); ?><?php $__currentLoopData = $previous->frames(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $frame): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php echo e($index); ?> - <?php echo e($frame->file()); ?>:<?php echo e($frame->line()); ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php endif; ?>## Request<?php echo e($exception->request()->method()); ?> <?php echo e(\\Illuminate\\Support\\Str::start($exception->request()->path(), \'/\')); ?>## Headers<?php $__empty_1 = true; $__currentLoopData = $exception->requestHeaders(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>* **<?php echo e($key); ?>**: <?php echo $value; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>No header data available.<?php endif; ?>## Route Context<?php $__empty_1 = true; $__currentLoopData = $exception->applicationRouteContext(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $name => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php echo e($name); ?>: <?php echo $value; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>No routing data available.<?php endif; ?>## Route Parameters<?php if($routeParametersContext = $exception->applicationRouteParametersContext()): ?><?php echo $routeParametersContext; ?><?php else: ?>No route parameter data available.<?php endif; ?>## Database Queries<?php $__empty_1 = true; $__currentLoopData = $exception->applicationQueries(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as [\'connectionName\' => $connectionName, \'sql\' => $sql, \'time\' => $time]): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>* <?php echo e($connectionName); ?> - <?php echo $sql; ?> (<?php echo e($time); ?> ms)<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>No database queries detected.<?php endif; ?><?php /**PATH /home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Providers/../resources/exceptions/renderer/markdown.blade.php ENDPATH**/ ?>')
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php:201)
at Illuminate\View\Compilers\BladeCompiler->compile('/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Providers/../resources/exceptions/renderer/markdown.blade.php')
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:68)
at Illuminate\View\Engines\CompilerEngine->get('/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Providers/../resources/exceptions/renderer/markdown.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'exception' => object(Exception)))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/View/View.php:208)
at Illuminate\View\View->getContents()
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/View/View.php:191)
at Illuminate\View\View->renderContents()
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/View/View.php:160)
at Illuminate\View\View->render()
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Renderer/Renderer.php:95)
at Illuminate\Foundation\Exceptions\Renderer\Renderer->render(object(Request), object(ErrorException))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:993)
at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:974)
at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:953)
at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:844)
at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse(object(Request), object(ErrorException))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:731)
at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:51)
at Illuminate\Routing\Pipeline->handleException(object(Request), object(ErrorException))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:224)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31)
at Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(object(Request), object(Closure))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:51)
at Illuminate\Foundation\Http\Middleware\TrimStrings->handle(object(Request), object(Closure))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:110)
at Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(object(Request), object(Closure))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php:61)
at Illuminate\Http\Middleware\HandleCors->handle(object(Request), object(Closure))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php:58)
at Illuminate\Http\Middleware\TrustProxies->handle(object(Request), object(Closure))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/InvokeDeferredCallbacks.php:22)
at Illuminate\Foundation\Http\Middleware\InvokeDeferredCallbacks->handle(object(Request), object(Closure))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePathEncoding.php:28)
at Illuminate\Http\Middleware\ValidatePathEncoding->handle(object(Request), object(Closure))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:219)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:137)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:175)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/home/imestjco/public_html/professor/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1228)
at Illuminate\Foundation\Application->handleRequest(object(Request))
(/home/imestjco/public_html/professor/public/index.php:20)
|