1

The Problem

One of our sites has recently broken. Users can't login or register, and the shopping cart isn't working either.

Drupal does not display any errors. Upon clicking the submit button for the forms, it simply refreshes the page as if nothing had happened.

It's just as if sessions have stopped working altogether, which is a little strange, no?

The rest of the site works perfectly well.

No Drupal updates have been performed and no new modules have been installed.

I've been reassured that this isn't a server problem, but I'm still (really) not sure about that. Since I don't have SSH access to the server, I'd like to be sure beforehand.

I'm just looking for possible causes/fixes, and if anyone has had experience with this before, great. Ultimately I will end up checking out the server, but is there any chance it could be caused by Drupal?

Things I've Tried:

I've checked /sites/default/settings.php for the $base_url and $cookiedomain variables, but they are set properly.

This is not a .htaccess problem, either. Regardless of whether I use clean urls or not (site/user or site/index.php?q=/user) it just doesn't work at all.

4
  • do the error logs (drupal and server) say anything? do you have a temp folder, is it assigned and does the folder have the correct permissions
    – Geoff
    Commented Sep 15, 2014 at 15:16
  • 1
    I have the same problem on two of my local drupal installation(with commerce related modules). what I found out is: drupal tries to login user when correct password is entered but it fails somehow to change 'uid' column of 'session' table. did you find anything new?
    – sepehr
    Commented Sep 16, 2014 at 7:56
  • I haven't found anything new, but thanks for your comment. I haven't gone through the PHP code line-by-line just yet. Was hoping I'd be able to avoid it, but this doesn't seem to be a well-understood problem. Since the site was working before, I really don't know what to think. Just that I'll have to narrow down the list of causes somehow. Commented Sep 17, 2014 at 12:18
  • Did you end up finding a solution for this problem?
    – rooby
    Commented Mar 2, 2015 at 23:14

1 Answer 1

3

This is a very old question, but I stumbled on it while having the same issue.

In my case, the "rewrite" Apache module was turned off. I re-enabled it with:

a2enmod rewrite

I could access /user, but could not login (it would loop back, with no error message). I assumed that since I could access /user, my rewrites and htaccess were OK. I could login with "drush uli", but no form would work. Even weirder: in some pages that had query parameters (GET, ex: foo?test=1), the GET parameters would not be passed to PHP. I was searching all over the place, and the solution was pretty trivial :)

1
  • or uncomment LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so
    – Interlated
    Commented Mar 18, 2018 at 4:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.