Magento Forum

   
Magento upgrade issue from 1.3 to 1.7.02
 
sebastinvinoth
Jr. Member
 
Total Posts:  2
Joined:  2011-10-27
 

Hi

I try to upgrade my Magento tool to Magento 1.7.0.2, but it shows the error given below.

Please tell me how to resolve it.

***************************************************************************************************************************************************

Zend_Cache_Exception Object
(
[_previous:Zend_Exception:private] =>
[message:protected] => Invalid mode for clean() method
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => /home/goroundh/domains/handhflooring.biz/public_html/lib/Zend/Cache.php
[line:protected] => 209
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Zend/Cache/Backend/File.php
[line] => 532
[function] => throwException
[class] => Zend_Cache
[type] => ::
[args] => Array
(
[0] => Invalid mode for clean() method
)

)

[1] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Zend/Cache/Backend/File.php
[line] => 538
[function] => _clean
[class] => Zend_Cache_Backend_File
[type] => ->
[args] => Array
(
[0] => /home/goroundh/domains/handhflooring.biz/public_html/var/cache/mage--0/
[1] => matchingAnyTag
[2] => Array
(
[0] => 6f8_EAV_ATTRIBUTE
[1] => 6f8_EAV_ATTRIBUTE_950
)

)

)

[2] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Zend/Cache/Backend/File.php
[line] => 279
[function] => _clean
[class] => Zend_Cache_Backend_File
[type] => ->
[args] => Array
(
[0] => /home/goroundh/domains/handhflooring.biz/public_html/var/cache/
[1] => matchingAnyTag
[2] => Array
(
[0] => 6f8_EAV_ATTRIBUTE
[1] => 6f8_EAV_ATTRIBUTE_950
)

)

)

[3] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/lib/Zend/Cache/Core.php
[line] => 461
[function] => clean
[class] => Zend_Cache_Backend_File
[type] => ->
[args] => Array
(
[0] => matchingAnyTag
[1] => Array
(
[0] => 6f8_EAV_ATTRIBUTE
[1] => 6f8_EAV_ATTRIBUTE_950
)

)

)

[4] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/lib/Varien/Cache/Core.php
[line] => 100
[function] => clean
[class] => Zend_Cache_Core
[type] => ->
[args] => Array
(
[0] => matchingAnyTag
[1] => Array
(
[0] => 6f8_EAV_ATTRIBUTE
[1] => 6f8_EAV_ATTRIBUTE_950
)

)

)

[5] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Core/Model/Cache.php
[line] => 407
[function] => clean
[class] => Varien_Cache_Core
[type] => ->
[args] => Array
(
[0] => matchingAnyTag
[1] => Array
(
[0] => EAV_ATTRIBUTE
[1] => EAV_ATTRIBUTE_950
)

)

)

[6] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Core/Model/App.php
[line] => 1171
[function] => clean
[class] => Mage_Core_Model_Cache
[type] => ->
[args] => Array
(
[0] => Array
(
[0] => EAV_ATTRIBUTE
[1] => EAV_ATTRIBUTE_950
)

)

)

[7] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Core/Model/Abstract.php
[line] => 452
[function] => cleanCache
[class] => Mage_Core_Model_App
[type] => ->
[args] => Array
(
[0] => Array
(
[0] => EAV_ATTRIBUTE
[1] => EAV_ATTRIBUTE_950
)

)

)

[8] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Core/Model/Abstract.php
[line] => 464
[function] => cleanModelCache
[class] => Mage_Core_Model_Abstract
[type] => ->
[args] => Array
(
)

)

[9] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Eav/Model/Entity/Attribute.php
[line] => 218
[function] => _afterSave
[class] => Mage_Core_Model_Abstract
[type] => ->
[args] => Array
(
)

)

[10] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Eav/Model/Attribute.php
[line] => 90
[function] => _afterSave
[class] => Mage_Eav_Model_Entity_Attribute
[type] => ->
[args] => Array
(
)

)

[11] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Core/Model/Abstract.php
[line] => 319
[function] => _afterSave
[class] => Mage_Eav_Model_Attribute
[type] => ->
[args] => Array
(
)

)

[12] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Customer/sql/customer_setup/upgrade-1.6.1.0-1.6.2.0.php
[line] => 46
[function] => save
[class] => Mage_Core_Model_Abstract
[type] => ->
[args] => Array
(
)

)

[13] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 624
[args] => Array
(
[0] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Customer/sql/customer_setup/upgrade-1.6.1.0-1.6.2.0.php
)

[function] => include
)

[14] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 437
[function] => _modifyResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => upgrade
[1] => 1.6.1.0
[2] => 1.6.2.0.1
)

)

[15] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 320
[function] => _upgradeResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => 1.6.1.0
[1] => 1.6.2.0.1
)

)

[16] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 235
[function] => applyUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
)

)

[17] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Core/Model/App.php
[line] => 417
[function] => applyAllUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ::
[args] => Array
(
)

)

[18] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/code/core/Mage/Core/Model/App.php
[line] => 343
[function] => _initModules
[class] => Mage_Core_Model_App
[type] => ->
[args] => Array
(
)

)

[19] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/app/Mage.php
[line] => 683
[function] => run
[class] => Mage_Core_Model_App
[type] => ->
[args] => Array
(
[0] => Array
(
[scope_code] =>
[scope_type] => store
[options] => Array
(
)

)

)

)

[20] => Array
(
[file] => /home/goroundh/domains/handhflooring.biz/public_html/index.php
[line] => 87
[function] => run
[class] => Mage
[type] => ::
[args] => Array
(
[0] =>
[1] => store
)

)

)

[previous:Exception:private] =>
)

***********************************************************************************************************************************************

Thank you
Vinoth

 
Magento Community Magento Community
Magento Community
Magento Community
 
mhanda
Jr. Member
 
Total Posts:  1
Joined:  2012-11-27
 

I have same issue when trying to upgrade the database. I see there was no response and assume it was resolved or the guy decided to use another software. Most likely the latter, any idea on how it was resolved? Anybody?
I have spent about 10hrs trying to get this database upgraded with nothing but issues and failure.

So the resolution to this issue is to edit app/code/core/Zend/Cache/Backend/File.php

protected $_options = array(
‘cache_dir’ = null,
to

protected $_options = array(
‘cache_dir’ = tmp,

or whatever directory you are allowed to use as a place to store cache files.

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagenX
Enthusiast
 
Total Posts:  791
Joined:  2008-05-26
Dublin
 

all you have to do is just remove extra files, that left after upgrade....

http://svn.magentocommerce.com/source/branches/1.3/app/code/core/Zend/
http://svn.magentocommerce.com/source/branches/1.7/app/code/core/Zend/

remember - if you edit core files, do not complain about any problems here…

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