Everything works great except I noticed that when you login for the first time in drupal using your vbulletin account, it will say login failed. However if you login a second time with the same info, it will work the 2nd time. Is there anyway to fix this from happening?

- Riki

Comments

sun’s picture

Status: Active » Postponed (maintainer needs more info)

Hm. I cannot replicate this behavior. Does this happen every time a user tries to login or only for the very first time?

Also, please ensure that your cookie domain configuration, both in Drupal and vB, is correct, i.e. identical.

RikiB’s picture

It only happens on the very first time login. The cookies are set correct.

I found a post here and it fixed my problem. http://drupal.org/node/344554

user.module

~line 1009 (Is wrong)

        $registered_user = user_load(array('name' => $name));
        if (!$registered_user->uid) { // Register this new user.

Should be replaced with

       $user = user_load(array('name' => $name));
        if (!$user->uid) { // Register this new user.
sun’s picture

Hacking Drupal core is NOT recommended.

RikiB’s picture

Is there any reason why this would solve my problem. Is there any way I could hack drupal vb similarly?

Thanks again,
- Riki

sun’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Closed (won't fix)

Sorry, I cannot replicate this issue and it seems no one else can either.

jahmal’s picture

Status: Closed (won't fix) » Active

I have noticed similar behavior when an authcache module is enabled. Rikib - Did you enable authcache when this problem occured ?

I'm looking into this problem and will get back if I find a solution.

Regards,
Rafal

RikiB’s picture

I gave up and migrated everything to drupal, haha. :p

jahmal’s picture

Version: 5.x-2.2 » 6.x-2.x-dev

We have already tried to import all vb posts into drupal using vbtodrupal module, but with size of our forum this wasn't a solution. Drupal's core Forum module (and the same goes for Advanced Forum module) has some very slow queries.

Anyway, we have found that authcache isn't in fact breaking functionality of drupalvb. Swithcing authcache off isn't helping and problem still persists...

Problem description so far:

- User enters username&password in in drupal side of system. Here everything looks fine
- Records are created in drupalvb_users & users table
- User is logged in drupal but Not logged in vbulletin
- Then we log out of drupal and log back in to both drupal and vbulletin successfully

RikiB’s picture

If you are seriously interested in migrating to drupal from vb, talk to Liam and he can definitely help you out. Liam is the creator of the vbtodrupal module.

markdia’s picture

I am experiencing the same issue with cacheRouter turned on. Once the user logs out and logs back in they're fine from then on in.

I believe it has to do with the registration flow not setting the same cookies that the login flow does, probably based on a conflict with something hooked already? I can verify the vB cookies that login sets are not being set.

sun’s picture

Title: User has to login twice at first login. » vB cookies not set upon first login after registration
Status: Active » Postponed (maintainer needs more info)

How exactly do you log in for the first time? Do you use the user/reset link that is contained in the mail or do you login as usual on-site?

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Sorry, without further information this issue can only be closed as not reproducible.

Feel free to re-open this issue if you want to provide further information. Thanks.

Also check your Drupal user registration settings and make sure that new users don't require manual moderation by site administrators.