skip to Main Content

I’m getting this as an error after installing magento via bitnami xammp.

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in C:xamppappsmagentohtdocsvendorcolinmollenhourcache-backend-fileFile.php on line 81
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 1638419606

What should I do now?

3

Answers


  1. This is probably because you use php 7.2 which Magento doesn’t support currently, even in 2.3 pre-release. You can downgrade to php 7.1.X and use Magento 2.2.X or downgrade to php 7.0.7.X and use Magento 2.1.X.

    More information about Magento versions and its php support here.

    Login or Signup to reply.
  2. i fixed this error by changing my php version in wamp down from 7.2 to 7.1 and the error went away and now i’m able to install.

    Login or Signup to reply.
  3. Change

    while (list($name, $value) = each($options)) {
       $this->setOption($name, $value);
    }
    

    To

    foreach ($options as $name => $value){
       $this->setOption($name, $value);
    }
    

    Reference in: https://community.magento.com/t5/Installing-Magento-2-x/Deprecated-The-each-function-is-deprecated/td-p/80126

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search