Magento Login Error after 1.3.0 upgrade fix

After upgrading a fresh out of box 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:


Usesecreykey.php is in the .diff file, and my original install before upgrade was, 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 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()

  • 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

  • Forrest

    Yep. Worked for me too. Thank you!

  • 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!

  • rodrigo | prood

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

  • Vijay Thummar

    Thanks a lot. works for me.

    Vijay Thummar

  • iPhone Developer

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