Problem installing Auth_phpbb

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php|uber.leet Forum Index // How do I?
View previous topic :: View next topic  
Author Message
woogers



Joined: 15 Jun 2008
Posts: 4

PostPosted: Sun Jun 15, 2008 6:46 pm    Post subject: Problem installing Auth_phpbb Reply with quote
I followed the installation instructions to the letter, and i get this error:

Notice: Undefined index: [database name] in /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php on line 243

Notice: Undefined index: localhost in /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php on line 244

Notice: Undefined index: [password] in /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php on line 245

Notice: Undefined index: [username] in /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php on line 246
exception 'Exception' with message 'There was a problem when connecting to the phpBB database.
Check your Host, Username, and Password settings.

MySQL Error Number: 0
MySQL Error Message:

' in /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php:699 Stack trace: #0 /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php(428): Auth_phpBB->mySQLError('There was a pro...') #1 /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php(491): Auth_phpBB->connect() #2 /home/bmp92/public_html/teamhonor/wiki/includes/User.php(567): Auth_phpBB->getCanonicalName('Woogers') #3 /home/bmp92/public_html/teamhonor/wiki/includes/User.php(259): User::getCanonicalName('Woogers', 'valid') #4 /home/bmp92/public_html/teamhonor/wiki/includes/SpecialUserlogin.php(371): User::newFromName('Woogers') #5 /home/bmp92/public_html/teamhonor/wiki/includes/SpecialUserlogin.php(447): LoginForm->authenticateUserData() #6 /home/bmp92/public_html/teamhonor/wiki/includes/SpecialUserlogin.php(100): LoginForm->processLogin() #7 /home/bmp92/public_html/teamhonor/wiki/includes/SpecialUserlogin.php(17): LoginForm->execute() #8 /home/bmp92/public_html/teamhonor/wiki/includes/SpecialPage.php(678): wfSpecialUserlogin(NULL, Object(SpecialPage)) #9 /home/bmp92/public_html/teamhonor/wiki/includes/SpecialPage.php(464): SpecialPage->execute('wfSpecialUserlo...', NULL, Object(SpecialPage)) #10 /home/bmp92/public_html/teamhonor/wiki/includes/Wiki.php(193): SpecialPage::executePath(NULL) #11 /home/bmp92/public_html/teamhonor/wiki/includes/Wiki.php(45): MediaWiki->initializeSpecialCases(Object(Title)) #12 /home/bmp92/public_html/teamhonor/wiki/index.php(90): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(WebRequest)) #13 {main}

Help would be greatly appreciated.
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Mon Jun 16, 2008 2:45 pm    Post subject: Reply with quote
What does the settings you added to LocalSettings.php look like. (Hide the username/password)
Back to top
View user's profile Send private message
woogers



Joined: 15 Jun 2008
Posts: 4

PostPosted: Tue Jun 17, 2008 9:09 am    Post subject: Reply with quote
// PHPBB User Database Plugin. (Requires MySQL Database)
require_once './extensions/Auth_phpBB.php';

$wgAuth_Config = array(); // Clean.

$wgAuth_Config['WikiGroupName'] = 'Wiki'; // Name of your PHPBB group
// users need to be a member
// of to use the wiki. (i.e. wiki)
// This can also be set to an array
// of group names to use more then
// one. (ie.
// $wgAuth_Config['WikiGroupName'][] = 'Wiki';
// $wgAuth_Config['WikiGroupName'][] = 'Wiki2';
// or
// $wgAuth_Config['WikiGroupName'] = array('Wiki', 'Wiki2');
// )

$wgAuth_Config['UseWikiGroup'] = false; // This tells the Plugin to require
// a user to be a member of the above
// phpBB group. (ie. wiki) Setting
// this to false will let any phpBB
// user edit the wiki.

$wgAuth_Config['UseExtDatabase'] = true; // This tells the plugin that the phpBB tables
// are in a different database then the wiki.
// The default settings is false.

//$wgAuth_Config['MySQL_Host'] = 'localhost'; // phpBB MySQL Host Name.
//$wgAuth_Config['MySQL_Username'] = '[username]'; // phpBB MySQL Username.
//$wgAuth_Config['MySQL_Password'] = '[password]'; // phpBB MySQL Password.
//$wgAuth_Config['MySQL_Database'] = 'bmp92_teamhonor'; // phpBB MySQL Database Name.

$wgAuth_Config['UserTB'] = 'phpbb_users'; // Name of your PHPBB user table. (i.e. phpbb_users)
$wgAuth_Config['GroupsTB'] = 'phpbb_groups'; // Name of your PHPBB groups table. (i.e. phpbb_groups)
$wgAuth_Config['User_GroupTB'] = 'phpbb_user_group'; // Name of your PHPBB user_group table. (i.e. phpbb_user_group)
$wgAuth_Config['PathToPHPBB'] = '../phpbb3/'; // Path from this file to your phpBB install.

// Local
$wgAuth_Config['LoginMessage'] = '<b>You need a phpBB account to login.</b><br /><a href="' . $wgAuth_Config['PathToPHPBB'] .
'ucp.php?mode=register">Click here to create an account.</a>'; // Localize this message.
$wgAuth_Config['NoWikiError'] = 'You are not a member of the required phpBB group.'; // Localize this message.

$wgAuth = new Auth_phpBB($wgAuth_Config); // Auth_phpBB Plugin.

also, the following is superimposed at the top of every page on the wiki:


Notice: Undefined index: MySQL_Database in /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php on line 243

Notice: Undefined index: MySQL_Host in /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php on line 244

Notice: Undefined index: MySQL_Password in /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php on line 245

Notice: Undefined index: MySQL_Username in /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php on line 246

Warning: Cannot modify header information - headers already sent by (output started at /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php:243) in /home/bmp92/public_html/teamhonor/wiki/includes/WebResponse.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at /home/bmp92/public_html/teamhonor/wiki/extensions/Auth_phpBB.php:243) in /home/bmp92/public_html/teamhonor/wiki/includes/WebResponse.php on line 10
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Tue Jun 17, 2008 2:43 pm    Post subject: Reply with quote
The problem is that you have

Code:
$wgAuth_Config['UseExtDatabase'] = true; // This tells the plugin that the phpBB tables
// are in a different database then the wiki.
// The default settings is false.


So you set this to true but the following are still commented out.

Code:
//$wgAuth_Config['MySQL_Host'] = 'localhost'; // phpBB MySQL Host Name.
//$wgAuth_Config['MySQL_Username'] = '[username]'; // phpBB MySQL Username.
//$wgAuth_Config['MySQL_Password'] = '[password]'; // phpBB MySQL Password.
//$wgAuth_Config['MySQL_Database'] = 'bmp92_teamhonor'; // phpBB MySQL Database Name.


Un-comment the above by removing the // at the start of each line.

i.e

Code:
$wgAuth_Config['MySQL_Host'] = 'localhost'; // phpBB MySQL Host Name.
$wgAuth_Config['MySQL_Username'] = '[username]'; // phpBB MySQL Username.
$wgAuth_Config['MySQL_Password'] = '[password]'; // phpBB MySQL Password.
$wgAuth_Config['MySQL_Database'] = 'bmp92_teamhonor'; // phpBB MySQL Database Name.
Back to top
View user's profile Send private message
woogers



Joined: 15 Jun 2008
Posts: 4

PostPosted: Wed Jun 18, 2008 7:35 pm    Post subject: Reply with quote
I got it to work, thanks. Is there a way I can change the Create an Account link? The user registration pages is at a different location.
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Thu Jun 19, 2008 11:16 am    Post subject: Reply with quote
Here is the link you would need to change.

Code:
// Local
$wgAuth_Config['LoginMessage'] = '<b>You need a phpBB account to login.</b><br /><a href="' . $wgAuth_Config['PathToPHPBB'] . 'ucp.php?mode=register">Click here to create an account.</a>'; // Localize this message.


Change it to

Code:
// Local
$wgAuth_Config['LoginMessage'] = '<b>You need a phpBB account to login.</b><br /><a href="LINKHERE">Click here to create an account.</a>'; // Localize this message.
Back to top
View user's profile Send private message
Mydnyte Syn



Joined: 25 Jun 2008
Posts: 9

PostPosted: Fri Jun 27, 2008 7:27 am    Post subject: Reply with quote
Terrific, thank you! That seems to have done the trick Smile
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    php|uber.leet Forum Index // How do I? All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

alexisBlue v1.2 // Theme Created By: Andrew Charron and Web Hosting Bluebook
Powered by phpBB © 2001, 2002 phpBB Group