After upgrading a fresh out of box 1.2.1.2 and upgrading via MagentoConnect I noticed an error others have reported as well.
Invalid method Mage_Adminhtml_Model_Url::useSecretKey(Array)
It may merely be a permission issue as I didn’t use SSH to perform the upgrade with PEAR, to avoid permission issues.
Here’s what fixed it for me, for some reason Usesecretkey.php was not created during an upgrade through MagentoConnect, and Url.php was not updated…
Download the full 1.3.0 zip or tarball and copy Usessecretkey.php and overwriting Url.php:
1 2 | \app\code\core\Mage\Adminhtml\Model\System\Config\Backend\Admin\Usesecretkey.php \app\code\core\Mage\Adminhtml\Model\Url.php |
Usesecreykey.php is in the .diff file, and my original install before upgrade was 1.2.1.2, the file didn’t exist before: Note the revision number, and all +’s in the .diff file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | Index: app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Admin/Usesecretkey.php =================================================================== --- app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Admin/Usesecretkey.php (revision 0) +++ app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Admin/Usesecretkey.php (revision 37005) @@ -0,0 +1,42 @@ +<?php +/** + * Magento + * + * NOTICE OF LICENSE + * + * This source file is subject to the Open Software License (OSL 3.0) + * that is bundled with this package in the file LICENSE.txt. + * It is also available through the world-wide-web at this URL: + * http://opensource.org/licenses/osl-3.0.php + * If you did not receive a copy of the license and are unable to + * obtain it through the world-wide-web, please send an email + * to license@magentocommerce.com so we can send you a copy immediately. + * + * DISCLAIMER + * + * Do not edit or add to this file if you wish to upgrade Magento to newer + * versions in the future. If you wish to customize Magento for your + * needs please refer to http://www.magentocommerce.com for more information. + * + * @category Mage + * @package Mage_Adminhtml + * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) + */ + + +/** + * Adminhtml backend model for "Use secret key in Urls" option + * + * @category Mage + * @package Mage_Adminhtml + * @author Magento Core Team <core@magentocommerce.com> + */ +class Mage_Adminhtml_Model_System_Config_Backend_Admin_Usesecretkey extends Mage_Core_Model_Config_Data +{ + protected function _afterSave() + { + Mage::getSingleton('adminhtml/url')->renewSecretUrls(); + return $this; + } +} |
Magento – Login error after upgrade – Magento 1.3.0 Upgrade Issues – eCommerce Software for Growth.
There may be some other inconsistencies but at the moment this is the only issue I’ve encountered with 1.3.0 after an upgrade, feel free to comment and I make no warranty for the above, its merely a fix that worked for me, and isn’t official by any means.
Possibly Related Posts:
- Magento Commerce Error Reporting Tip
- Eclipse + ZendStudio + ZendServer + Android SDK = Awesome IDE
- Magento: Paypal Standard IPN Double Totals Bug 1.3.2.3 + fix
- iPhone Magento theme compatible with Android
- Magento Tutorial Video: Display Product Images in Blocks and Pages
Pingback: Magento Front End Flat Catalogue | Edmonds Commerce Blog
Thanks for your help, this worked and saved us loads of time! The site isn’t ready to go live yet…was really beginning to think that I would have to start from scratch! Keep up the good work
Yep. Worked for me too. Thank you!
Wonderful article. I been looking for one on a similar note. I guess you always have something up your sleeve.
You are a genius !!! Saviour !!! out of words !!!!
Champ! Saved me hours of debugging!
thanks a lot! it work’s great!
Thanks a lot. works for me.
Vijay Thummar
above code it’s working for me and saved lot of time. Thank you for posting it.