cancel
Showing results for 
Search instead for 
Did you mean: 

Can't make new logins

SOLVED

Can't make new logins

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Can't make new logins

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.

View solution in original post

4 REPLIES 4

Re: Can't make new logins

An important note: my disc is not full and the RAM has plenty of memory available.

Re: Can't make new logins

This situation may arise due to several reasons.

  • File permission in var folder.
  • Low disk space
  • Large number of session files in var/sessions

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

 

Re: Can't make new logins

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.

Re: Can't make new logins

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.