Hello,
I use Drupal 5 and I installed Drupal VB.
When I create a new account I have this SQL error on white page:
Warning: Table 'alexrpa_vbulletin.system' doesn't exist query: SELECT * FROM system WHERE type = 'theme' in /hsphere/local/home/alexrpau/fencingforum.com/includes/database.mysql.inc on line 172
But if I go back, I can loggin with this account and my drupal site and on vbulletin.
Someone have a solution to fix this problem ?
Thanks
Nico
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | settings.php_.txt | 6.15 KB | Bob445 |
Comments
Comment #1
JStarcher commentedYou get the error when you create an account in vBulletin, Drupal, or both?
Check you database configurations. "alexrpa_vbulletin.system" means it is looking in your vBulletin database for the table system which doesn't exist because system is a table in the Drupal database. So to put it straight, it's looking in the wrong database.
Post you config files up and we can see if you made a mistake. Of course erase your password before posting it ;-)
Comment #2
Bob445 commentedHello,
I get this error when I create a new account on Drupal.
You right about the "system" database, I look on phpmyadmin and this table doesn't exist on vbulletin database.
I attached my setting.php of Drupal, you need another file ?
Thanks for your help
Comment #3
JStarcher commentedJust to double check, you did copy your vBulletin config file to the Drupal vB folder, correct?
That file you attached looks fine btw
Comment #4
Bob445 commentedYes I did !
Comment #5
Bob445 commentedYou have no idea to fix this problem ?
Why it's looking in the wrong database ?
Comment #6
JStarcher commentedWell I actually haven't developed Drupal vB at all, so I'm not an expert on it. I will look through the code again to see what would cause the issue you are having, and let you know what I find ;-)
Comment #7
Bob445 commentedOk thanks !
Let me know soon as possible.
Comment #8
JStarcher commentedWhat version of vBulletin are you using? I'm fairly certain this is being caused by vBulletin at this point.
Comment #9
Bob445 commentedI'm using vbulletin 3.6.5
Comment #10
Bob445 commentedHow you can be certain ?
If I create a new account with vbulletin, it's ok.
Comment #11
JStarcher commentedHere, replace your files with these two just temporarily. Probably best to rename your old ones by adding ".bak" after .php in the file name so you can just rename them when you are done and not screw up anything.
Once you replace the files, clear your browsers cache, cookies, all that crap. Make sure there are NO cookies stored. Then restart your browser. Try to make an account. Once you do it once, log back in and look in the logs. You should see a bunch of message from drupalvb. Post me the messages it put in the logs for drupalvb.
http://stealth17.com/hosting/files/1/drupalvb_files.zip
Comment #12
Bob445 commentedThanks for your help.
So I upload your files, I deleted my cache and cookies.
I created a new account and I get my sql error:
I logged back in and I get this log message:
I have another log message "new user"
I tried to log in vbulletin with this new account, it seems OK.
I logged in vbulletin with my admin account:
- In the "member list" I don't see my new account
- In the admin control panel I can see it but with no information because there is no ID in the address but nevertheless in the vbulletin database I have a new line with lastest ID. (http://76.162.189.46/forum/admincp/user.php?do=edit&u= NO_ID_HERE )
Comment #13
JStarcher commentedSo with the new files it didn't throw ANY messages that say "Got to point x?"
Is your site on a sub domain, or different domain?
Comment #14
Bob445 commentedNo I didn't see any message like that.
What do you mean ?
Currently www.fencingforum.com is just a forum, and I create on another server the new website with drupal.
Comment #15
yelban commentedIt is mysqlI !
Warning: Table 'vbulletin.system' doesn't exist query: SELECT * FROM system WHERE type = 'theme' in D:\User\Constantine\My Documents\_Sites\localhost\drupal\includes\database.mysqli.inc on line 151
this error message just only appear in use mysqli connecting,
use mysql connect is okay!
in vbulletin 3.6.x
the database connecting has two method, mysql and mysqli
I found the drupalvb create new account SQL error is appear in mysqli connect
any idea?
Comment #16
yelban commentedin vbulletin config
$config['Database']['dbtype'] = 'mysqli';in drupal setting
then got "SQL error" problem.
then use mysql instead of mysqli
in drupal setting
the got NO problem.
Comment #17
Bob445 commentedI check on my setting.php (drupal) and config.php (vbulletin) files and it use "mysql" and not "mysqli".
It's strange !
Comment #18
JStarcher commentedheh, I just reproduced the error on my test site and I have no clue why it is happening. I did narrow it down to being something with vB for sure. I changed the vB database name in the Drupal vB config file and the error was still looking in the same vB database. hmmmmm
Comment #19
Kodeart commented@Bob445:
Hello,
I noticed mysql8.ixwebhosting.com in your config file, so I'm guessing, you host your Drupal there. If that's true, I could only recommend switching to other hoster as soon as possible. Over 1 year (bye bye to IXWH in January, 2007) I have only bad memories.
I think you don't meet the minimum requirements to run Drupal on IX Web Hosting. Notice the PHP (and MySQL...?) version.
As I remember, you have MySQL 4.0.xx; if you're not concerned about *non-latin* content it could be fine, but if you go elsewhere one day (you will!) and want/use UTF-8, your db dump file (backups) will be almost useless.
Horrible host. Don't fall on their *24/7 live chat support*. After all, they are useless too. They don't fix anything...but you can chat about whatever except your account or problems, anytime :)
You will face numerous MySQL monthly outages which is their ethernal story -> never solved. Also if you don't want mysql goodies, then you'll be very happy with pure HTML pages ;)
Sorry, it's off topic. Consider this note when you test or run your website there.
-- Cheers!
Comment #20
Bob445 commentedSo nobody know where this error come from in vbulletin ?
Comment #21
sunThis is because drupalvb executes queries with (hard-coded)
mysql_*function calls.Bad for you, great for me. I already considered to re-factor the vB database integration.
Comment #22
sunDrupalvb 5.x-2.x implements a completely overhauled database interface to vBulletin now. A development snapshot should be available within the next 12 hours. A first release candidate will follow in the next days, so stay tuned.
Comment #23
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.