I have just upgraded my local machine to OSX Yosemite which has changed my Apache version from 2.2 to 2.4 nd my PHP version from 5.4 to 5.5.

When I visit both example.com/user and example.com/user/login and enter my username and password, the login form appears to post the data and then 'loops' back to it's original state i.e. blank fields.

This is the same across all websites and all browsers and is the same for all users.

There is nothing in any of the error logs but…

"POST /user HTTP/1.1" 404 16744

… in the access logs

Has anyone encountered a similar problem?

Thanks,

S

Comments

peter_nochisaki’s picture

yep - i'm getting this too.

Jaypan’s picture

Are the sites you cannot log into local, or remote? And if local, are you using MAMP?

babipanghang’s picture

Might be a problem with clean URL's. Maybe you can try to login using URL http://yoursite.com/?q=user/login, and troubleshoot from there.

Did i answer your question on the forums? I love to hear a reply wether or not it worked for you!
Jaap - Acquia certified drupal site builder

Anonymous’s picture

Thanks for the comments above.

To solve the problem, you need to edit your httpd.conf file, uncommenting the following line:

LoadModule rewrite_module libexec/apache2/mod_rewrite.so

(Line 168 in my httpd.conf)

Then restart Apache using sudo apachectl restart command.

thejimbirch’s picture

Thanks swilsondesign, this worked for me!

Jim

wluisi’s picture

Thanks, swilsondesign!

I had the same issue running Acquia Dev Desktop on Yosemite. Couldn't log into any of my local Drupal sites, no error msgs. Here's my setup:

Mac OS 10.10.1
Acquia Dev Desktop [Version 2 RC, Dec 18 2014 build]
Google Chrome 39.0.2171.95 (64-bit)

swilsondesign's solution worked:

Edit /Applications/DevDesktop/apache/conf/httpd.conf

Uncomment 'LoadModule rewrite_module modules/mod_rewrite.so' (line 148, roughly).

Mogge’s picture

I have the same problem with Safari (8.0) in Yosemite (OS X 10.10).

When I try to log in the page just reloads and the form is empty again.

I am using Nginx as web server so the solution above doesn't work for me.

I also can't see anything in the error logs, and in the access log I see this:
"POST /node?destination=node HTTP/1.1" 302 5 "http://dev.qshout.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36"

My settings for Nginx is:

location / {
	try_files $uri @rewrite;
}
location @rewrite {
	rewrite ^ /index.php;
}
location ~ \.php$ {
	fastcgi_split_path_info ^(.+\.php)(/.+)$;
	include fastcgi_params;
	fastcgi_param SCRIPT_FILENAME $request_filename;
	fastcgi_intercept_errors on;
	fastcgi_pass unix:/tmp/php-fpm.sock;
}
Mogge’s picture

I should add that it works both on Chrome and Firefox on my computer (OS X 10.10), so obviously there is something going on with Safari and Drupal.

Mogge’s picture

I found that the bug is already filed here:
https://www.drupal.org/node/2361335

So it's a bug in how Safari and Android browsers handles cookies.

albie001’s picture

Having the same problem on new installs on Yosemite using MAMP. When fresh install is finished, logs me out and won't allow me to log back in.

LoadModule rewrite_module libexec/apache2/mod_rewrite.so is already uncommented in my httpd.conf

One workaround is to just request a new password. This allows you to reset the password and then login without any further issues.

Not ideal granted....