Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/monolog/monolog/src/Monolog/Logger.php on line 324
Warning: session_name(): Session name cannot be changed after headers have already been sent (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Warning: session_name(): Session name cannot be changed after headers have already been sent

Exception

ErrorException

  1.      */
  2.     public static function init(string $nameint $cookieLifetime 72576000): bool
  3.     {
  4.         $proceeded false;
  5.         if (session_status() === PHP_SESSION_NONE) {
  6.             session_name($name);
  7.             session_set_cookie_params($cookieLifetime);
  8.             ini_set('session.gc_maxlifetime'$cookieLifetime);
  9.             ini_set('session.cookie_lifetime'$cookieLifetime);
  10.             session_start();
  1.         if (session_status() === PHP_SESSION_DISABLED) {
  2.             $message .= 'because its disabled. If you want to use flash mesages, enable sessions first';
  3.             $sessionAvailable false;
  4.         } elseif (session_status() === PHP_SESSION_NONE) {
  5.             $sessionName "{$projectName}_$context";
  6.             SessionUtils::init($sessionName);
  7.         }
  8.         if (!$sessionAvailable) {
  9.             throw new MissingDataException($message);
  10.         }
FlashBag->__construct()
  1.                 }
  2.             }
  3.         } else {
  4.             $r = new \ReflectionClass($parameterBag->resolveValue($definition->getClass()));
  5.             $service null === $r->getConstructor() ? $r->newInstance() : $r->newInstanceArgs(array_values($arguments));
  6.             if (!$definition->isDeprecated() && strpos($r->getDocComment(), "\n * @deprecated ")) {
  7.                 trigger_deprecation('''''The "%s" service relies on the deprecated "%s" class. It should either be deprecated or its implementation upgraded.'$id$r->name);
  8.             }
  9.         }
  1.         if ($isConstructorArgument) {
  2.             $this->loading[$id] = true;
  3.         }
  4.         try {
  5.             return $this->createService($definition$inlineServices$isConstructorArgument$id);
  6.         } finally {
  7.             if ($isConstructorArgument) {
  8.                 unset($this->loading[$id]);
  9.             }
  10.         }
  1.                     $types[$k] = $v instanceof TypedReference $v->getType() : '?';
  2.                 }
  3.             }
  4.             $value = new ServiceLocator(\Closure::fromCallable([$this'resolveServices']), $refs$types);
  5.         } elseif ($value instanceof Reference) {
  6.             $value $this->doGet((string) $value$value->getInvalidBehavior(), $inlineServices$isConstructorArgument);
  7.         } elseif ($value instanceof Definition) {
  8.             $value $this->createService($value$inlineServices$isConstructorArgument);
  9.         } elseif ($value instanceof Parameter) {
  10.             $value $this->getParameter((string) $value);
  11.         } elseif ($value instanceof Expression) {
  1.     private function doResolveServices($value, array &$inlineServices = [], bool $isConstructorArgument false)
  2.     {
  3.         if (\is_array($value)) {
  4.             foreach ($value as $k => $v) {
  5.                 $value[$k] = $this->doResolveServices($v$inlineServices$isConstructorArgument);
  6.             }
  7.         } elseif ($value instanceof ServiceClosureArgument) {
  8.             $reference $value->getValues()[0];
  9.             $value = function () use ($reference) {
  10.                 return $this->resolveServices($reference);
  1.         if (null !== $definition->getFile()) {
  2.             require_once $parameterBag->resolveValue($definition->getFile());
  3.         }
  4.         $arguments $this->doResolveServices($parameterBag->unescapeValue($parameterBag->resolveValue($definition->getArguments())), $inlineServices$isConstructorArgument);
  5.         if (null !== $factory $definition->getFactory()) {
  6.             if (\is_array($factory)) {
  7.                 $factory = [$this->doResolveServices($parameterBag->resolveValue($factory[0]), $inlineServices$isConstructorArgument), $factory[1]];
  8.             } elseif (!\is_string($factory)) {
  1.         if ($isConstructorArgument) {
  2.             $this->loading[$id] = true;
  3.         }
  4.         try {
  5.             return $this->createService($definition$inlineServices$isConstructorArgument$id);
  6.         } finally {
  7.             if ($isConstructorArgument) {
  8.                 unset($this->loading[$id]);
  9.             }
  10.         }
  1.                     $types[$k] = $v instanceof TypedReference $v->getType() : '?';
  2.                 }
  3.             }
  4.             $value = new ServiceLocator(\Closure::fromCallable([$this'resolveServices']), $refs$types);
  5.         } elseif ($value instanceof Reference) {
  6.             $value $this->doGet((string) $value$value->getInvalidBehavior(), $inlineServices$isConstructorArgument);
  7.         } elseif ($value instanceof Definition) {
  8.             $value $this->createService($value$inlineServices$isConstructorArgument);
  9.         } elseif ($value instanceof Parameter) {
  10.             $value $this->getParameter((string) $value);
  11.         } elseif ($value instanceof Expression) {
  1.      * @return mixed The same value with all service references replaced by
  2.      *               the real service instances and all expressions evaluated
  3.      */
  4.     public function resolveServices($value)
  5.     {
  6.         return $this->doResolveServices($value);
  7.     }
  8.     private function doResolveServices($value, array &$inlineServices = [], bool $isConstructorArgument false)
  9.     {
  10.         if (\is_array($value)) {
  1.                 $value[$k] = $this->doResolveServices($v$inlineServices$isConstructorArgument);
  2.             }
  3.         } elseif ($value instanceof ServiceClosureArgument) {
  4.             $reference $value->getValues()[0];
  5.             $value = function () use ($reference) {
  6.                 return $this->resolveServices($reference);
  7.             };
  8.         } elseif ($value instanceof IteratorArgument) {
  9.             $value = new RewindableGenerator(function () use ($value, &$inlineServices) {
  10.                 foreach ($value->getValues() as $k => $v) {
  11.                     foreach (self::getServiceConditionals($v) as $s) {
  1.             foreach ($listeners as &$listener) {
  2.                 $closure = &$this->optimized[$eventName][];
  3.                 if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && >= \count($listener)) {
  4.                     $closure = static function (...$args) use (&$listener, &$closure) {
  5.                         if ($listener[0] instanceof \Closure) {
  6.                             $listener[0] = $listener[0]();
  7.                             $listener[1] = $listener[1] ?? '__invoke';
  8.                         }
  9.                         ($closure \Closure::fromCallable($listener))(...$args);
  10.                     };
  11.                 } else {
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
EventDispatcher->dispatch() in /var/www/radar/data/www/radar-survey.ru/Q21-52/init.php (line 9)
  1. use Radar\Event\ResetCacheEvent;
  2. /* Always reset cache if env is dev */
  3. if ($container->getParameter('project.env') === 'dev') {
  4.     $resetCacheEvent = new ResetCacheEvent($container->get('fileCache'), $container->get('projectCache'), $container->get('fileNameToQuestionNameBag'));
  5.     $dispatcher->dispatch($resetCacheEvent$resetCacheEvent::NAME);
  6.     $resetTwigCacheEvent = new ForceResetTwigCacheEvent($container->getParameter('twig.path_to_compilation_cache'));
  7.     $dispatcher->dispatch($resetTwigCacheEvent$resetTwigCacheEvent::NAME);
  8. }
require('/var/www/radar/data/www/radar-survey.ru/Q21-52/init.php') in /var/www/radar/data/www/radar-survey.ru/Q21-52/index.php (line 47)
  1.     $errorHadler->setDefaultLogger($logger);
  2.     ErrorHandler::register($errorHadler);
  3. }
  4. /* End error handling */
  5. require 'init.php';
  6. $matcher = new UrlMatcher($routes, new RequestContext());
  7. $dispatcher->addSubscriber(new RouterListener($matcher, new RequestStack()));
  8. $kernel $container->get('http_kernel');

Stack Trace

ErrorException

ErrorException:
Warning: session_name(): Session name cannot be changed after headers have already been sent

  at /var/www/radar/data/www/radar-survey.ru/Q21-52/src/Radar/Utils/SessionUtils.php:23
  at Radar\Utils\SessionUtils::init()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/src/Radar/Flash/FlashBag.php:39)
  at Radar\Flash\FlashBag->__construct()
  at ReflectionClass->newInstanceArgs()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/dependency-injection/ContainerBuilder.php:1091)
  at Symfony\Component\DependencyInjection\ContainerBuilder->createService()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/dependency-injection/ContainerBuilder.php:597)
  at Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/dependency-injection/ContainerBuilder.php:1214)
  at Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/dependency-injection/ContainerBuilder.php:1162)
  at Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/dependency-injection/ContainerBuilder.php:1064)
  at Symfony\Component\DependencyInjection\ContainerBuilder->createService()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/dependency-injection/ContainerBuilder.php:597)
  at Symfony\Component\DependencyInjection\ContainerBuilder->doGet()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/dependency-injection/ContainerBuilder.php:1214)
  at Symfony\Component\DependencyInjection\ContainerBuilder->doResolveServices()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/dependency-injection/ContainerBuilder.php:1155)
  at Symfony\Component\DependencyInjection\ContainerBuilder->resolveServices()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/dependency-injection/ContainerBuilder.php:1167)
  at Symfony\Component\DependencyInjection\ContainerBuilder->Symfony\Component\DependencyInjection\{closure}()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/event-dispatcher/EventDispatcher.php:267)
  at Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/init.php:9)
  at require('/var/www/radar/data/www/radar-survey.ru/Q21-52/init.php')
     (/var/www/radar/data/www/radar-survey.ru/Q21-52/index.php:47)