Any one can help will be highly appriciated, i'm running magento 2.2.6
Deprecated Functionality: The each() function is deprecated. This message will be suppressed on further calls in /home/cellbezc/public_html/vendor/colinmollenhour/cache-backend-file/File.php on line 81
-
This version isn't compatible with php7.2 guess it would be the issuePrathap Gunasekaran– Prathap Gunasekaran2019年03月20日 13:25:02 +00:00Commented Mar 20, 2019 at 13:25
2 Answers 2
thanks alot for all supporters..
i got fixed.. by changing the PHP CLI Version to 7.0 .
you can check it by your self in command line php -v the PHP CLI Version must be 7.0 too.
each() function is deprecated in php 7.2 so change this function to foreach()
In This File vendor/colinmollenhour/cache-backend-file/File.php line no :- 81
Change
while (list($name, $value) = each($options)) {
$this->setOption($name, $value);
}
To
foreach ($options as $name => $value){
$this->setOption($name, $value);
}
-
where you have to changes?2019年03月20日 13:38:00 +00:00Commented Mar 20, 2019 at 13:38
-
vendor/colinmollenhour/cache-backend-file/File.php line no :- 81Ronak Rathod– Ronak Rathod2019年03月20日 13:39:49 +00:00Commented Mar 20, 2019 at 13:39
-
Please mention on the post2019年03月20日 13:40:36 +00:00Commented Mar 20, 2019 at 13:40
-
1Check Updated Answer...!!!user68317– user683172019年03月20日 13:41:48 +00:00Commented Mar 20, 2019 at 13:41
-
NEVER EVER change files in vendorPhilipp Sander– Philipp Sander2019年03月20日 14:44:45 +00:00Commented Mar 20, 2019 at 14:44