Symfony Exception

EnvNotFoundException

HTTP 500 Internal Server Error

Environment variable not found: "APP_SECRET".

Exception

Symfony\Component\DependencyInjection\Exception\ EnvNotFoundException

  1.                 }
  2.             }
  3.             if (false === $env || null === $env) {
  4.                 if (!$this->container->hasParameter("env($name)")) {
  5.                     throw new EnvNotFoundException(sprintf('Environment variable not found: "%s".'$name));
  6.                 }
  7.                 $env $this->container->getParameter("env($name)");
  8.             }
  9.         }
  1.             $prefix '';
  2.         }
  3.         $this->resolving[$envName] = true;
  4.         try {
  5.             return $this->envCache[$name] = $processor->getEnv($prefix$localName$this->getEnv);
  6.         } finally {
  7.             unset($this->resolving[$envName]);
  8.         }
  9.     }
  1.             case 'directories'$value = [
  2.                 'config' => (\dirname(__DIR__4).'/lvconfig'),
  3.                 'data' => (\dirname(__DIR__4).'/data'),
  4.                 'cache' => $this->targetDir.'',
  5.             ]; break;
  6.             case 'kernel.secret'$value $this->getEnv('APP_SECRET'); break;
  7.             case 'debug.container.dump'$value = ($this->targetDir.''.'/App_KernelDevDebugContainer.xml'); break;
  8.             case 'serializer.mapping.cache.file'$value = ($this->targetDir.''.'/serialization.php'); break;
  9.             case 'validator.mapping.cache.file'$value = ($this->targetDir.''.'/validation.php'); break;
  10.             case 'profiler.storage.dsn'$value = ('file:'.$this->targetDir.''.'/profiler'); break;
  11.             case 'qipsius_tcpdf.tcpdf'$value = [
  1.     public function getParameterBag(): ParameterBagInterface
  2.     {
  3.         if (null === $this->parameterBag) {
  4.             $parameters $this->parameters;
  5.             foreach ($this->loadedDynamicParameters as $name => $loaded) {
  6.                 $parameters[$name] = $loaded $this->dynamicParameters[$name] : $this->getDynamicParameter($name);
  7.             }
  8.             foreach ($this->buildParameters as $name => $value) {
  9.                 $parameters[$name] = $value;
  10.             }
  11.             $this->parameterBag = new FrozenParameterBag($parameters);
  1.             {
  2.                 $constKey strtoupper($k);
  3.                 if (!defined($constKey))
  4.                 {
  5.                     $value $this->container->getParameterBag()->resolveValue($v);
  6.                     // All K_ constants are required
  7.                     if (=== stripos($k'k_'))
  8.                     {
  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.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/data/sites/web/bart-francisbe/www/vendor/autoload_runtime.php') in /data/sites/web/bart-francisbe/www/index.php (line 14)
  1.  * @version    10.2.0
  2.  */
  3. use App\Kernel;
  4. require_once __DIR__.'/vendor/autoload_runtime.php';
  5. if(!isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && isset($_SERVER['HTTP_X_HCL_FORWARDED_PROTO'])) {
  6.     $_SERVER['HTTP_X_FORWARDED_PROTO'] = $_SERVER['HTTP_X_HCL_FORWARDED_PROTO'];
  7. }
  8. if(!isset($_SERVER['HTTP_X_FORWARDED_PORT']) && isset($_SERVER['HTTP_X_HCL_FORWARDED_PORT'])) {

Stack Trace

EnvNotFoundException
Symfony\Component\DependencyInjection\Exception\EnvNotFoundException:
Environment variable not found: "APP_SECRET".

  at /data/sites/web/bart-francisbe/www/vendor/symfony/dependency-injection/EnvVarProcessor.php:178
  at Symfony\Component\DependencyInjection\EnvVarProcessor->getEnv('string', 'APP_SECRET', object(Closure))
     (/data/sites/web/bart-francisbe/www/vendor/symfony/dependency-injection/Container.php:401)
  at Symfony\Component\DependencyInjection\Container->getEnv('APP_SECRET')
     (/data/sites/web/bart-francisbe/www/var/cache/dev/ContainerC6gIw0D/App_KernelDevDebugContainer.php:5166)
  at ContainerC6gIw0D\App_KernelDevDebugContainer->getDynamicParameter('kernel.secret')
     (/data/sites/web/bart-francisbe/www/var/cache/dev/ContainerC6gIw0D/App_KernelDevDebugContainer.php:5128)
  at ContainerC6gIw0D\App_KernelDevDebugContainer->getParameterBag()
     (/data/sites/web/bart-francisbe/www/vendor/qipsius/tcpdf-bundle/QipsiusTCPDFBundle.php:36)
  at Qipsius\TCPDFBundle\QipsiusTCPDFBundle->boot()
     (/data/sites/web/bart-francisbe/www/vendor/symfony/http-kernel/Kernel.php:133)
  at Symfony\Component\HttpKernel\Kernel->boot()
     (/data/sites/web/bart-francisbe/www/vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (/data/sites/web/bart-francisbe/www/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (/data/sites/web/bart-francisbe/www/vendor/autoload_runtime.php:35)
  at require_once('/data/sites/web/bart-francisbe/www/vendor/autoload_runtime.php')
     (/data/sites/web/bart-francisbe/www/index.php:14)