Topic on Extension talk:Phpbb Single Sign-On/Flow

Phpbb Single Sign-On No Longer Works with MediaWiki 1.24.x?

6
108.47.157.29 (talkcontribs)

Just Installed the latest MediaWiki 1.24.1. The below $wgPhpbbSSO was working in 1.23.x but after moving to 1.24 it requires the fully qualified Path for the wiki to load correctly. However even if the wiki loads I am still unable use the module, It logs me out of phpbb3 instead. Any updates to make this work?

#$wgPhpbbSSO_Forum_Location = './../phpBB3/'; //Using your absolute server path to this would be better; trailing slash required - e.g. /home/user/www/forum/   
$wgPhpbbSSO_Forum_Location = '/var/www/phpBB3/';
require_once("$IP/extensions/phpbSSO/phpbSSO.php");
$wgAuth = new Auth_remoteuser();

function noLoginLogOUt(&$list) {
        unset( $list['Userlogout'] );
        unset( $list['Userlogin'] );
        return true;
}
$wgHooks['SpecialPage_initList'][]='noLoginLogOUt';

Thanks

100.11.93.217 (talkcontribs)

Hello,

I do not know why this code was changed (somebody please inform me if you know why), but you need to go to wiki/includes/User.php and make the following change under public function saveSettings():

Change this

                                'user_password' => $this->mPassword->toString(),
                                'user_newpassword' => $this->mNewpassword->toString(),

to this

                                'user_password' => $this->mPassword,
                                'user_newpassword' => $this->mNewpassword,

Good luck :)

108.13.218.111 (talkcontribs)
64.254.160.199 (talkcontribs)

In MW 1.25.1, PHPBB 3.0.14, the extension doesn't work:

Fatal error: Call to a member function enable_super_globals() on null in /wiki/extensions/phpbSSO/phpbb.php on line 39

89.150.160.25 (talkcontribs)

I get almost the same error in MW1.19.11:

Fatal error: Call to a member function enable_super_globals() on a non-object in /wiki/extensions/phpbSSO/phpbb.php on line 39

71.226.59.128 (talkcontribs)

Anybody have a workaround to the "Call to a member function enable_super_globals() on a non-object" problem?

Reply to "Phpbb Single Sign-On No Longer Works with MediaWiki 1.24.x?"