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.
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.