Hi everyone,
I can't login in my admin area, and I also can't login as a customer at the store front. I insert the right username and password, but the pages simply reload, without showing any errors. When I try to login with wrong credentials however, the corresponding errors are shown as expected.
Nothing is registered in the store logs (at least under the var/logs folder).
Other people that work with me are able to login. So I believe that sessions already stored are working fine, the store just can't make new logins. This is my guess, not sure about it.
My Magento version is 1.9.3.4, community edition.
Here's a list of some solutions in other threads, that I already tried, and didn't work:
- change sessions' storage system to database.
- clear browser's cookies; use incognito windows; try to log in with Tor browser.
- comment specific lines in Varien.php file.
Also, my store has the form_key hidden input in all the pages it needs to be.
The website is www.casaequipada.com.br. It's in brazilian portuguese.
My only option now is to reinstall my store, but I really don't wanna take the time to do that right now, so any advice is appreciated. I don't know where to look anymore.
Thanks in advance.
Solved! Go to Solution.
Solved it!
The website had confliting redirects between www and non-www urls.
I changed my base url to the www version, and added the following code to .htacess, after the "RewriteEngine on", that comes after the "<IfModule mod_rewrite.c>" line:
RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Now everything works!
I also had broken products links, where mydomain/product_url was being redirected to the homepage. This issue is solved now as well.
An important note: my disc is not full and the RAM has plenty of memory available.
This situation may arise due to several reasons.
So, before digging to the code please delete var/cache and var/session. I hope it will resolve your problem.
Note: If you currently using file session and file cache, it is better to move Redis | Varnish or database related one
Hi ocAsanka,
thanks for taking the time to help me, I really appreciate it.
I cleared the var/session folder, the core_session table and the var/cache folder, in this order, then tried to log in with Tor browser. Didn't work.
The disk has around 700 MB free, so I guess this is not the problem.
The var folder has its permissions set to 755. Is this correct?
I already changed the storage system to "db" in app/etc/local.xml. If you confirm the permissions are correct, then I'll try to use Redis.
Solved it!
The website had confliting redirects between www and non-www urls.
I changed my base url to the www version, and added the following code to .htacess, after the "RewriteEngine on", that comes after the "<IfModule mod_rewrite.c>" line:
RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Now everything works!
I also had broken products links, where mydomain/product_url was being redirected to the homepage. This issue is solved now as well.