Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Notice: fwrite(): Write of 811 bytes failed with errno=122 Disk quota exceeded

Exception

ErrorException

Show exception properties
ErrorException {#337
  #severity: E_NOTICE
}
  1.      *
  2.      * @phpstan-param FormattedRecord $record
  3.      */
  4.     protected function streamWrite($stream, array $record): void
  5.     {
  6.         fwrite($stream, (string) $record['formatted']);
  7.     }
  8.     private function customErrorHandler(int $codestring $msg): bool
  9.     {
  10.         $this->errorMessage preg_replace('{^(fopen|mkdir)\(.*?\): }'''$msg);
  1.         if ($this->useLocking) {
  2.             // ignoring errors here, there's not much we can do about them
  3.             flock($streamLOCK_EX);
  4.         }
  5.         $this->streamWrite($stream$record);
  6.         if ($this->useLocking) {
  7.             flock($streamLOCK_UN);
  8.         }
  9.     }
  1.             $record $this->processRecord($record);
  2.         }
  3.         $record['formatted'] = $this->getFormatter()->format($record);
  4.         $this->write($record);
  5.         return false === $this->bubble;
  6.     }
  7.     /**
  1.                     }
  2.                 }
  3.                 // once the record exists, send it to all handlers as long as the bubbling chain is not interrupted
  4.                 try {
  5.                     if (true === $handler->handle($record)) {
  6.                         break;
  7.                     }
  8.                 } catch (Throwable $e) {
  9.                     $this->handleException($e$record);
  1.             $level self::RFC_5424_LEVELS[$level];
  2.         }
  3.         $level = static::toMonologLevel($level);
  4.         $this->addRecord($level, (string) $message$context);
  5.     }
  6.     /**
  7.      * Adds a log record at the DEBUG level.
  8.      *
  1.             foreach ($this->bootstrappingLogger->cleanLogs() as $log) {
  2.                 $type ThrowableUtils::getSeverity($log[2]['exception']);
  3.                 if (!isset($flush[$type])) {
  4.                     $this->bootstrappingLogger->log($log[0], $log[1], $log[2]);
  5.                 } elseif ($this->loggers[$type][0]) {
  6.                     $this->loggers[$type][0]->log($this->loggers[$type][1], $log[1], $log[2]);
  7.                 }
  8.             }
  9.         }
  10.         return $prev;
  1.                     $loggers[$type] = $log;
  2.                 }
  3.             }
  4.         }
  5.         $this->setLoggers($loggers);
  6.     }
  7.     /**
  8.      * Sets a logger for each error level.
  9.      *
  1.             $handler->setDefaultLogger($this->deprecationLogger$levelsDeprecatedOnly);
  2.             $defaultLoggerLevels $levelsWithoutDeprecated;
  3.         }
  4.         if ($this->logger && $defaultLoggerLevels) {
  5.             $handler->setDefaultLogger($this->logger$defaultLoggerLevels);
  6.         }
  7.     }
  8. }
  1.      * Configures the error handler.
  2.      */
  3.     public function configure(ErrorHandler $handler): void
  4.     {
  5.         if ($this->logger || $this->deprecationLogger) {
  6.             $this->setDefaultLoggers($handler);
  7.             if (\is_array($this->levels)) {
  8.                 $levels 0;
  9.                 foreach ($this->levels as $type => $log) {
  10.                     $levels |= $type;
  11.                 }
  1.         // When upgrading an existing Symfony application from 6.2 to 6.3, and
  2.         // the cache is warmed up, the service is not available yet, so we need
  3.         // to check if it exists.
  4.         if ($this->container->has('debug.error_handler_configurator')) {
  5.             $this->container->get('debug.error_handler_configurator')->configure($handler);
  6.         }
  7.         if ($this->container->getParameter('kernel.http_method_override')) {
  8.             Request::enableHttpMethodParameterOverride();
  9.         }
  1.             $this->preBoot();
  2.         }
  3.         foreach ($this->getBundles() as $bundle) {
  4.             $bundle->setContainer($this->container);
  5.             $bundle->boot();
  6.         }
  7.         $this->booted true;
  8.     }
  1.             if ($container->has('http_cache')) {
  2.                 return $container->get('http_cache')->handle($request$type$catch);
  3.             }
  4.         }
  5.         $this->boot();
  6.         ++$this->requestStackSize;
  7.         $this->resetServices true;
  8.         try {
  9.             return $this->getHttpKernel()->handle($request$type$catch);
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/home/latelierdsy/shop/vendor/autoload_runtime.php') in /home/latelierdsy/shop/public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Stack Trace

ErrorException
ErrorException:
Notice: fwrite(): Write of 811 bytes failed with errno=122 Disk quota exceeded

  at /home/latelierdsy/shop/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:181
  at Monolog\Handler\StreamHandler->streamWrite(resource, array('message' => 'User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message.', 'context' => array('exception' => object(ErrorException)), 'level' => 200, 'level_name' => 'INFO', 'channel' => 'php', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-03-28T13:16:36.815793+01:00] php.INFO: User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \\"Symfony\\\\Component\\\\HttpKernel\\\\Bundle\\\\Bundle::build()\\" might add \\"void\\" as a native return type declaration in the future. Do the same in child class \\"Bazinga\\\\Bundle\\\\HateoasBundle\\\\BazingaHateoasBundle\\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/latelierdsy/shop/vendor/symfony/error-handler/DebugClassLoader.php:337)"} []'))
     (/home/latelierdsy/shop/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:165)
  at Monolog\Handler\StreamHandler->write(array('message' => 'User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message.', 'context' => array('exception' => object(ErrorException)), 'level' => 200, 'level_name' => 'INFO', 'channel' => 'php', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-03-28T13:16:36.815793+01:00] php.INFO: User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \\"Symfony\\\\Component\\\\HttpKernel\\\\Bundle\\\\Bundle::build()\\" might add \\"void\\" as a native return type declaration in the future. Do the same in child class \\"Bazinga\\\\Bundle\\\\HateoasBundle\\\\BazingaHateoasBundle\\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/latelierdsy/shop/vendor/symfony/error-handler/DebugClassLoader.php:337)"} []'))
     (/home/latelierdsy/shop/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:48)
  at Monolog\Handler\AbstractProcessingHandler->handle(array('message' => 'User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message.', 'context' => array('exception' => object(ErrorException)), 'level' => 200, 'level_name' => 'INFO', 'channel' => 'php', 'datetime' => object(DateTimeImmutable), 'extra' => array(), 'formatted' => '[2024-03-28T13:16:36.815793+01:00] php.INFO: User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Method \\"Symfony\\\\Component\\\\HttpKernel\\\\Bundle\\\\Bundle::build()\\" might add \\"void\\" as a native return type declaration in the future. Do the same in child class \\"Bazinga\\\\Bundle\\\\HateoasBundle\\\\BazingaHateoasBundle\\" now to avoid errors or add an explicit @return annotation to suppress this message. at /home/latelierdsy/shop/vendor/symfony/error-handler/DebugClassLoader.php:337)"} []'))
     (/home/latelierdsy/shop/vendor/monolog/monolog/src/Monolog/Logger.php:399)
  at Monolog\Logger->addRecord(200, 'User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message.', array('exception' => object(ErrorException)))
     (/home/latelierdsy/shop/vendor/monolog/monolog/src/Monolog/Logger.php:585)
  at Monolog\Logger->log(200, 'User Deprecated: Method "Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build()" might add "void" as a native return type declaration in the future. Do the same in child class "Bazinga\\Bundle\\HateoasBundle\\BazingaHateoasBundle" now to avoid errors or add an explicit @return annotation to suppress this message.', array('exception' => object(ErrorException)))
     (/home/latelierdsy/shop/vendor/symfony/error-handler/ErrorHandler.php:271)
  at Symfony\Component\ErrorHandler\ErrorHandler->setLoggers(array(array(object(Logger), 'info'), array(object(Logger), 'info'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'warning'), array(object(Logger), 'critical'), array(object(Logger), 'critical'), array(object(Logger), 'critical'), array(object(Logger), 'critical'), array(object(Logger), 'critical'), array(object(Logger), 'critical')))
     (/home/latelierdsy/shop/vendor/symfony/error-handler/ErrorHandler.php:225)
  at Symfony\Component\ErrorHandler\ErrorHandler->setDefaultLogger(object(Logger), 32767)
     (/home/latelierdsy/shop/vendor/symfony/http-kernel/Debug/ErrorHandlerConfigurator.php:104)
  at Symfony\Component\HttpKernel\Debug\ErrorHandlerConfigurator->setDefaultLoggers(object(ErrorHandler))
     (/home/latelierdsy/shop/vendor/symfony/http-kernel/Debug/ErrorHandlerConfigurator.php:55)
  at Symfony\Component\HttpKernel\Debug\ErrorHandlerConfigurator->configure(object(ErrorHandler))
     (/home/latelierdsy/shop/vendor/symfony/framework-bundle/FrameworkBundle.php:108)
  at Symfony\Bundle\FrameworkBundle\FrameworkBundle->boot()
     (/home/latelierdsy/shop/vendor/symfony/http-kernel/Kernel.php:131)
  at Symfony\Component\HttpKernel\Kernel->boot()
     (/home/latelierdsy/shop/vendor/symfony/http-kernel/Kernel.php:192)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (/home/latelierdsy/shop/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/home/latelierdsy/shop/vendor/autoload_runtime.php:29)
  at require_once('/home/latelierdsy/shop/vendor/autoload_runtime.php')
     (/home/latelierdsy/shop/public/index.php:5)