Active
Project:
SMFforum Integration module
Version:
6.x-1.23
Component:
Miscellaneous
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 May 2008 at 12:50 UTC
Updated:
22 Sep 2011 at 17:08 UTC
Since installing SMF integration, I am finding that about 1 in 3 times when I log in to the drupal page, the first login just reloads the page, but does not log me in. The second time I am logged in without problems with forum integration working fine also. I have drupal set to master, forum not in frame.
Thanks very much for the excellent module. I had it up and running quickly and easily.
Comments
Comment #1
Minstrel commentedJust wanted to add this further info:
I am noticing that this only happens the first time I log on. If I log off, then back on (either as the same user, or a different one) without closing the browser, all subsequent logons work on the first try. This is from a quick test of about 3 sessions and 15-20 logons.
Using Firefox, set to clear all private data between sessions.
Comment #2
marcus0263 commentedI'm having the same issue, something also is in the smfforum module configuration here's what it reports
Successfully locating SMF installation.
Successfully locating sites/all/modules/smfforum/includes/smf_api_2.php.
Successfully connected to the SMF database.
You are not authenticated in SMF now. Please login to SMF and test again. You may refresh settings!
Looks to be something relating to the cookie
Comment #3
vb commented>You are not authenticated in SMF now
You have to setup your qookie or server settings.
When I am disabling the module at all, I am getting first blank login too after clearing sessions, qookie and cache in Firefox.
But it is not clean Drupal installation.
Could someone reproduce this issue without the module especially on a clean Drupal installation?
Comment #4
SilentShade commentedHaving the same issue. You have to login twice for the first time in session. Login works fine with module disabled.
Comment #5
Baro-1 commentedSame issue here with drupal 6.4.
Comment #6
XerraX commentedsame problem over here
Comment #7
XerraX commentedComment #8
JSurf commentedSame "login twice" issue with Drupal 5.12
Comment #9
Thurgi commentedSame problem here
Comment #10
JSurf commentedIt seems to help if you put the hidden authentication module to a block region at the bottom of the page. This fixed the issue for me. Don't know if this has any disadvantages.
Comment #11
Thurgi commentedI put the block in the footer, but it doesn't solve the problem
Comment #12
XerraX commentedD5 or D6? @JSurf
Comment #13
JSurf commentedD5, but it seems that i did errors on testing that issue, im now back to the same problem most of the time
Comment #14
Jpl commentedI think the SMF and SMF API both do have some Drupal unrelated problems by themself. I have found out some very weird redirects to an broken url (last time I tried I found my browser going to "��<" :p) caused by the smf hidden login block.
Maybe the fix should be like some radical rewriting to somewhere... still have to find out where to.
Comment #15
XerraX commentedafter installing the Ajax Module and enabling it for login, the problem seems to be gone for me
Comment #16
ericwongcm commentedSame problem here.....Had the same issues on Drupal 5 and now upgraded to Druapl 6 but still have to login twice.......
Anyone found the fix yet?
Comment #17
xdakotax commentedSame problem D6 & SMF 6.x-1.2 version.
Driving my members insane, as they think they have forgotten their passwords.
Other behavior is access denied on 1st and even 2nd attempts to log in, 3rd attempt it then lets you in......
Comment #18
canyonbreeze commentedI had this problem as well. Installing the AJAX module did not help. Moving the hidden authentication block from the top of the page to the bottom of the page seems to have fixed it. No idea why.
Comment #19
canyonbreeze commentedUpdate, this didn't fix the problem. Still have to log in 2x. I have 4 Drupal sites, 2 have the SMF module. These 2 have the double login issue, the other 2 don't.
2nd Update: This seems to have been fixed by disabling the SMF Hidden Authentication Block, ie: not putting the block in any part of the page.
Comment #20
Boreded commentedI am 100% certain the double login issue is caused by the SMF Hidden Authentication Block.
If i have it enabled (in either footer or anywhere else) then i logout, clear my cookies. And try to login again. First time redirects me back to home page not logged in. Second time it logs in.
If i disable the block, logout, clear cookies. It logs me back in first time. Accept now im not logged into the forum.
This clearly is an issue with the smfforum module and how it creates the smf cookie.
Now.. does anyone know how this can be fixed?
(Drupal 6.13 / SMFForum Module 6.x-1.21 / SMF Forum 1.1.10)
Comment #21
vb commentedI will try to look at this issue and fix it.
Comment #22
pasa commentedNow just to throw in another spanner .. [sorry]
We get the 'cannot' log in issue when the hidden authentication is 'active' *BUT* only for users who have an account on SMF.
User has no account on SMF, logs on, first time
(this login creates the SMF account)
User logs off, then logs on - credentials aren't accepted.
**But**, if you Login onto SMF, delete that user off SMF before they try logging into Drupal - their logon works first time?
Mmmmmm
cheers!
Comment #23
Boreded commentedFound the cause if its any help.
In smfforum.module if you comment out line 2449 which is: _smfforum_drupal_logout();
And then enable the block again for all users. You can login first time, but then your not logged into forum. If you leave that line uncommented, you have to log in twice and then your logged into forum.
Actually, having looked into this further, if you set SMF_DISABLE_AUTO_LOGOUT to 1 on line 39 this also stops the double login, but also does not log you into the forum.
Anyone got any ideas?
Just made another interesting discovery...If you press Logout on drupal, then clear cookies and sessions, you will log back in on the first attempt. Where as if you just clear cookies and sessions whilst logged in then you have to login twice.
Comment #24
wesjones commentedsubscribing
Comment #25
Boreded commentedI think this issue is a lot more serious than the developer might actually think.
I just registered on the developers website vgb.org.ru to see if they have the problem. and guess what .. they do.
I think most people are not seeing this because they do not delete their cookies and the site has set a long cookie life, this problem only appears after deleting them. My site will be accessed mainly by schools who do not keep their cookies for very long at all and so this is a very serious problem for me. Also for security reasons, my site is set to log the user our when the browser is closed, to do this you need to set cookie life to 0.
To reproduce:
1. Login at vgb.org.ru
2. Whilst still logged in, clear your cookies.
3. Refresh the page. You will have been logged out.
4. Try to login again. The first attempt will just redirect you back to the home page, not logged in.
Im fairly competent with php, but still learning the drupal system. I had a look around the code but was unable to find what was causing this. It looks to me, as though its not going to be a simple fix.
Hopefully the developer will know what to do....?
Comment #26
oblongmedulla commentedsubscribing
Comment #27
oblongmedulla commentedsubscribing
Comment #28
vb commentedPlease, try version 1.22
Comment #29
vb commentedSorry, 1.23, forgot to change the line of code, ported from phpbbforum.module
Comment #30
Boreded commentedThanks vb. That seems to have done it :)
Comment #31
ericwongcm commentedSorry, but I think the double login issue is still not resolved.........I still need to login twice on my site....
Comment #32
mattbk commentedSubscribing.
Comment #33
pomakk commentedsubscribing
Comment #34
ndstate commentedAny fixes? This issue still exists with SMF 2.0
Comment #35
leahmd commentedI have been trying to fix this issue myself for a while. I think a lot of the problem is either or a combination of drupal caching and browser caching (see #197786: Some servers / browsers will cache pages even when header Cache-control: no-cache is set). Running Boost caching made it even worse. I have used the smf authentication from the hidden block which never ran on Boost cached pages, instead in a custom module which does the smf_authentication in hook_boot, tested working on dev and production sites now.
In addition, a small modification to the Boost .htaccess code, I added a line to stop serving up the cached pages for the SMF cookie:
After:
Added:
Hope that helps someone else, YMMV.
Comment #36
wolf_22 commentedSame issue with my site...
(Subscribing.)
Comment #37
oblongmedulla commented