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(