ErrorException {#1210 #severity: E_WARNING }
* @param bool $lock * @return int|bool */ public function put($path, $contents, $lock = false) { return file_put_contents($path, $contents, $lock ? LOCK_EX : 0); } /** * Write the contents of a file, replacing it atomically if it already exists. * * @return callable */ protected function forwardsTo($method) { return fn (...$arguments) => static::$app ? $this->{$method}(...$arguments) : false; } /** * Determine if the error level is a deprecation. * @param bool $lock * @return int|bool */ public function put($path, $contents, $lock = false) { return file_put_contents($path, $contents, $lock ? LOCK_EX : 0); } /** * Write the contents of a file, replacing it atomically if it already exists. * $this->ensureCompiledDirectoryExists( $compiledPath = $this->getCompiledPath($this->getPath()) ); if (! $this->files->exists($compiledPath)) { $this->files->put($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. * @param \Throwable $e * @return void */ protected function renderHttpResponse(Throwable $e) { $this->getExceptionHandler()->render(static::$app['request'], $e)->send(); } /** * Handle the PHP shutdown event. * if ($exceptionHandlerFailed ?? false) { exit(1); } } else { $this->renderHttpResponse($e); } } /** * Render an exception to the console. * @return callable */ protected function forwardsTo($method) { return fn (...$arguments) => static::$app ? $this->{$method}(...$arguments) : false; } /** * Determine if the error level is a deprecation.|
ErrorException
|
|---|
ErrorException:
file_put_contents(/app/storage/framework/views/19a335aa72912070ff188b3021829d5b.php): Failed to open stream: Permission denied
at /app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:204
at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_contents(/app/storage/framework/views/19a335aa72912070ff188b3021829d5b.php): Failed to open stream: Permission denied', '/app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', 204)
(/app/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:258)
at Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}(2, 'file_put_contents(/app/storage/framework/views/19a335aa72912070ff188b3021829d5b.php): Failed to open stream: Permission denied', '/app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', 204)
at file_put_contents('/app/storage/framework/views/19a335aa72912070ff188b3021829d5b.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(); ?>## 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 /app/vendor/laravel/framework/src/Illuminate/Foundation/Providers/../resources/exceptions/renderer/markdown.blade.php ENDPATH**/ ?>', 0)
(/app/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:204)
at Illuminate\Filesystem\Filesystem->put('/app/storage/framework/views/19a335aa72912070ff188b3021829d5b.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(); ?>## 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 /app/vendor/laravel/framework/src/Illuminate/Foundation/Providers/../resources/exceptions/renderer/markdown.blade.php ENDPATH**/ ?>')
(/app/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php:198)
at Illuminate\View\Compilers\BladeCompiler->compile('/app/vendor/laravel/framework/src/Illuminate/Foundation/Providers/../resources/exceptions/renderer/markdown.blade.php')
(/app/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:68)
at Illuminate\View\Engines\CompilerEngine->get('/app/vendor/laravel/framework/src/Illuminate/Foundation/Providers/../resources/exceptions/renderer/markdown.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'exception' => object(Exception)))
(/app/vendor/laravel/framework/src/Illuminate/View/View.php:208)
at Illuminate\View\View->getContents()
(/app/vendor/laravel/framework/src/Illuminate/View/View.php:191)
at Illuminate\View\View->renderContents()
(/app/vendor/laravel/framework/src/Illuminate/View/View.php:160)
at Illuminate\View\View->render()
(/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Renderer/Renderer.php:95)
at Illuminate\Foundation\Exceptions\Renderer\Renderer->render(object(Request), object(UnexpectedValueException))
(/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:880)
at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(UnexpectedValueException))
(/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:861)
at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(UnexpectedValueException))
(/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:840)
at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(UnexpectedValueException))
(/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:739)
at Illuminate\Foundation\Exceptions\Handler->renderExceptionResponse(object(Request), object(UnexpectedValueException))
(/app/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:627)
at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(UnexpectedValueException))
(/app/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:221)
at Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse(object(UnexpectedValueException))
(/app/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:198)
at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(object(UnexpectedValueException))
(/app/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:258)
at Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}(object(UnexpectedValueException))
|