ZF-9193: "Invalid mode for clean() method";

Description

I installed Nuance Regional Free Shipping Module onto Magento and now I can not login to magento do to this error.

a:5:{i:0;s:31:"Invalid mode for clean() method";i:1;s:2552:"#0 C:\xampp\htdocs\iphones\app\code\core\Zend\Cache\Backend\File.php(532): Zend_Cache::throwException('Invalid mode fo...')

1 C:\xampp\htdocs\iphones\app\code\core\Zend\Cache\Backend\File.php(538): Zend_Cache_Backend_File->_clean('C:\xampp\htdocs...', 'matchingAnyTag', Array)

2 C:\xampp\htdocs\iphones\app\code\core\Zend\Cache\Backend\File.php(279): Zend_Cache_Backend_File->_clean('C:\xampp\htdocs...', 'matchingAnyTag', Array)

3 C:\xampp\htdocs\iphones\lib\Zend\Cache\Core.php(452): Zend_Cache_Backend_File->clean('matchingAnyTag', Array)

4 C:\xampp\htdocs\iphones\lib\Varien\Cache\Core.php(100): Zend_Cache_Core->clean('matchingAnyTag', Array)

5 C:\xampp\htdocs\iphones\app\code\core\Mage\Core\Model\Cache.php(374): Varien_Cache_Core->clean('matchingAnyTag', Array)

6 C:\xampp\htdocs\iphones\app\code\core\Mage\Core\Model\App.php(1088): Mage_Core_Model_Cache->clean(Array)

7 C:\xampp\htdocs\iphones\app\code\core\Mage\Adminhtml\Model\Url.php(155): Mage_Core_Model_App->cleanCache(Array)

8 C:\xampp\htdocs\iphones\app\code\core\Mage\Admin\Model\Session.php(75): Mage_Adminhtml_Model_Url->renewSecretUrls()

9 C:\xampp\htdocs\iphones\app\code\core\Mage\Admin\Model\Observer.php(55): Mage_Admin_Model_Session->login('admin', 'wrubuP7U', Object(Mage_Core_Controller_Request_Http))

10 C:\xampp\htdocs\iphones\app\code\core\Mage\Core\Model\App.php(1207): Mage_Admin_Model_Observer->actionPreDispatchAdmin(Object(Varien_Event_Observer))

11 C:\xampp\htdocs\iphones\app\Mage.php(416): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)

12 C:\xampp\htdocs\iphones\app\code\core\Mage\Core\Controller\Varien\Action.php(497): Mage::dispatchEvent('controller_acti...', Array)

13 C:\xampp\htdocs\iphones\app\code\core\Mage\Adminhtml\Controller\Action.php(130): Mage_Core_Controller_Varien_Action->preDispatch()

14 C:\xampp\htdocs\iphones\app\code\core\Mage\Core\Controller\Varien\Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch()

15 C:\xampp\htdocs\iphones\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')

16 C:\xampp\htdocs\iphones\app\code\core\Mage\Core\Controller\Varien\Front.php(177): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))

17 C:\xampp\htdocs\iphones\app\code\core\Mage\Core\Model\App.php(304): Mage_Core_Controller_Varien_Front->dispatch()

18 C:\xampp\htdocs\iphones\app\Mage.php(596): Mage_Core_Model_App->run(Array)

19 C:\xampp\htdocs\iphones\index.php(65): Mage::run()

20 {main}";s:3:"url";s:6:"/admin";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}

Comments

File from error

So from the link I should take the top code, and add ANY to the name. Correct?

This was the only one that had the name "Matching tag".

case Zend_Cache::CLEANING_MODE_MATCHING_TAG: $matching = (bool)array_intersect($tags, $metadatas['tags']); // $matching = true; // foreach ($tags as $tag) { // if (!in_array($tag, $metadatas['tags'])) { // $matching = false; // break; // } // } if ($matching) { $result = ($result) && ($this->remove($id)); } break;

Copy and add ANY

case Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG: $matching = (bool)array_intersect($tags, $metadatas['tags']); // $matching = true; // foreach ($tags as $tag) { // if (!in_array($tag, $metadatas['tags'])) { // $matching = false; // break; // } // } if ($matching) { $result = ($result) && ($this->remove($id)); } break;

I think the Zend_Cache that You use is 1.6.x or more previous version.

I will be happy if You would try to reproduce with latest version.

Server has been restored from s bsckup, so I can't test it for you. Thanks

The cleaning mode (Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG = 'matchingAnyTag') wasn't available within zf v1.6.x.

This sounds me like a version mix of zf. Please check your installation and/or upgrade to the current stable release.