Does anyone know why this kind of messages appear? It seems like my Magento installation does not fully load all Zend classes, although they are there on a proper place with proper file permissions.
If I try removing the whole project and uploading it again, it happens again, only with different Zend class.
Does anyone know how to debug these kind of errors?
SOLVED: by clearing the APC cache on the server. For whatever the reason, it loaded the old instance of Magento in cache and only partially the new ones, therefore causing the buggy behaviour.
Thanks once again to Alan and mbalparda for their responses.
Best Answer
Magento's autoload should convert the class
into an include path of
and then look for that class in the following folders.
In a standard install, it loads from
lib/Zend/Cache.php
. So, the first thing I'd do is make sure thelib/Zend/Cache.php
is there, and there is not a file at the other locations. If there is a file at the other location(s), take a look inside and make sure a class namedZend_Cache
is actually defined.If the file's there, then it sounds like it's not being loaded correctly. The next debugging step I'd take is pinpointing the place in
app/code/core/Mage/Core/Model/Cache.php
where Magento's trying to useZend_Cache
, and make sure the PHP include paths have been setup correctly. Use somevar_dump
debugging like this.You should see output that looks something like this
If
lib
and the code pools (core
,community
,local
) aren't in there, it meant you may be dealing with a modifiedapp/Mage.php
file, or you may be running in Magento compiled mode without having compiled classes (doubtful in your case since the error comes fromapp/code/core...
, but you never know)Finally, if the paths were setup correctly, I'd look at the autoloader and add some debugging.
Look for the path the autoloader tries to create for
Zend_Cache
, and then figure out why it can't load the class.Hope that helps!