Magento Login Error after 1.3.0 upgrade fix

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. :x

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:

\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.

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 @@
+
+ */
+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;
+    }
+}

arrow forward Magento Login Error after 1.3.0 upgrade fix 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:


  • Pingback: Magento Front End Flat Catalogue | Edmonds Commerce Blog

  • http://www.acresgm.co.uk Louise

    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

  • http://www.saythissaythat.com Forrest

    Yep. Worked for me too. Thank you!

  • http://www.wlkgame.com wow gold

    :-)
    Wonderful article. I been looking for one on a similar note. I guess you always have something up your sleeve.

  • neel

    You are a genius !!! Saviour !!! out of words !!!!

  • Ian

    Champ! Saved me hours of debugging!

  • http://www.prood.com rodrigo | prood

    thanks a lot! it work’s great! ;)

  • Vijay Thummar

    Thanks a lot. works for me.

    Vijay Thummar

  • http://www.zaptechsolutions.com/mobile-application-development/iphone-mobile-application-development.php iPhone Developer

    above code it’s working for me and saved lot of time. Thank you for posting it.