I tried logging in to my site after a week or so of not working on it and when I get an error box with nothing but the number 1 in it. This is logging in as the Admin. If I use the wrong password I get the "wrong password" error but if I use the right password I get the "1" error but it still won't allow me to log in. I tried password reset, received the email, but when I click log in I again get the "1" error. I've been running this site on Drupal for 4+ years now and have never experienced this. I checked the database to make sure UID 1 was still there and decrypted the md5 password to make sure it was correct. If I could log in I'd clear the cache and manually run cron but since its not allowing me access I can't think of anything else to try. Any ideas or has anyone else experienced this?

Comments

nevets’s picture

What do you mean by an "error box", is it inside a normal page layout or by it's self?

fuquam’s picture

Sorry. The box that displays error messages for your site. Mine is red but that depends on your css. Inside a normal page. <div class="messages error">

I just tried creating a new account. I received the email, followed the link, logged on with the given password, and got the same error box with "1" so it appears to be anyone that logs in and not related to the Admin or UID 1. The only thing I've done recently was installed Ubercart a few weeks back but log in it had been working fine until today.

nevets’s picture

That will be a challenge to debug, it looks more like a left over debug message. If you have the devel module installed I would modify the source temporary for drupal_set_message (its in include/bootstrap.inc) so the first line of the function is ddebug_backtrace(). This will allow you to determine what code is producing the message.

fuquam’s picture

I went through my settings.php file and removed any custom configurations I did one at a time to see if anything there could be causing it. I had uncommented the tag $cookie_domain = 'example.com'; and added my domain. I can't remember which module it was for now. I don't think Ubercart requires that. Anyway once I commented that out log in worked fine. Now I need to remember what required that to be used.