A
A
Andrey2019-09-05 08:34:02
symfony
Andrey, 2019-09-05 08:34:02

Symfony error Undefined variable: _COOKIE in initial bootstrap.php.cache. What to do?

We have php 7.1.5 , Symfony 2.7 (originally developed under php 5.3)
The project worked for a week and then crashed.

Notice: Undefined variable: _COOKIE in D:\dev\ntb\app\bootstrap.php.cache on line 493
Fatal error: Uncaught TypeError: Argument 4 passed to Symfony\Component\HttpFoundation\Request::createRequestFromFactory() must be of the type array, null given,

There is no access to apache. What are the considerations? How is it possible on this line
$request = self::createRequestFromFactory($_GET, $_POST, array(), $_COOKIE, $_FILES, $server);

Other projects on this server are working.
I guess that perhaps the server was rebooted and the cache broke. If it's the cache. How to turn it off completely?
Really need help!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question