Hello,
I have a very serious problem - Only UID1 can log in. All other users when they try to log in are redirected to the frontpage.
I have looked in the logs and its shows that the sessions are opened and then closed immediately, indicating that they do log in successfully but are then logged out somehow.
It started only after I upgraded to Drupal 5.9, but not immediately. All functions were working fine and dandy until suddenly yesterday an user reported not being able to log in. It was working fine for 2 months without any problems.
This is what the log reports:
Date Wednesday, July 30, 2008 - 14:37
User watbe
Location http://www.crycity.net/user
Referrer http://www.crycity.net/user
Message Session opened for watbe.
Severity notice
Hostname 203.211.127.213
Date Wednesday, July 30, 2008 - 14:37
User watbe
Location http://www.crycity.net/users/watbe
Referrer http://www.crycity.net/user
Message Session closed for watbe.
Severity notice
Hostname 203.211.127.213
This is a very serious issue obviously as none of my users can log in. I have searched and tried various fixes to no avail.
Server Configuration:
Drupal 5.9
PHP Version 5.2.5
OS: Linux
Tested on Windows XP SP2 with FireFox 3.0.1 and Internet Explorer 7. Both don't allow users to log on
Have tried clearing cookies, disable caching, and several other fixes.
Any help would be really appreciated. I am aware of several similar threads regarding this and although I have tried many fixes/patches.
If possible please just give me anything to work on, from really obvious problems that I may have missed to extreme measures (not including reinstallation) because I really need the site working ASAP.
Comments
Comment #1
watbe commentedPlease feel free to test it out on crycity.net using:
Username: temp
Password: drupal
Once again, any help would be really appreciated.
Comment #2
pasqualledo you have anything listed under: admin/user/rules?
Comment #3
watbe commentedno
Comment #4
ryo commentedI tried to login with
Username: temp
Password: drupal
but I couldn't.
I tried to login with my drupal ID
but I couldn't.
And I created a new user account "ryo" and
but immediately after clicking the one time login link sent with Account details for ryo at CryCity Modding Portal,
I was made to log out.
I was never able to login...
Yeah, this is a really serious problem but I cannot find why.
Sorry.
Comment #5
watbe commentedWell thanks for trying, at least I know that its not just me.
Anyone else?
Comment #6
watbe commentedanyone?
Comment #7
stevebayerin commentedThe site most likely was not put into off line mode before the upgrade which can lead to a number of errors.
Try adding the following to the bottom of session.inc
register_shutdown_function('session_write_close');Comment #8
watbe commentedDoesn't work... Thanks for trying though, what else could've caused this?
Comment #9
drummSomething on the user page must be calling the user_logout() function. which is on line 1034 of modules/user/user.module. Try adding
print_r(debug_backtrace());to the top of that function to see if it is being called and from where. Be sure to remove the dubug code when done.
Comment #10
watbe commentedhmm now it doesn't let you log in; (but I suppose its because of the debug code)
Array ( [0] => Array ( [file] => /home/wonderi/public_html/crycity/includes/bootstrap.inc [line] => 512 [function] => include_once ) [1] => Array ( [file] => /home/wonderi/public_html/crycity/includes/module.inc [line] => 14 [function] => drupal_load [args] => Array ( [0] => module [1] => user ) ) [2] => Array ( [file] => /home/wonderi/public_html/crycity/includes/common.inc [line] => 1866 [function] => module_load_all [args] => Array ( ) ) [3] => Array ( [file] => /home/wonderi/public_html/crycity/includes/bootstrap.inc [line] => 922 [function] => _drupal_bootstrap_full [args] => Array ( ) ) [4] => Array ( [file] => /home/wonderi/public_html/crycity/includes/bootstrap.inc [line] => 862 [function] => _drupal_bootstrap [args] => Array ( [0] => 7 ) ) [5] => Array ( [file] => /home/wonderi/public_html/crycity/index.php [line] => 13 [function] => drupal_bootstrap [args] => Array ( [0] => 7 ) ) )I can't tell if anything's wrong... maybe you can?
Cheers
Comment #11
rileyhuff commentedI have a similar issue. When you try to go to the user login page you get a "browser sent a bad request" error. I tried to twice on the test server and I just can't get this 5.9 to work correctly.
Comment #12
findAtutor commentedI currently have a similar issue, but only with a few select users. They use the automatic login link, click on the "login" button, but return to the main page. Looking at the activity log, it shows a log as if they updated the users page, but then they are taken back to the main page, and according to the user, it appears as if they have done nothing, and can go directly back to the "request new password" page again.
One user has reported they are using IE 5.1, but I can't find any reports of problems specific to the browser.
I'm using Drupal 5.10. I would appreciate if there could be a follow-up post to the issue above, as it appears to have ended with watbe's #10 post, without a resolution for that problem posted.
Comment #13
findAtutor commentedJust a follow up to my comment above. I figured out the problem. Turns out that they had turned cookies off. Some browsers work with cookies off (Safari for Windows does), others don't. I know now to recommend that they be turned on for best results.
Unfortunately doesn't solve the problem the original poster had.
Comment #14
dpearcefl commentedConsidering the time elapsed between now and the last comment plus the fact that D5 is no longer supported, I am closing this ticket.