2

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

enter image description here

  • This version isn't compatible with php7.2 guess it would be the issue – Prathap Gunasekaran Mar 20 at 13:25
1

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? – Amit Bera Mar 20 at 13:38
  • vendor/colinmollenhour/cache-backend-file/File.php line no :- 81 – Rk Rathod Mar 20 at 13:39
  • Please mention on the post – Amit Bera Mar 20 at 13:40
  • 1
    Check Updated Answer...!!! – Mitrajsinh vaghela Mar 20 at 13:41
  • NEVER EVER change files in vendor – Philipp Sander Mar 20 at 14:44
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.