Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Anonymous (not verified) on
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
yep - i'm getting this too.
yep - i'm getting this too.
Are the sites you cannot log
Are the sites you cannot log into local, or remote? And if local, are you using MAMP?
Might be a problem with clean
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
Thanks for the comments above
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.This worked for me.
Thanks swilsondesign, this worked for me!
Jim
Same Issue Running Acquia Dev Desktop on Yosemite
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).
Same with Nginx
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:
Works in Chrome and Firefox
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.
Bug filed
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.
Workaround
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....