Warning: array_keys() expects parameter 1 to be array, null given in /var/www/u0823452/data/www/pkyar.ru/src/AppBundle/Controller/SShopSiteController.php on line 160

Fatal error: Uncaught exception 'RuntimeException' with message 'Failed to start the session because headers have already been sent by "/var/www/u0823452/data/www/pkyar.ru/src/AppBundle/Controller/SShopSiteController.php" at line 160.' in /var/www/u0823452/data/www/pkyar.ru/app/cache/prod/classes.php:120 Stack trace: #0 /var/www/u0823452/data/www/pkyar.ru/app/cache/prod/classes.php(498): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() #1 /var/www/u0823452/data/www/pkyar.ru/vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/TokenStorage/SessionTokenStorage.php(78): Symfony\Component\HttpFoundation\Session\Session->start() #2 /var/www/u0823452/data/www/pkyar.ru/vendor/symfony/symfony/src/Symfony/Component/Security/Csrf/CsrfTokenManager.php(72): Symfony\Component\Security\Csrf\TokenStorage\SessionTokenStorage->hasToken('https-demand_pa...') #3 /var/www/u0823452/data/www/pkyar.ru/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Csrf/Type/FormTypeCsrfExtension.php(106): Symfony in /var/www/u0823452/data/www/pkyar.ru/src/AppBundle/Resources/views/Structure/base.html.twig on line 418