The each function is deprecated. This message will be suppressed on further calls WordPress Magento
The each function is deprecated. This message will be suppressed on further calls WordPress Magento.
The reason why we did this tutorial is that we recieved two questions from our subscribers one said
please solved this error… Deprecated: The each() function is deprecated. This message will be suppressed on further calls in C:\wamp64\www\Magento2\vendor\colinmollenhour\cache-backend-file\File.php on line 81
Then the second one asked Hendrik Silaban 1 month ago hello my friends, can you help me about this error Message: The each() function is deprecated. This message will be suppressed on further calls Filename: include/style.cls.php Line Number: 790 this is line number 790
For fpdi.php there is a code
while (list($k, $v) = each($value[1])) {
$this->_straightOut($k . ' ');
$this->_writeValue($v);
}
Replace it with the below codes
foreach($value[1] as $k=>$v) {
$this->_straightOut($k . ' ');
$this->_writeValue($v);
}