PHP Deprecated Function – How to Solve Deprecated: __autoload() Issue magento-1.9PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in C:\wamp64\www\magepro\app\code\core\Mage\Core\functions.php on line My php version : 7.1.29 Best Answer Can you please try to change __autoload function to spl_autoload_register after clear cache and remove var directory /app/code/core/Mage/Core/functions.php on line 60 source Let me know issue resolved with it or not ? Related SolutionsMagento – Fix Fatal Error: Cannot Override Final Method Mage_Core_Model_Abstract::clearInstance() I think I fixed the issue by updating Magento to 1.8.0.1 and editing app/code/core/Mage/Catalog/Block/Navigation.php line 254 from $childrenCount = $children->count(); to $childrenCount = count($children); I can access the main page without any error message now! Magento – The each() function is deprecated. Magento 2 , php 7.2 each() function is deprecated in php 7.2 so change this function to foreach() Change while (list($name, $value) = each($options)) { $this->setOption($name, $value); } To foreach ($options as $name => $value) { $this->setOption($name, $value); } Related Topic
Best Answer
Can you please try to change __autoload function to spl_autoload_register after clear cache and remove var directory
source
Let me know issue resolved with it or not ?