Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/radar/data/www/radar-survey.ru/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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/A20-45/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.         }
  1.      *
  2.      * @return \Radar\EventSubscriber\SurveyEventSubscriber
  3.      */
  4.     protected function getSurveyEventSubscriberService()
  5.     {
  6.         return $this->services['Radar\\EventSubscriber\\SurveyEventSubscriber'] = new \Radar\EventSubscriber\SurveyEventSubscriber(($this->services['Radar\\BaseVarMaker\\BaseVarMaker'] ?? $this->getBaseVarMakerService()), ($this->services['Radar\\Flash\\FlashBag'] ?? ($this->services['Radar\\Flash\\FlashBag'] = new \Radar\Flash\FlashBag('A20-45''survey'))), ($this->services['Monolog\\Logger'] ?? $this->getLoggerService()), '/var/www/radar/data/www/radar-survey.ru/A20-45/json_question_schema''dev');
  7.     }
  8.     /**
  9.      * Gets the public 'Radar\EventSubscriber\ToggleEnvSubscriber' shared autowired service.
  10.      *
ProjectSurveyContainer->getSurveyEventSubscriberService() in /var/www/radar/data/www/radar-survey.ru/A20-45/tmp/dumpedContainer_survey.php (line 495)
  1.         }, => 'onKernelException']);
  2.         $instance->addListener('system.add_vars_to_base', [=> function () {
  3.             return ($this->services['Radar\\EventSubscriber\\SurveyEventSubscriber'] ?? $this->getSurveyEventSubscriberService());
  4.         }, => 'addVarsToBase']);
  5.         $instance->addListener('system.reset.cache', [=> function () {
  6.             return ($this->services['Radar\\EventSubscriber\\SurveyEventSubscriber'] ?? $this->getSurveyEventSubscriberService());
  7.         }, => 'resetCache']);
  8.         $instance->addListener('system.on.updateDataset', [=> function () {
  9.             return ($this->services['Radar\\EventSubscriber\\SurveyEventSubscriber'] ?? $this->getSurveyEventSubscriberService());
  10.         }, => 'addVarsToBase'], 200);
  11.         $instance->addListener('system.on.updateDataset', [=> function () {
  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/A20-45/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'));
  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/A20-45/init.php') in /var/www/radar/data/www/radar-survey.ru/A20-45/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/A20-45/src/Radar/Utils/SessionUtils.php:23
  at Radar\Utils\SessionUtils::init()
     (/var/www/radar/data/www/radar-survey.ru/A20-45/src/Radar/Flash/FlashBag.php:39)
  at Radar\Flash\FlashBag->__construct()
     (/var/www/radar/data/www/radar-survey.ru/A20-45/tmp/dumpedContainer_survey.php:296)
  at ProjectSurveyContainer->getSurveyEventSubscriberService()
     (/var/www/radar/data/www/radar-survey.ru/A20-45/tmp/dumpedContainer_survey.php:495)
  at ProjectSurveyContainer->{closure}()
     (/var/www/radar/data/www/radar-survey.ru/A20-45/vendor/symfony/event-dispatcher/EventDispatcher.php:267)
  at Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()
     (/var/www/radar/data/www/radar-survey.ru/A20-45/vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (/var/www/radar/data/www/radar-survey.ru/A20-45/vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (/var/www/radar/data/www/radar-survey.ru/A20-45/init.php:9)
  at require('/var/www/radar/data/www/radar-survey.ru/A20-45/init.php')
     (/var/www/radar/data/www/radar-survey.ru/A20-45/index.php:47)