Quote:
Originally Posted by ndahiya
# Rehash of sammyman's and my posts in the old thread::
You might get the following error (looks like only with PHP 4.3.11):
Workaround: In includes/SpecialUserlogin.php, find:
$u =& $this->initUser( $u );
Replace this to this:
$u = $this->initUser( $u );
Excessive Database Pings
This works perfectly fine, but for one problem.... Inserting the code in LocalSettings.php creates a "session" to mysql every time someone accesses *any* page in the wiki... (you can see this by putting in the wrong password). On my server, this caused too many sessions being created in mysql, and resulted in the intermittent access problems (as the db was unavailable)!!
The way around this is (Thogh a less elegant solution, and one you have to reapply every time your upgrade mediawiki) to insert the same code near the begining of "includes/User.php"
This takes care of the excess pinging problem, as the vb database is accessed only when a user tries to login.
|
Well, concerning the "Excessive Database Pings" I can't make the modification work.
I've removed :
PHP Code:
require_once("AuthPlugin_vBulletin.php");
$wgAuth = new AuthPlugin_vBulletin($wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, "vb_");
in the LocalSettings.php
and put this (not in the class) at the beginning of those 2 files : User.php and SpecialUserLogin.php and... my bridge doesn't work anymore. Any ideas on how to debug this ?
I'm using MW12 and vB 3.7.2
Thanks,
Charles.