- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how to fix each() deprecated function in magento 2.2.3?
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in vendor\colinmollenhour\cache-backend-file\File.php on line 81
// Don't use parent constructor while (list($name, $value) = each($options)) { $this->setOption($name, $value); }
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how to fix each() deprecated function in magento 2.2.3?
which version of php are you using?
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how to fix each() deprecated function in magento 2.2.3?
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in vendor\colinmollenhour\cache-backend-file\File.php on line 81
// Don't use parent constructor while (list($name, $value) = each($options)) { $this->setOption($name, $value); }
PHP version is 7.0.30.1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how to fix each() deprecated function in magento 2.2.3?
Hello @Ashish Kacha
Please check the post URL: https://community.magento.com/t5/Installing-Magento-2-x/Deprecated-The-each-function-is-deprecated/t...
This post has solution for your problem.
--
If you've found my answer useful, please give "Kudos" or "Accept as Solution".
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how to fix each() deprecated function in magento 2.2.3?
Magento 2.2.3 is not supported with PHP 7.2.x. Please change your PHP version to PHP 7.1.x. Check out the Magento 2.2.x technology stack requirements:
https://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html
Also, if you want to try Magento 2 with PHP 7.2.x, then you'll have to wait for the stable version of Magento 2.3.x or use Magento 2.3 Alpha version right now. Please have a look at the Magento 2.3.x technology stack requirements:
https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html
Fayyaz Khattak,
Magento Community Manager,
Cloudways.
Twitter: https://twitter.com/fay_khattak
LinkedIn: https://pk.linkedin.com/in/muhammad-fayyaz-uddin-khattak-2a2b34110
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how to fix each() deprecated function in magento 2.2.3?
This happens on php 7.0.29