Symfony Exception

ErrorException

HTTP 500 Internal Server Error

file_exists(): open_basedir restriction in effect. File(unknown) is not within the allowed path(s): (/home/ghafoor2/domains/filenab.com/:/tmp/:/usr/local/php-7.4/lib/php/)

Exception

ErrorException

  1.         return $this;
  2.     }
  3.     public function get(string $fileName): array
  4.     {
  5.         if (! file_exists($fileName)) {
  6.             return [];
  7.         }
  8.         try {
  9.             $file = new File($fileName);
HandleExceptions->handleError(2, 'file_exists(): open_basedir restriction in effect. File(unknown) is not within the allowed path(s): (/home/ghafoor2/domains/filenab.com/:/tmp/:/usr/local/php-7.4/lib/php/)', '/home/ghafoor2/domains/filenab.com/vendor/facade/flare-client-php/src/Stacktrace/Codesnippet.php', 31, array('fileName' => 'unknown'))
  1.         return $this;
  2.     }
  3.     public function get(string $fileName): array
  4.     {
  5.         if (! file_exists($fileName)) {
  6.             return [];
  7.         }
  8.         try {
  9.             $file = new File($fileName);
  1.     public function toArray(): array
  2.     {
  3.         $codeSnippet = (new Codesnippet())
  4.             ->snippetLineCount(31)
  5.             ->surroundingLine($this->lineNumber)
  6.             ->get($this->file);
  7.         return [
  8.             'line_number' => $this->lineNumber,
  9.             'method' => $this->method,
  10.             'class' => $this->class,
  1.     }
  2.     public function toArray(): array
  3.     {
  4.         return array_map(function (Frame $frame) {
  5.             return $frame->toArray();
  6.         }, $this->frames);
  7.     }
  8.     public function firstApplicationFrame(): ?Frame
  9.     {
Stacktrace->Facade\FlareClient\Stacktrace\{closure}(object(Frame))
  1.     public function toArray(): array
  2.     {
  3.         return array_map(function (Frame $frame) {
  4.             return $frame->toArray();
  5.         }, $this->frames);
  6.     }
  7.     public function firstApplicationFrame(): ?Frame
  8.     {
  9.         foreach ($this->frames as $index => $frame) {
  1.             'exception_class' => $this->exceptionClass,
  2.             'seen_at' => $this->getCurrentTime(),
  3.             'message' => $this->message,
  4.             'glows' => $this->glows,
  5.             'solutions' => $this->solutions,
  6.             'stacktrace' => $this->stacktrace->toArray(),
  7.             'context' => $this->allContext(),
  8.             'stage' => $this->stage,
  9.             'message_level' => $this->messageLevel,
  10.             'open_frame_index' => $this->openFrameIndex,
  11.             'group_by' => $this->groupBy ?? GroupingTypes::TOP_FRAME,
  1.         }
  2.     }
  3.     public function report(): array
  4.     {
  5.         return $this->report->toArray();
  6.     }
  7.     public function jsonEncode($data): string
  8.     {
  9.         $jsonOptions JSON_PARTIAL_OUTPUT_ON_ERROR JSON_HEX_TAG JSON_HEX_APOS JSON_HEX_AMP JSON_HEX_QUOT;
  1.             'telescopeUrl' => $this->telescopeUrl(),
  2.             'shareEndpoint' => $this->shareEndpoint(),
  3.             'title' => $this->title(),
  4.             'config' => $this->config(),
  5.             'solutions' => $this->solutions(),
  6.             'report' => $this->report(),
  7.             'housekeepingEndpoint' => url(config('ignition.housekeeping_endpoint_prefix''_ignition')),
  8.             'styles' => $this->styles(),
  9.             'scripts' => $this->scripts(),
  10.             'tabs' => $this->tabs(),
  11.             'jsonEncode' => Closure::fromCallable([$this'jsonEncode']),
  1.     protected function renderException(ErrorPageViewModel $exceptionViewModel)
  2.     {
  3.         echo $this->renderer->render(
  4.             'errorPage',
  5.             $exceptionViewModel->toArray()
  6.         );
  7.     }
  8. }
  1.             $solutions
  2.         );
  3.         $viewModel->defaultTab($defaultTab$defaultTabProps);
  4.         $this->renderException($viewModel);
  5.     }
  6.     public function handleReport(Report $report$defaultTab null$defaultTabProps = [])
  7.     {
  8.         $viewModel = new ErrorPageViewModel(
  1.     }
  2.     public function handle(): ?int
  3.     {
  4.         try {
  5.             $this->errorPageHandler->handle($this->exception);
  6.         } catch (Error $error) {
  7.             // Errors aren't caught by Whoops.
  8.             // Convert the error to an exception and throw again.
  9.             throw new ErrorException(
  1.                 // The HandlerInterface does not require an Exception passed to handle()
  2.                 // and neither of our bundled handlers use it.
  3.                 // However, 3rd party handlers may have already relied on this parameter,
  4.                 // and removing it would be possibly breaking for users.
  5.                 $handlerResponse $handler->handle($exception);
  6.                 // Collect the content type for possible sending in the headers.
  7.                 $handlerContentType method_exists($handler'contentType') ? $handler->contentType() : null;
  8.                 if (in_array($handlerResponse, [Handler::LAST_HANDLERHandler::QUIT])) {
  1.             $whoops->appendHandler($this->whoopsHandler());
  2.             $whoops->writeToOutput(false);
  3.             $whoops->allowQuit(false);
  4.         })->handleException($e);
  5.     }
  6.     /**
  7.      * Get the Whoops handler for the application.
  8.      *
  1.      */
  2.     protected function renderExceptionContent(Throwable $e)
  3.     {
  4.         try {
  5.             return config('app.debug') && class_exists(Whoops::class)
  6.                         ? $this->renderExceptionWithWhoops($e)
  7.                         : $this->renderExceptionWithSymfony($econfig('app.debug'));
  8.         } catch (Exception $e) {
  9.             return $this->renderExceptionWithSymfony($econfig('app.debug'));
  10.         }
  11.     }
  1.      * @return \Symfony\Component\HttpFoundation\Response
  2.      */
  3.     protected function convertExceptionToResponse(Throwable $e)
  4.     {
  5.         return SymfonyResponse::create(
  6.             $this->renderExceptionContent($e),
  7.             $this->isHttpException($e) ? $e->getStatusCode() : 500,
  8.             $this->isHttpException($e) ? $e->getHeaders() : []
  9.         );
  10.     }
  1.      * @return \Symfony\Component\HttpFoundation\Response
  2.      */
  3.     protected function prepareResponse($requestThrowable $e)
  4.     {
  5.         if (! $this->isHttpException($e) && config('app.debug')) {
  6.             return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
  7.         }
  8.         if (! $this->isHttpException($e)) {
  9.             $e = new HttpException(500$e->getMessage());
  10.         }
  1.             return $this->convertValidationExceptionToResponse($e$request);
  2.         }
  3.         return $request->expectsJson()
  4.                     ? $this->prepareJsonResponse($request$e)
  5.                     : $this->prepareResponse($request$e);
  6.     }
  7.     /**
  8.      * Prepare exception for rendering.
  9.      *
Handler->render(object(Request), object(ErrorException)) in /home/ghafoor2/domains/filenab.com/app/Exceptions/Handler.php (line 54)
  1.      * @throws \Throwable
  2.      */
  3.     public function render($requestThrowable $exception)
  4.     {
  5.         return parent::render($request$exception);
  6.     }
  7. }
  1.      * @param  \Throwable  $e
  2.      * @return void
  3.      */
  4.     protected function renderHttpResponse(Throwable $e)
  5.     {
  6.         $this->getExceptionHandler()->render($this->app['request'], $e)->send();
  7.     }
  8.     /**
  9.      * Handle the PHP shutdown event.
  10.      *
  1.         }
  2.         if ($this->app->runningInConsole()) {
  3.             $this->renderForConsole($e);
  4.         } else {
  5.             $this->renderHttpResponse($e);
  6.         }
  7.     }
  8.     /**
  9.      * Render an exception to the console.
  1.      * @return void
  2.      */
  3.     public function handleShutdown()
  4.     {
  5.         if (! is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Create a new fatal error instance from an error array.
HandleExceptions->handleShutdown()

Stack Trace

ErrorException

ErrorException:
file_exists(): open_basedir restriction in effect. File(unknown) is not within the allowed path(s): (/home/ghafoor2/domains/filenab.com/:/tmp/:/usr/local/php-7.4/lib/php/)

  at /home/ghafoor2/domains/filenab.com/vendor/facade/flare-client-php/src/Stacktrace/Codesnippet.php:31
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_exists(): open_basedir restriction in effect. File(unknown) is not within the allowed path(s): (/home/ghafoor2/domains/filenab.com/:/tmp/:/usr/local/php-7.4/lib/php/)', '/home/ghafoor2/domains/filenab.com/vendor/facade/flare-client-php/src/Stacktrace/Codesnippet.php', 31, array('fileName' => 'unknown'))
  at file_exists('unknown')
     (/home/ghafoor2/domains/filenab.com/vendor/facade/flare-client-php/src/Stacktrace/Codesnippet.php:31)
  at Facade\FlareClient\Stacktrace\Codesnippet->get('unknown')
     (/home/ghafoor2/domains/filenab.com/vendor/facade/flare-client-php/src/Stacktrace/Frame.php:45)
  at Facade\FlareClient\Stacktrace\Frame->toArray()
     (/home/ghafoor2/domains/filenab.com/vendor/facade/flare-client-php/src/Stacktrace/Stacktrace.php:101)
  at Facade\FlareClient\Stacktrace\Stacktrace->Facade\FlareClient\Stacktrace\{closure}(object(Frame))
  at array_map(object(Closure), array(object(Frame), object(Frame), object(Frame), object(Frame), object(Frame), object(Frame), object(Frame), object(Frame), object(Frame), object(Frame), object(Frame), object(Frame), object(Frame), object(Frame), object(Frame)))
     (/home/ghafoor2/domains/filenab.com/vendor/facade/flare-client-php/src/Stacktrace/Stacktrace.php:102)
  at Facade\FlareClient\Stacktrace\Stacktrace->toArray()
     (/home/ghafoor2/domains/filenab.com/vendor/facade/flare-client-php/src/Report.php:268)
  at Facade\FlareClient\Report->toArray()
     (/home/ghafoor2/domains/filenab.com/vendor/facade/ignition/src/ErrorPage/ErrorPageViewModel.php:128)
  at Facade\Ignition\ErrorPage\ErrorPageViewModel->report()
     (/home/ghafoor2/domains/filenab.com/vendor/facade/ignition/src/ErrorPage/ErrorPageViewModel.php:178)
  at Facade\Ignition\ErrorPage\ErrorPageViewModel->toArray()
     (/home/ghafoor2/domains/filenab.com/vendor/facade/ignition/src/ErrorPage/ErrorPageHandler.php:74)
  at Facade\Ignition\ErrorPage\ErrorPageHandler->renderException(object(ErrorPageViewModel))
     (/home/ghafoor2/domains/filenab.com/vendor/facade/ignition/src/ErrorPage/ErrorPageHandler.php:53)
  at Facade\Ignition\ErrorPage\ErrorPageHandler->handle(object(ErrorException))
     (/home/ghafoor2/domains/filenab.com/vendor/facade/ignition/src/ErrorPage/IgnitionWhoopsHandler.php:25)
  at Facade\Ignition\ErrorPage\IgnitionWhoopsHandler->handle(object(ErrorException))
     (/home/ghafoor2/domains/filenab.com/vendor/filp/whoops/src/Whoops/Run.php:340)
  at Whoops\Run->handleException(object(ErrorException))
     (/home/ghafoor2/domains/filenab.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:364)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithWhoops(object(ErrorException))
     (/home/ghafoor2/domains/filenab.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:343)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(ErrorException))
     (/home/ghafoor2/domains/filenab.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:327)
  at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(ErrorException))
     (/home/ghafoor2/domains/filenab.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:306)
  at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(ErrorException))
     (/home/ghafoor2/domains/filenab.com/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:211)
  at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(ErrorException))
     (/home/ghafoor2/domains/filenab.com/app/Exceptions/Handler.php:54)
  at App\Exceptions\Handler->render(object(Request), object(ErrorException))
     (/home/ghafoor2/domains/filenab.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:119)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse(object(ErrorException))
     (/home/ghafoor2/domains/filenab.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:96)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(object(ErrorException))
     (/home/ghafoor2/domains/filenab.com/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:130)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()