My magento login not working - magento

I have tried many options but still not working please any body who can fix it. my username and password both are correct please. my back end is working fine but the front end login is not working.
I tried editing and commenting code in varien.php. i tried http as no in configurations setting
still not working and giving invalid username password error. but the credentials are correct.

Looks like an issue with form-key
Go to app/design/frontend/[Your-package]/[Your-theme]/template/customer/form/login.phtml and template/persistent/customer/form/login.phtml and under
Find: <ul class=”form-list”>
And paste this right after the code above the following:
<input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
Repeat above for app/design/frontend/Your-package]/[Your-theme]/template/persistent/customer/form/login.phtml

Try this solution.
Login to admin.
Navigate to Admin-> System-> Configuration-> Customer-> Customer
Configuration-> Share Customer Accounts
Set Share Customer Accounts To Global
Make sure to take backup if you are working with production server.
Hope this helps you!

Related

Using Larval middleware to redirect user to seperate domain

hope someone can assist me with this. so am trying to tackle an issue on my website just to summarize it. I want to add a feature when a user tries to make a payment from my website or subscribe to a plan I want them to be redirected to my company website where they will have payment captured and then redirected back to the main site and have their balance updated or subscription active on main site I was told to use middleware since am using the latest version of laravel but don't know how to go about this I found this reply from #willstumpf
https://laravel.io/forum/02-17-2015-laravel-5-routes-restricting-based-on-user-type
and I saw someone with something similar and on inspecting their website found them to be using middleware code sample
<input type="hidden" id="pay_auth" name="auth" value="randomvalue">
<input type="hidden" id="middleware" name="middleware" value="https://www.website.com">
<input type="hidden" id="account" name="account" value="paypal_3">
<p class="btnpay" style="cursor: pointer;" uid="14428721" mid="3" family="0">Pay $5.99</p>
</div>
in other words, I want my payment to be captured on a separate site but redirected to where the product is being sold after payment completion with success status.
Pretty new to laravel but will appreciate some guidance from the community.

Magento 1.9.2.2 cannot create account and login on frontend

I'm using Firefox and I started to have a problem. I can't create new user in a Magento 1.9.2.2 in the frontend and also I can't login with a register user. In the backend I can create the user without problems.
This was not happening some time ago.
I tried these solutions and didn't work:
Add <?php echo $this->getBlockHtml('formkey') ?> to some files of my template.
Delete var/cache and var/session.
Change life cycle of the cookies.
Change domain name of the cookies.
Any idea? :(
If you cannot create a customer or login after applying patch SUPEE-6788 or upgrading to Magento 1.9.2.2 or later, this might be caused by missing form keys.
Make sure to add form keys to all of your (custom) template files:
In app/design/frontend/[package]/[theme]/template/customer/form/register.phtml and app/design/frontend/[package]/[theme]/template/persistent/customer/form/register.phtml
Add
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
after
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />

Magento - Checkout page not loading https URL for catalogsearch

I have just set up a Magento store and eveything is working fine, except for a problem in the catalog search URL.
When I go to the checkout page, everything is loaded in HTTPS, except for the catalog search URL, which makes chrome give a warning saying that there's mixed content in the page. When I check the source code, it says:
<form id="search_mini_form" action="http://XXXX/catalogsearch/result/" method="get">
But that only happens when the user is not logged in (or a first time customer). Once the user is logged in, the URL is loaded properly:
<form id="search_mini_form" action="https://XXXX/catalogsearch/result/" method="get">
Any idea on why this could be happening?
Thanks!
I know it's not the complete solution, and I have no idea why this is happening also on my store - but a temporary "patch" would be to open:
app/design/frontend/fogento/default/template/catalogsearch/form.mini.phtml
and manually modify the first line of the form element to use the secure url including https.
For example:
<form id="search_mini_form" action="https://www.yoursite.com/catalogsearch/result/" method="get">
This will give you the green address bar in chrome.

Magento 1.91 CE - Customers Cant login

Hi all our website is Caged.eu and we have customised a Template from pre 1.9. Magento allows customer to register but when they try to sign in using that login details login page doesnt respond, this also happens when they ask to resend password it send reset details but still doesnt work.
Oddly the click facebook link to sign up login does work which is another extension we are ready to release but after getting it this well done would hate to have to change template.
Im sure its something stupid but would really appreciate your help guys
In Magento 1.9 the forms are unable to store the data as formkey missing. Try to add the key then you can be able to sign in. Add <?php echo $this->getBlockHtml('formkey'); ?> this at line no 41 below <form> tag in app/design/frontend/[your theme package]/[your theme]/template/persistent/customer/form/login.phtml
And check whether you can update product quantity in cart, there also formkey is missing.
Copy base/default/template/customer and base/default/template/persistent to your theme/template
After you had added the line <?php echo $this->getBlockHtml('formkey'); ?>
Perhaps you need to to flush magneto cache from magento admin (System->Cache management), then you can try the frontend customer login again.
As already replied in magento.stackexchange you should edit
/app/design/frontend/default/template-name/template/persistent/customer/form/login.phtml
and inside the "login form" form, after the
<ul class="form-list">
you should insert
<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />
and this will solve your problem, as it did with mine.
Hope this helps
so be it - manemoi
Theodore

Private Joomla 2.5 K2 items redirects back to homepage instead of origin link after login

I am gonna try my best to describe our problem. Hopefully someone way smarter than us can figure this out. One of our Joomla sites has some content that requires login, simple enough right? The normal login functionality works great. Once logged in we could see the locked down content. But lets say we have a direct link to a "locked" page, once logged in, the page redirects to the homepage (index.php).
Natively Joomla 2.5 should retain the origin link, and redirects to that link, not back to index.php. So if my link was homepage.com/k2item1, after login it should go to k2item1 not index.php. I have tried turning off all modules and plugins just in case something is overriding the native login functionality from links. I have checked the .htaccess file for redirects. I have tried both settings in SEO settings "Use URL rewriting", Yes/NO doesn't matter. I have tried renaming the override folder (html) in our template folder, so no overrides should happen. Nothing. The link still redirects back to index.php. I have even tried printing out the form/user object to see if the origin link was there, aka "return", and the link is in there, but after login, still index.php instead of the string "return". Any ideas will be greatly appreciated. Maybe there are plugins out there that would help ensure links do not redirect to home page?
Override the component: mod_k2_user/login.php and edit the hidden input name "return".
<input type="hidden" name="return" value="<?php echo base64_encode(JURI::current()) ?>" />

Resources