So, when you do an install, part of it calls _drupalvb_init_user_map(). This in turn tries to use drupalvb_db_query to query the user table in the bulletin board's database.

But the problem is - the connection information for the bboard doesn't exist yet - it has yet to be set up. So, the query fails, as it tries to query a 'user' table in the local database and fails.

I think this needs to be moved out of the install hook and maybe integrated with the form that lets you set up the database information.

CommentFileSizeAuthor
#3 drupalvb-DRUPAL-5--2.initial-import.patch2.56 KBsun

Comments

sun’s picture

Title: Error / Problem when installing? » _drupalvb_init_user_map() not possible at installation time

Good catch!

GravitySpec’s picture

Any idea when this fix will be available?

I think it is somewhat related to the problem I'm having getting 2.1 to work with my copy of Drupal 5.10 that I upgraded from 5.6. Using 1.1 seems to work fine, but when I unload and install 2.1, the minute I activate it, it says my database connection info is incorrect, so I set go to the page it points me to and double check my vbulletin database connection info. I have a standalone database for it so I do not use a prefix. I also have the config.php file I carried over from the old Drupal install with all the correct connection info. but once I save the information. My site goes blank with simply the following error "Access denied for user 'ODBC'@'localhost' (using password: NO)". I'm not sure where things are going wrong with this module as this is a pretty general error from what I see. At this point I can't make use of 2.1. Any help would be greatly appreciated.

sun’s picture

Status: Active » Fixed
StatusFileSize
new2.56 KB

Committed attached patch, which initializes DrupalvB's user mapping table upon first submit of the database settings form instead.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.