Magento Forum

   
Error after 1.5.1 -> 1.6.1
 
f-tech
Jr. Member
 
Total Posts:  3
Joined:  2009-11-30
 

after upgrading magento via the command line, and running all the sql upgrades, i get this error:

Fatal error: Call to undefined method Mage_Core_Model_App::getIsCacheLocked() in /####pathtosite####/http/app/code/core/Mage/Core/Model/Resource.php on line 112

I can bypass it via this following code:

if ($connection{
           
#fix if (Mage::app()->getIsCacheLocked()) {
           #fix    $this->_skippedConnections[$name] = true;
           #fix } else {
               
$connection->setCacheAdapter(Mage::app()->getCache());
           
#fix }
 
}

and then the site runs fine, but obviously i\\\’m bypassing a vital function here.

Any ideas ?

FYI, i do not have Mage Test installed

 
Magento Community Magento Community
Magento Community
Magento Community
 
markoshust
Sr. Member
 
Avatar
Total Posts:  129
Joined:  2007-09-05
Cleveland, OH
 

Really odd, I’m getting the same error

 
Magento Community Magento Community
Magento Community
Magento Community
 
markoshust
Sr. Member
 
Avatar
Total Posts:  129
Joined:  2007-09-05
Cleveland, OH
 

Check to make sure you don’t have any files in app/code/local/Mage. Very possible that you have changes to app/code/local/Mage/Core/Model/App.php and are missing the updates for 1.6 in that file.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top