Hi,
I'm developing a new website. I installed drupal perfectly and i installed VB 3.8.6 with no problems (on it's on mysql database).
After installing the Drupal VB module, i've been hitting nothing but Warnings.

Issue 1:

Warning: Table 'uniprepc_drupalupc.vb_watchdog' doesn't exist query: INSERT INTO vb_watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:155:\"Table 'uniprepc_vBulletin.vb_user' doesn't exist\nquery: SELECT userid, password, salt, email FROM vb_user WHERE username = 'admin'\";s:5:\"%file\";s:56:\"/home2/uniprepc/public_html/includes/database.mysqli.inc\";s:5:\"%line\";i:128;}', 3, '',

What does this warning mean? Every time i log into my main drupal website, i get this warning repeated 9 times, and if i go back to my drupal page, i'm logged in but with multiple warnings still. When I log out i get a single warning too.

Issue 2: i can't seem to log out of my vBulletim admin account at all. I get a fatal error and can never log out.

Once, of course, I disable Drupal VB, everything goes back to normal. I've first tried this on VB4 (which I'd prefer to install), and i got all these same warnings. After playing around for a while (even after trying to install it in the same drupal database), i decided to downgrade to 3.8.6 as i thought maybe it was a support issue with VB4, but again, i run into the same problems.

I'm pretty sure i must have missed a step or two inbetween, but all and any help is appreciated.

oh and i also tried the patching with cygwin (the only one that worked for me) for vb4, and i'd keep getting husk failures and still no luck.

thanks.

Comments

uniprepc’s picture

Version: 6.x-2.0 » 6.x-2.x-dev
Priority: Normal » Major

Alright...the problem seems to have been solved. Mainly because I used the 2.x dev version and also because the 'Table Prefix' in Drupal VB needed to be blank.

Now I'm having only one problem, the Replacement Variables.

After replacing variables according to the Readme file, I cannot log out of vBulletin, only drupal. The module seems to work flawlessly otherwise. Accounts created in drupal are working in vBulletin and registering in vBulletin automatically takes you to the drupal registration page, the only problem right now is logging out from vBulletin. I'm sure it just requires a little tweaking, but that's what I need help with now. And any other replacement variables people have found important to proper integration.

Thanks.

uniprepc’s picture

oh and this is occurring with VB4. I have now installed VB4 with the dev module. Do I need to do any sort of patching? or simply tweaking the replacement variables? thanks

uniprepc’s picture

Status Update: Okay, so i ended up patching the drupalvb and re-entering the 4 replacement variables. With this new update, progress has been made, but with some hiccups.

1. When i login from drupal, then click on forum, it does not show me as logged in, but if i refresh the forum page, then i'm logged in. Any way to fix this so that is shows me as logged in to begin with? Most users will get confused if they don't refresh and see a the login fields remain blank. They can keep trying, but until they refresh, it will not log them in properly. help?

2. When I login from the forum directly, it redirects me to the drupal page and logs me in. Is there a way to have it so if I login through the forum directly, it will log me into both, but not redirect me to drupal?

3. logging out works perfectly fine.

4. when i click on the register button, it works beautifully by taking me to the drupal registration page. However, if anyone decides to work around this by typing www.example.com/forum/register.php, then the forum registration appears. This is a major problem. I want the registration button to stay and redirect as it does right now, however, will simply deleting the register.php solve the problem? If i disable account creation in VB, then the register link disappears. I thought about creating another link, but I don't know how to make the new register link disappear once a person is logged in. Any ideas on what can be done?

Any help here would be much appreciated. Thanks.

mattwmc’s picture

I'm having a similar issue with VB 3.84 and not being able to logout.

What did you tweak? Replacement variables seem to be an issue for me as well.

Thanks.

sun’s picture

Thanks for taking the time to report this issue.

However, marking as duplicate of 1) #350732: DrupalvB should not close Drupal's default database connection, 2) #773662: Error on logout, and lastly 3) #691736: Vbulletin 4 Support. You can follow up on those issues to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.

If you are new to drupal.org, it would help us if you would search for existing issues before submitting a new one. We strongly advise you search using the drupal.org search facility, because it really is very good. NOT a third party search engine (e.g. Google) as you may well not find what you are looking for.

sun’s picture

Status: Active » Closed (duplicate)