Symfony Exception

ErrorException

HTTP 500 Internal Server Error

include(): read of 8983 bytes failed with errno=12 Cannot allocate memory

Exception

ErrorException

  1.  * @return void
  2.  * @private
  3.  */
  4. function includeFile($file)
  5. {
  6.     include $file;
  7. }
  1.  * @return void
  2.  * @private
  3.  */
  4. function includeFile($file)
  5. {
  6.     include $file;
  7. }
  1.  * @return void
  2.  * @private
  3.  */
  4. function includeFile($file)
  5. {
  6.     include $file;
  7. }
  1.      * @return true|null True if loaded, null otherwise
  2.      */
  3.     public function loadClass($class)
  4.     {
  5.         if ($file $this->findFile($class)) {
  6.             includeFile($file);
  7.             return true;
  8.         }
  9.         return null;
ClassLoader->loadClass('Whoops\\Exception\\Inspector')
  1.      *
  2.      * @return Inspector
  3.      */
  4.     private function getInspector($exception)
  5.     {
  6.         return new Inspector($exception);
  7.     }
  8.     /**
  9.      * Resolves the giving handler.
  10.      *
  1.      */
  2.     public function handleException($exception)
  3.     {
  4.         // Walk the registered handlers in the reverse order
  5.         // they were registered, and pass off the exception
  6.         $inspector $this->getInspector($exception);
  7.         // Capture output produced while handling the exception,
  8.         // we might want to send it straight away to the client,
  9.         // or return it silently.
  10.         $this->system->startOutputBuffering();
  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

ErrorException

ErrorException:
include(): read of 8983 bytes failed with errno=12 Cannot allocate memory

  at /home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php:571
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'include(): read of 8983 bytes failed with errno=12 Cannot allocate memory', '/home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php', 571, array('file' => '/home/bestarabicmassag/public_html/core/vendor/composer/../filp/whoops/src/Whoops/Exception/Inspector.php'))
     (/home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php:571)
  at include()
     (/home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php:571)
  at Composer\Autoload\includeFile('/home/bestarabicmassag/public_html/core/vendor/composer/../filp/whoops/src/Whoops/Exception/Inspector.php')
     (/home/bestarabicmassag/public_html/core/vendor/composer/ClassLoader.php:428)
  at Composer\Autoload\ClassLoader->loadClass('Whoops\\Exception\\Inspector')
  at spl_autoload_call('Whoops\\Exception\\Inspector')
     (/home/bestarabicmassag/public_html/core/vendor/filp/whoops/src/Whoops/Run.php:466)
  at Whoops\Run->getInspector(object(FatalError))
     (/home/bestarabicmassag/public_html/core/vendor/filp/whoops/src/Whoops/Run.php:319)
  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()