AOEpeople / Aoe_ClassPathCache

Class path cache for Magento autoloader
http://www.fabrizio-branca.de/magento-class-path-cache.html
Open Software License 3.0
49 stars 16 forks source link

Fix Fatal Error 'Argument 1 passed to Varien_Autoload::setCache() ...' #24

Closed nfabre closed 9 years ago

nfabre commented 9 years ago

I had this issue in Production "Argument 1 passed to Varien_Autoload::setCache() must be of the type array, boolean given, called in app/code/local/Varien/Autoload.php on line 175 and defined"

It's when the file classPathCache.php is corrupted. (Unknow reason) But the way to resolve the issue is to test the result of the unserialize function. If it's false we pass array() to setCache()