I'm having an issue in $APPHOME/downloader/template/login.phtml where <?php echo $this->getFormKey() ?> is failing silently, and the rest of the page is refusing to render. Of course this is making it impossible to log in to the Magento Connect Manager, which is where I need to be adding an extension or two.

Here's a screenshot of the broken Connection Manager login page: Broken Connect Manager Admin Login

Of course this isn't too helpful without where the code is broken: enter image description here

As is indicated in the source view, the value tag in first (hidden) input method attempts to parse $this->getFormKey(), evidently, and fails, halting rendering of the rest of the page.

I'll admit that I'm still a bit mystified where it comes to the magic getters/setters in Magento. I've worked on tracing down where this code may lay, and the closest I've gotten so far is $APPHOME/downloader/Maged/Model/Session.php at line 106, in the authenticate() method.

If anybody has any ideas why this may be happening, how to fix it, or where I might go for more information (other than just the general magic getters/setters page, which I'm still re-reading over and over), I would be very appreciative. Any pointers are helpful.

  • Most probably there is a fatal error somewhere on the line, and you don't see it because you have error reporting off, or you have display errors off. Turn them on and you should see the error message.
    – Marius
    Commented Aug 17, 2015 at 18:10
  • Any idea where the applicable options that I would change for that may be located in the admin page? I'm having some difficulty locating the applicable logging options; it looks like syslog-2.log, and connector_api.log, are updating just fine, yet not showing me anything about this issue. Portions of the applicable logs are showing that these ones are updating at a debugging level. System->configuration->advanced->developer shows that logging is set to 'yes' and to log to syslog-2.log. Commented Aug 17, 2015 at 18:38
  • It looks like this may have something to do with addition of the SUPEE-6285 security patch. Anybody else had any similar problems? Commented Aug 20, 2015 at 18:55

1 Answer 1


getFormKey is not a magic getter, it's a method in Maged_View, which delegates to Maged_Controller, which delegates to Maged_Model_Session.

The SUPEE-6285 patch, mentioned in the comments above, added additional form keys in the connect manager, but the getFormKey methods were there before, so it's not an issue of incomplete patches.

Enable error reporting to see the PHP fatal error with the exact line where it fails and check the code there. More on the topic: Fundamentals for debugging a Magento store

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.