Deprecated: Symfony\Component\ErrorHandler\ErrorHandler::register(): Implicitly marking parameter $handler as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/error-handler/ErrorHandler.php on line 110

Deprecated: Symfony\Component\ErrorHandler\ErrorHandler::__construct(): Implicitly marking parameter $bootstrappingLogger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/error-handler/ErrorHandler.php on line 181

Deprecated: Symfony\Component\ErrorHandler\ErrorHandler::handleFatalError(): Implicitly marking parameter $error as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/error-handler/ErrorHandler.php on line 569

Deprecated: Symfony\Component\ErrorHandler\DebugClassLoader::checkClass(): Implicitly marking parameter $file as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/error-handler/DebugClassLoader.php on line 308

Deprecated: Symfony\Component\ErrorHandler\DebugClassLoader::setReturnType(): Implicitly marking parameter $returnType as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/error-handler/DebugClassLoader.php on line 795

Deprecated: Constant E_STRICT is deprecated in /var/www/html/symfonytest/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/html/symfonytest/vendor/symfony/error-handler/ErrorHandler.php on line 76

Deprecated: Symfony\Component\Config\ConfigCacheInterface::write(): Implicitly marking parameter $metadata as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/config/ConfigCacheInterface.php on line 44

Deprecated: Symfony\Component\HttpFoundation\HeaderBag::all(): Implicitly marking parameter $key as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/http-foundation/HeaderBag.php on line 68

Deprecated: Symfony\Component\HttpFoundation\HeaderBag::get(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/http-foundation/HeaderBag.php on line 109

Deprecated: Symfony\Component\HttpFoundation\HeaderBag::getDate(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/http-foundation/HeaderBag.php on line 190

Deprecated: Symfony\Component\Cache\Traits\ContractsTrait::doGet(): Implicitly marking parameter $metadata as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/cache/Traits/ContractsTrait.php on line 64

Deprecated: Symfony\Contracts\Cache\CacheTrait::get(): Implicitly marking parameter $beta as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/cache-contracts/CacheTrait.php on line 28

Deprecated: Symfony\Contracts\Cache\CacheTrait::get(): Implicitly marking parameter $metadata as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/cache-contracts/CacheTrait.php on line 28

Deprecated: Symfony\Contracts\Cache\CacheTrait::doGet(): Implicitly marking parameter $metadata as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/cache-contracts/CacheTrait.php on line 38

Deprecated: Symfony\Contracts\Cache\CacheTrait::doGet(): Implicitly marking parameter $logger as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/cache-contracts/CacheTrait.php on line 38

Deprecated: Symfony\Contracts\Cache\CacheInterface::get(): Implicitly marking parameter $beta as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/cache-contracts/CacheInterface.php on line 47

Deprecated: Symfony\Contracts\Cache\CacheInterface::get(): Implicitly marking parameter $metadata as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/cache-contracts/CacheInterface.php on line 47

Deprecated: Symfony\Component\Cache\Traits\FilesystemCommonTrait::write(): Implicitly marking parameter $expiresAt as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/cache/Traits/FilesystemCommonTrait.php on line 91

Deprecated: Symfony\Component\Cache\Traits\FilesystemCommonTrait::getFile(): Implicitly marking parameter $directory as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/cache/Traits/FilesystemCommonTrait.php on line 121

Deprecated: Symfony\Component\DependencyInjection\ContainerAwareTrait::setContainer(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/dependency-injection/ContainerAwareTrait.php on line 26

Deprecated: Symfony\Component\DependencyInjection\ContainerAwareInterface::setContainer(): Implicitly marking parameter $container as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/dependency-injection/ContainerAwareInterface.php on line 24

Deprecated: Symfony\Component\HttpFoundation\Response::setStatusCode(): Implicitly marking parameter $text as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/http-foundation/Response.php on line 445

Deprecated: Symfony\Component\HttpFoundation\Response::setExpires(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/http-foundation/Response.php on line 719

Deprecated: Symfony\Component\HttpFoundation\Response::setLastModified(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/http-foundation/Response.php on line 898

Deprecated: Symfony\Component\HttpFoundation\Response::setEtag(): Implicitly marking parameter $etag as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/http-foundation/Response.php on line 936

Deprecated: Symfony\Component\HttpFoundation\Response::isRedirect(): Implicitly marking parameter $location as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/symfonytest/vendor/symfony/http-foundation/Response.php on line 1236
Unable to write in the "cache" directory (/var/www/html/symfonytest/var/cache/dev). (500 Internal Server Error)

Symfony Exception

RuntimeException

HTTP 500 Internal Server Error

Unable to write in the "cache" directory (/var/www/html/symfonytest/var/cache/dev).

Exception

RuntimeException

require_once('/var/www/html/symfonytest/vendor/autoload_runtime.php') in /var/www/html/symfonytest/public/index.php (line 5)
  1. <?php
    
    use App\Kernel;
    
    require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
    
    return function (array $context) {
        return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
    };
    

Stack Trace

RuntimeException
RuntimeException:
Unable to write in the "cache" directory (/var/www/html/symfonytest/var/cache/dev).

  at /var/www/html/symfonytest/vendor/symfony/http-kernel/Kernel.php:629
  at Symfony\Component\HttpKernel\Kernel->buildContainer()
     (/var/www/html/symfonytest/vendor/symfony/http-kernel/Kernel.php:537)
  at Symfony\Component\HttpKernel\Kernel->initializeContainer()
     (/var/www/html/symfonytest/vendor/symfony/http-kernel/Kernel.php:767)
  at Symfony\Component\HttpKernel\Kernel->preBoot()
     (/var/www/html/symfonytest/vendor/symfony/http-kernel/Kernel.php:190)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (/var/www/html/symfonytest/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/var/www/html/symfonytest/vendor/autoload_runtime.php:29)
  at require_once('/var/www/html/symfonytest/vendor/autoload_runtime.php')
     (/var/www/html/symfonytest/public/index.php:5)