How to Solve Magento Login Issues
I was in the midst of testing Magento as required by a client as my ‘offered’ expertise in WordPress and Joomla does not tally with the client’s requirement of a solid ecommerce package. WordPress win hands down for the best experience in blogging with superb SEO capabilities and Joomla excel in being a versatile CMS minus the SEO aspects of it, but both platform does not suit my clients’ ecommerce needs.
After scouring around for a number of ecommerce packages, I then decided to get down ‘dirty’ with Magento. This namesake reminds me pretty much of Magneto the antagonist in the X-Men series. Their brand logo resembles closely of what Magneto’s helmet looks like.
I have heard reviews that Magento is hard to get around but not being discouraged by those reviews, I have installed them locally in my localhost powered by XAMPP for testing purposes. The installation goes smoothly. This ecommerce setup can be abit too techie for non-tech savvy people as the terminology used can be sometimes confusing. Make sure you go through the documentation in case you’re stuck.
[youtube]http://www.youtube.com/watch?v=kIKaJcBQtOw[/youtube]
The coolest part of setting up Magento is you can name your administration directory instead of sticking to defaults like Joomla’s /administrator or WordPress’s /wp-admin. The advantage of this is you can thwart hacking attempts from potential hackers as they will take time guessing the login directory that they wish to temper with.
Upon completion, I fired up Chrome and it fails to log me in via http://localhost/magento/.Subsequent attempts ensued in Firefox, and it fails miserably too. I’m quite surprised that Magento’s engineers did not take this seriously as a failure during a fresh start will immediately give a negative impact of the overall performance and user confidence on this product.
Nevertheless, I am still testing this package and will have my final say about this when the selection process ends. However I found some useful tweaks to remedy this, thanks to the forumers in Magento’s support. If you experienced the same problem, this fix might be worth trying.
Fire up Varien.php located in this path:
magento_installation/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php Go to line 77 in Varien.php, you will see this line;
// set session cookie params
session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath(),
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly() );
Comment them out like this;
/*
session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath(),
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly() );
*/
Save Varien.php, fire up your browsers and it will be fine!
Note: During this writing, Magento Preview Version 1.4.0.0-alpha3 has been released
Related Blogs
- Related Blogs on How to Solve Magento Login Issues
- Fatal error: Call to a member function children() on a non-object …