So I've had Drupal installed for a few days now, and I'm slowly configuring it along with my customised theme to get it how I like, and to match the rest of my site.

But suddenly today Drupal won't let me log in again. The only way I managed to login was request a new password, but even then when I log out, I'm unable to re-login. This is the case for all users.

I can't pin-point exactly what it is that has done this, as I've been logged in for about a half a day (Yesterday). I've really only edited my theme and CSS files, I have not in any way edited any Drupal files or the database. However my admin area is using the Garland theme, and that still denies me access.

site is here.... http://backstage.theatrefriends.com/drupal.

Any guidance in what I've blown up appreciated!!

Cheers,

Will.

Comments

dziemecki’s picture

What exactly does this failure look like? Do you get "Access Denied", or does it just reload the login screen, or something else? Does it work for a little while, or maybe even just one page? Does it act the same for all accounts (including the first one)?

Dan Ziemecki
Mangling other people's code since 1997.

jonnythebird’s picture

I have the same problem using Firefox. The page reloads when trying to log in.
I deactivated proxys on the site with the help of the web developer addon and it worked fine.

Greets from Germany,
Jonas

Lowbacca’s picture

Hello,

I have the web add on for Firefox and "disable proxy's" is grayed out. I am also having this problem of logging in, any other advise

Thanks!!!

jonnythebird’s picture

Try the other functions of web developer, e.g. clear the cache or delete your cookies.
Otherwise, change the browser or use another computer/operating system to see whether drupal or your pc causes the error.

Perhabs, you also installed a new module that breaks the login form...

Greets, Jonas

pylambol’s picture

It seems that the login succeeds but drupal fails to notice it because it does not update the pages correctly.

However, the "who's on line ?" block mentions me and sometimes even twice.

After "a while" playing in the browser, it suddenly realizes i am in and displays the correct pages. I am not
sure but I believe that wiping the cookies helps...

Finally, when I log out, it removes one of the two connections and I end up with a strange state: logged
out and mentioned in the "who's online ?" block.

Puzzling.

My configuration is:
- drupal 5.1
with latest modules:
aggregator
block
blog
blogapi
book
cck
cck_fullname
color
comment
contact
contemplate
drupal
faq
filter
formblock
forum
help
imagefield
legacy
locale
menu
node
path
ping
poll
prepopulate
profile
search
statistics
system
taxonomy
throttle
tracker
upload
user
user_import
viewfield
views
views_bonus
watchdog
workflow

Best regards,

PYL

--- update ---

- I managed to have as many as 12 simultaneous connections, as reported by the who's online ? box....
- I had to clean the cache, cookies and restart Safari to have the site realize I am connected.

dpierre’s picture

I run several sites powered by Drupal 5.1.

When accessing to some of my sites, I got exactly the same behavior, when trying to log in.
After having entered login/password, it seems that it is recognized and accepted (user displayed in "who's on line"), but the page I see is still the one asking for logging in. And I am stuck here.
Same as what you described, if I ask for a new password, then I can log in with that new password and everything is fine, until I log out.. Then trying to log in drives me in the same situation as described above.
Nevertheless, from time to time it works correctly.

I use Apple computers, running MacOS X 10.4.9. I use Safari, Firefox, Camino as browsers.

As indicated in one of the answers, if, in the browser, I empty the cache and remove the cookies, then access is back to normal.

But what's puzzling me, is, that with one of my sites, I never had (and still do not have) that problem.
I would have assumed, that if it were (only) a browser/cache/cookies problem it would appear on all the sites.
Any ideas ?

Dominique PIERRE
From France

dpierre’s picture

I investigated further the fact that the problem occured on several sites, but not on a specific one.
This is the configuration I have and what I have observed.

------------------------------
I have several sites hosted on the same IP address, but with different names.
- www.mydomain.net
- site1.mydomain.net
- site2.mydomain.net

In the DNS, all the different names are resolved as "equal" to "mydomain.net". The IP address is "attached" to "mydomain.net".
It is my server (Linux server), hosting the different web sites, that makes the proper routing according to the URL name (www.mydomain.net, site1.mydomain.net, site2.mydomain.net).

Looking at the cookies (MacOS X, Safari), this is what I see:
- ".mydomain.net" as cookie name for www.mydomain.net
- ".site1.mydomain.net" as cookie name for site1.mydomain.net
- ".site2.mydomain.net" as cookie name for site2.mydomain.net

I always had login problems with "site1" and "site2". I never had login problems with "www".

I was surprised to see that for the "www.mydomain.net" site, the cookie was ".mydomain.net", not taking into account the "www".
For the other sites, i.e. site1 and site2, the cookies indicate the site's name, that is ".site1.mydomain.net", ".site2.mydomain.net".

------------------------------

This is the summary of the different tests I made.

I erased all the cookies.
Login site1 = OK, cookie ".site1.mydomain.net" created
Login site2 = OK, cookie ".site2.mydomain.net" created
Login www = OK, cookie ".mydomain.net" created

Logout from all sites.
Login site1 = OK
Login site2 = OK
Login www = OK

Logout from site1, site2
Login site1 = failed
Login site2 = failed

Logout from www
Login site1 = failed
Login site2 = failed
Login www = OK

Logout from www.
I erase www cookie.
Login site1 = OK
Login site2 = OK

Logout from site1, site2
Login site1 = OK
Login site2 = OK

Logout from site1, site2
Login www = failed
Login site1 = OK
Login site2 = OK

Logout from site1, site2
Login www = OK

Logout www
Login site1 = failed
Login site2 = failed

I erase site1 cookie
Login site1 = OK
Login site2 = failed

I erase site2 cookie
Logout site1
Login site1 = failed
Login site2 = OK
Logout site2
Login site1 = failed
Login site2 = failed
Login www = OK

Logout www
I erase www cookie
Login site1 = OK
Login site2 = OK
Login www = failed

Logout site1, site2
Login www = OK
Logout www
Login site1 = OK
Login site2 = OK
Logout site1, site2
Login site1 = failed
Login site2 = failed
Login www = OK
Logout www

I erase www cookie
Login site1 = OK
Login site2 = OK
Login www = failed

Logout site1, site2
Login www = OK
Login site1 = OK
Login site2 = OK

Logout site1, site2
Login site1 = failed
Login site2 = failed

2 hours later

Login www = OK
Login site1 = failed
Login site2 = failed

I erase site1 cookie
Login site1 = OK
Login site2 = failed

Logout from site1
I erase site2 cookie
Login site1 = failed
Login site2 = OK

Logout from www and site2
Login site1 = failed
Login site2 = failed
Login www = OK

Logout from www.
I erase www cookie.
Login site1 = OK
Login site2 = OK
Login www = OK

Logout from www, site2, site1
Login site1 = OK
Login site2 = OK
Login www = OK

Logout from www, site2, site1
Login site1 = failed
Login site2 = failed
Login www = OK

------------------------------
Is there a problem with cookies management ?
Is it a Drupal problem ?
Is it a MacOS X problem ?
Why is the "www" site cookie named ".mydomain.net", whereas "site1" and "site2" cookies bear the full names ".site1.mydomain.net" and ".site2.mydomain.net" ?

Hoping that this long list of traces and observation will help understanding where the problem resides (and thus we should be close to a solution).

Dominique PIERRE

jonnythebird’s picture

I still have the similar problem with one of my drupal sites using Windows XP.
It's very curious because my other drupal sites run on a comparable server from the same hoster, but the problem doesn't appear at this sites.
Could a possible cause alse be incorrect pathforwarding in combination with the wrong cookies which are already mentioned above?

Jonas Vogel

| From Germany | Drupal rocks anyway! |

gmknowles’s picture

I just setup a new site:

I set up this site adding a dns record to park this domain with my main domain

mainsite.com 100.100.1.1
next.mainsite.com 100.100.1.1

I added the second site to my .htaccess file and I am using folders:

# .htaccess for two domains not in root html

RewriteEngine on

RewriteCond %{HTTP_HOST} ^(www.)?mainsite.com$

RewriteCond %{REQUEST_URI} !^/main/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /main/$1

RewriteCond %{HTTP_HOST} ^(www.)?astarte-llc.com/$
RewriteRule ^(/)?$ subfolder/index.php [L]

# SECOND DOMAIN

RewriteCond %{HTTP_HOST} ^(www.)?next.mainsite.com$

RewriteCond %{REQUEST_URI} !^/main/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ /main/$1

RewriteCond %{HTTP_HOST} ^(www.)?blogs.astarte-llc.com/$
RewriteRule ^(/)?$ subfolder/index.php [L]

# END .htaccess

The install went great - tried to setup same roles, users, session, etc. setup worked good and in my IE7 browser could logon to both sites find

In Firefox I was not able to login to the new site - symtoms as described above - does not do anything. At first, thought the issue was same codesbase, same database, sharing users,roles,sessions. So, set up again with no share and same issue. Also tried different computer with IE6. Same issues.

I recall seeing this, maybe a year back with a Drupal installation (I think)

btw - www.*.*.com no difference from site.com

pylambol’s picture

After having read the comments from Dominique, I have to mention that I configured my Apache so that it uses virtual hosts like this:

<VirtualHost *:80>
    ServerAdmin root@local.lab
    DocumentRoot /intranet/portal
    ServerName my.intranet.lab
    ErrorLog logs/my.intranet-error_log
    CustomLog logs/my.intranet-access_log common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin root@local.lab
    DocumentRoot /intranet/other
    ServerName other.intranet.lab
    ErrorLog logs/other.intranet-error_log
    CustomLog logs/other.intranet-access_log common
</VirtualHost>

while the server name is defined as:

ServerName my.intranet.lab

Drupal is installed in my.intranet (the other.intranet holds static html pages.)

Furthermore, I did not prove it but I feel it is cookie related because wiping them off allows to reconnect.

HTH

PYL

deanloh’s picture

tomclark’s picture

I have the same problem.

It seems to fix itself after truncating the cache and sessions tables, and clearing cookies/closing browser.

Hardly a "solution" since you have to do it each time Drupal decides to stop playing!

But it is always worth a try.

Tom