Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [mootropolis.com] Strange Problems with 2.12 and vbulletin plugin 1.6

Quote Reply
Re: [mootropolis.com] Strange Problems with 2.12 and vbulletin plugin 1.6 In reply to
Yes, thatīs it. And i really dont undertstand it.
If you watch the script you will see that:

$AUTH_CFG = Links::Plugins->get_plugin_user_cfg ('Auth_vBulletin');
my $path = $AUTH_CFG->{vbulletin_dir};
-e $path or Links::fatal ("Unable to locate vBulletin installation path: $path");

# Load the config.php script.
open (CFG, "< $path/admin/config.php") or Links::fatal ("Unable to load vBulletin Config file. $!"); // Code cut, while using .php and not .php3
read CFG, my $data, -s CFG;
close CFG;

# Get the connection information.
my %config;
($config{dbdriver}) = $data =~ /\$dbservertype=["']([^"']+)/;
($config{dbuser}) = $data =~ /\$dbusername=["']([^"']+)/;
($config{dbpass}) = $data =~ /\$dbpassword=["']([^"']+)/;
($config{dbserver}) = $data =~ /\$servername=["']([^"']+)/;
($config{dbname}) = $data =~ /\$dbname=["']([^"']+)/;

# Load the w3tvars.pm file and connect.
_connect (%config); /here is the call to Line 278

Itīs quite the same code than that in 1.4.


To solve the problem, substitute this
($config{dbdriver}) = $data =~ /\$dbservertype=["']([^"']+)/;
($config{dbuser}) = $data =~ /\$dbusername=["']([^"']+)/;
($config{dbpass}) = $data =~ /\$dbpassword=["']([^"']+)/;
($config{dbserver}) = $data =~ /\$servername=["']([^"']+)/;
($config{dbname}) = $data =~ /\$dbname=["']([^"']+)/;
with that:
($config{dbdriver}) = "mysql";
($config{dbuser}) = "xxx";
($config{dbpass}) = "xxx";
($config{dbserver}) = "localhost";
($config{dbname}) = "xxx";


Very funny for me is that if i choose as path for the config.php the one from the vb 2.9
everything is ok, though these config.php is absolutely the same than the one from the 2.3.2
The problem is in this configuration, that the file (config.php) was found, else ... Links::fatal ("Unable to load vBulletin Config file ...
but my $data is empty after reading.

There must be something i dont see.
Subject Author Views Date
Thread Strange Problems with 2.12 and vbulletin plugin 1.6 Robert 3593 Sep 7, 2003, 11:59 AM
Thread Re: [Robert] Strange Problems with 2.12 and vbulletin plugin 1.6
mootropolis.com 3521 Sep 8, 2003, 3:22 PM
Thread Re: [mootropolis.com] Strange Problems with 2.12 and vbulletin plugin 1.6
Robert 3517 Sep 8, 2003, 7:08 PM
Thread Re: [Robert] Strange Problems with 2.12 and vbulletin plugin 1.6
Robert 3524 Sep 8, 2003, 7:10 PM
Thread Re: [Robert] Strange Problems with 2.12 and vbulletin plugin 1.6
mootropolis.com 3504 Sep 9, 2003, 12:02 AM
Thread Re: [mootropolis.com] Strange Problems with 2.12 and vbulletin plugin 1.6
Robert 3500 Sep 9, 2003, 12:56 AM
Thread Re: [Robert] Strange Problems with 2.12 and vbulletin plugin 1.6
mootropolis.com 3527 Sep 9, 2003, 1:04 AM
Post Re: [mootropolis.com] Strange Problems with 2.12 and vbulletin plugin 1.6
mootropolis.com 3467 Sep 9, 2003, 4:04 PM