Symfony Exception

ViewException

HTTP 500 Internal Server Error

file_get_contents(): read of 8192 bytes failed with errno=12 Cannot allocate memory

Exception

Facade\Ignition\Exceptions\ ViewException

  1.         try {
  2.             extract((array) $_dataEXTR_OVERWRITE);
  3.             include $viewFile;
  4.         } catch (Exception $exception) {
  5.             $viewException = new ViewException($exception->getMessage());
  6.             $viewException->setView($viewFile);
  7.             $viewException->setViewData($_data);
  8.             throw $viewException;
  9.         }
  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 new SymfonyResponse(
  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.      * Map the exception using a registered mapper if possible.
  9.      *
  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

ViewException

Facade\Ignition\Exceptions\ViewException:
file_get_contents(): read of 8192 bytes failed with errno=12 Cannot allocate memory

  at /home/bestarabicmassag/public_html/core/vendor/facade/ignition/src/ErrorPage/Renderer.php:29
  at Facade\Ignition\ErrorPage\Renderer->render('errorPage', array('throwableString' => 'Symfony\\Component\\ErrorHandler\\Error\\FatalError: During class fetch: Uncaught ErrorException: include(): read of 2376 bytes failed with errno=12 Cannot allocate memory in /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php:571Stack trace:#0 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(571): Illuminate\\Foundation\\Bootstrap\\HandleExceptions-&gt;handleError(8, \'include(): read...\', \'/home/bestarabi...\', 571, Array)#1 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(571): include()#2 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(428): Composer\\Autoload\\includeFile(\'/home/bestarabi...\')#3 [internal function]: Composer\\Autoload\\ClassLoader-&gt;loadClass(\'Illuminate\\\\Foun...\')#4 /home/bestarabicmassag/public_html/core/vendor/facade/ignition/src/Http/Controllers/ExecuteSolutionController.php(9): spl_autoload_call(\'Illuminate\\\\Foun...\')#5 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(571): include(\'/home/bestarabi...\')#6 /home/bestarabicmassag/ in file /home/bestarabicmassag/public_html/core/vendor/facade/ignition/src/Http/Controllers/ExecuteSolutionController.php on line 9#0 {main}', 'telescopeUrl' => null, 'shareEndpoint' => '', 'title' => '🧨 During class fetch: Uncaught ErrorException: include(): read of 2376 bytes failed with errno=12 Cannot allocate memory in /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php:571Stack trace:#0 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(571): Illuminate\\Foundation\\Bootstrap\\HandleExceptions-&gt;handleError(8, \'include(): read...\', \'/home/bestarabi...\', 571, Array)#1 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(571): include()#2 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(428): Composer\\Autoload\\includeFile(\'/home/bestarabi...\')#3 [internal function]: Composer\\Autoload\\ClassLoader-&gt;loadClass(\'Illuminate\\\\Foun...\')#4 /home/bestarabicmassag/public_html/core/vendor/facade/ignition/src/Http/Controllers/ExecuteSolutionController.php(9): spl_autoload_call(\'Illuminate\\\\Foun...\')#5 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(571): include(\'/home/bestarabi...\')#6 /home/bestarabicmassag/', 'config' => array('editor' => 'phpstorm', 'remoteSitesPath' => '', 'localSitesPath' => '', 'theme' => 'light', 'enableShareButton' => false, 'enableRunnableSolutions' => true, 'directorySeparator' => '/'), 'solutions' => array(), 'report' => array('notifier' => 'Laravel Client', 'language' => 'PHP', 'framework_version' => '8.25.0', 'language_version' => '7.4.33', 'exception_class' => 'Symfony\\Component\\ErrorHandler\\Error\\FatalError', 'seen_at' => 1765712859, 'message' => 'During class fetch: Uncaught ErrorException: include(): read of 2376 bytes failed with errno=12 Cannot allocate memory in /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php:571Stack trace:#0 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(571): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, \'include(): read...\', \'/home/bestarabi...\', 571, Array)#1 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(571): include()#2 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(428): Composer\\Autoload\\includeFile(\'/home/bestarabi...\')#3 [internal function]: Composer\\Autoload\\ClassLoader->loadClass(\'Illuminate\\\\Foun...\')#4 /home/bestarabicmassag/public_html/core/vendor/facade/ignition/src/Http/Controllers/ExecuteSolutionController.php(9): spl_autoload_call(\'Illuminate\\\\Foun...\')#5 /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php(571): include(\'/home/bestarabi...\')#6 /home/bestarabicmassag/', 'glows' => array(), 'solutions' => array(), 'stacktrace' => array(array('line_number' => 9, 'method' => '[top]', 'class' => null, 'code_snippet' => array('<?php', '', 'namespace Facade\\Ignition\\Http\\Controllers;', '', 'use Facade\\Ignition\\Http\\Requests\\ExecuteSolutionRequest;', 'use Facade\\IgnitionContracts\\SolutionProviderRepository;', 'use Illuminate\\Foundation\\Validation\\ValidatesRequests;', '', 'class ExecuteSolutionController', '{', '    use ValidatesRequests;', '', '    public function __invoke(', '        ExecuteSolutionRequest $request,', '        SolutionProviderRepository $solutionProviderRepository', '    ) {', '        $solution = $request->getRunnableSolution();', '', '        $solution->run($request->get(\'parameters\', []));', '', '        return response(\'\');', '    }', '}', ''), 'file' => '/home/bestarabicmassag/public_html/core/vendor/facade/ignition/src/Http/Controllers/ExecuteSolutionController.php', 'is_application_frame' => false)), 'context' => array('request' => array('url' => 'https://bestarabicmassage.com/?products%2F22402446%2F=', 'ip' => null, 'method' => 'GET', 'useragent' => 'CCBot/2.0 (https://commoncrawl.org/faq/)'), 'request_data' => array('queryString' => array('products/22402446/' => ''), 'body' => array('products/22402446/' => ''), 'files' => array()), 'headers' => array('accept' => array('text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'), 'accept-encoding' => array('br,gzip'), 'accept-language' => array('en-US,en;q=0.5'), 'host' => array('bestarabicmassage.com'), 'user-agent' => array('CCBot/2.0 (https://commoncrawl.org/faq/)'), 'x-https' => array('1')), 'cookies' => array(), 'session' => array(), 'route' => array('route' => null, 'routeParameters' => array(), 'controllerAction' => null, 'middleware' => array()), 'user' => array(), 'env' => array('laravel_version' => '8.25.0', 'laravel_locale' => 'en', 'laravel_config_cached' => false, 'php_version' => '7.4.33'), 'logs' => array(), 'dumps' => array(), 'queries' => array()), 'stage' => 'local', 'message_level' => null, 'open_frame_index' => null, 'group_by' => 'topFrame', 'application_path' => '/home/bestarabicmassag/public_html/core'), 'housekeepingEndpoint' => 'https://bestarabicmassage.com/_ignition', 'styles' => array(), 'scripts' => array(), 'tabs' => '[]', 'jsonEncode' => object(Closure), 'getAssetContents' => object(Closure), 'defaultTab' => 'StackTab', 'defaultTabProps' => array()))
     (/home/bestarabicmassag/public_html/core/vendor/facade/ignition/src/ErrorPage/ErrorPageHandler.php:74)
  at Facade\Ignition\ErrorPage\ErrorPageHandler->renderException(object(ErrorPageViewModel))
     (/home/bestarabicmassag/public_html/core/vendor/facade/ignition/src/ErrorPage/ErrorPageHandler.php:53)
  at Facade\Ignition\ErrorPage\ErrorPageHandler->handle(object(FatalError))
     (/home/bestarabicmassag/public_html/core/vendor/facade/ignition/src/ErrorPage/IgnitionWhoopsHandler.php:25)
  at Facade\Ignition\ErrorPage\IgnitionWhoopsHandler->handle(object(FatalError))
     (/home/bestarabicmassag/public_html/core/vendor/filp/whoops/src/Whoops/Run.php:340)
  at Whoops\Run->handleException(object(FatalError))
     (/home/bestarabicmassag/public_html/core/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:511)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithWhoops(object(FatalError))
     (/home/bestarabicmassag/public_html/core/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:490)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent(object(FatalError))
     (/home/bestarabicmassag/public_html/core/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:474)
  at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse(object(FatalError))
     (/home/bestarabicmassag/public_html/core/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:453)
  at Illuminate\Foundation\Exceptions\Handler->prepareResponse(object(Request), object(FatalError))
     (/home/bestarabicmassag/public_html/core/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:339)
  at Illuminate\Foundation\Exceptions\Handler->render(object(Request), object(FatalError))
     (/home/bestarabicmassag/public_html/core/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:119)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse(object(FatalError))
     (/home/bestarabicmassag/public_html/core/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:96)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException(object(FatalError))
     (/home/bestarabicmassag/public_html/core/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:130)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()