cancel
Showing results for 
Search instead for 
Did you mean: 

Reindex brings Deprecated Function -> but running Mag2 on PHP7.0

Reindex brings Deprecated Function -> but running Mag2 on PHP7.0

I installed Magento 2.2.6 on our Server which is running PHP 7.0. But when I try to reindex over the CLI I get the following error.

 

Deprecated Functionality: The each() function is deprecated. This message will be suppressed on further calls in /is/htdocs/XXXXXXX/www/magento2/vendor/colinmollenhour/cache-backend-file/File.php on line 81

 

As far as I read this is only if you have PHP7.2 running, but I don't. Any idea what this can be?

2 REPLIES 2

Re: Reindex brings Deprecated Function -> but running Mag2 on PHP7.0

shepstar,

 

You should changed the PHP version to PHP 7.1

 

look: 

https://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html

Re: Reindex brings Deprecated Function -> but running Mag2 on PHP7.0

Hi @Shepstar

 

Yes - that is correct , this is only when you have PHP version 7.2 but here it looks like your PHP version is not compatible with the Magento 2 you have installed.

 

As you have installed magento 2.2.6 - your PHP version required like PHP 7.0.13 - PHP 7.0.X or i would suggest you to use PHP Version 7.1.X

 

For more details refer this link - https://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution