Unique problem?

 
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
Mydnyte Syn



Joined: 25 Jun 2008
Posts: 9

PostPosted: Thu Jul 31, 2008 5:36 pm    Post subject: Unique problem? Reply with quote
Hello! Okay, here's the deal. I installed a phpbb 3.0.2 forum. I also installed the mediawiki 1.12.0 and was extra careful when installing your PhPP Auth mod. Though, when I try to login I'm getting an error on the wiki:

Quote:
exception 'Exception' with message 'Unable to find phpBB installed at (../community/).' in /home/XXXXXX/public_html/community/shadowlore/extensions/Auth_phpBB.php:650 Stack trace: #0 /home/XXXXXX/public_html/community/shadowlore/extensions/Auth_phpBB.php(917): Auth_phpBB->loadPHPFiles('UTF8') #1 /home/XXXXXX/public_html/community/shadowlore/extensions/Auth_phpBB.php(493): Auth_phpBB->utf8('Jenica Cairn') #2 /home/XXXXXX/public_html/community/shadowlore/includes/User.php(567): Auth_phpBB->getCanonicalName('Jenica Cairn') #3 /home/XXXXXX/public_html/community/shadowlore/includes/User.php(259): User::getCanonicalName('Jenica Cairn', 'valid') #4 /home/XXXXXX/public_html/community/shadowlore/includes/SpecialUserlogin.php(371): User::newFromName('Jenica Cairn') #5 /home/XXXXXX/public_html/community/shadowlore/includes/SpecialUserlogin.php(447): LoginForm->authenticateUserData() #6 /home/XXXXXX/public_html/community/shadowlore/includes/SpecialUserlogin.php(100): LoginForm->processLogin() #7 /home/XXXXXX/public_html/community/shadowlore/includes/SpecialUserlogin.php(17): LoginForm->execute() #8 /home/XXXXXX/public_html/community/shadowlore/includes/SpecialPage.php(678): wfSpecialUserlogin(NULL, Object(SpecialPage)) #9 /home/XXXXXX/public_html/community/shadowlore/includes/SpecialPage.php(464): SpecialPage->execute('wfSpecialUserlo...', NULL, Object(SpecialPage)) #10 /home/XXXXXX/public_html/community/shadowlore/includes/Wiki.php(193): SpecialPage::executePath(NULL) #11 /home/XXXXXX/public_html/community/shadowlore/includes/Wiki.php(45): MediaWiki->initializeSpecialCases(Object(Title)) #12 /home/XXXXXX/public_html/community/shadowlore/index.php(90): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(WebRequest)) #13 {main}


Now, in order to reach my forum, you have to go to http://shroud-of-darkness.com/community/board.php

To reach the main portal, you need to go to http://shroud-of-darkness.com


I'm wondering what effect the url to the forum itself will have in relation to the mediawiki.

Could you help me please?
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Fri Aug 01, 2008 12:25 am    Post subject: Reply with quote
In try changing your path to phpbb3 from "../community/" to "../../community/" or "/home/XXXXXX/public_html/community/"
Back to top
View user's profile Send private message
Mydnyte Syn



Joined: 25 Jun 2008
Posts: 9

PostPosted: Fri Aug 01, 2008 7:07 am    Post subject: Reply with quote
Okay. I tried all three of those. The first two produced the same error that I had posted. The last one made the error come up like this:

Quote:
exception 'Exception' with message 'Unable to view external table
MySQL Error Number: 1146
MySQL Error Message: Table 'XXXXX_shadowlore.phpbb_users' doesn't exist

' in /home/XXXXX/public_html/community/shadowlore/extensions/Auth_phpBB.php:699 Stack trace: #0 /home/XXXXX/public_html/community/shadowlore/extensions/Auth_phpBB.php(505): Auth_phpBB->mySQLError('Unable to view ...') #1 /home/XXXXX/public_html/community/shadowlore/includes/User.php(567): Auth_phpBB->getCanonicalName('Jenica Cairn') #2 /home/XXXXX/public_html/community/shadowlore/includes/User.php(259): User::getCanonicalName('Jenica Cairn', 'valid') #3 /home/XXXXX/public_html/community/shadowlore/includes/SpecialUserlogin.php(371): User::newFromName('Jenica Cairn') #4 /home/XXXXX/public_html/community/shadowlore/includes/SpecialUserlogin.php(447): LoginForm->authenticateUserData() #5 /home/XXXXX/public_html/community/shadowlore/includes/SpecialUserlogin.php(100): LoginForm->processLogin() #6 /home/XXXXX/public_html/community/shadowlore/includes/SpecialUserlogin.php(17): LoginForm->execute() #7 /home/XXXXX/public_html/community/shadowlore/includes/SpecialPage.php(678): wfSpecialUserlogin(NULL, Object(SpecialPage)) #8 /home/XXXXX/public_html/community/shadowlore/includes/SpecialPage.php(464): SpecialPage->execute('wfSpecialUserlo...', NULL, Object(SpecialPage)) #9 /home/XXXXX/public_html/community/shadowlore/includes/Wiki.php(193): SpecialPage::executePath(NULL) #10 /home/XXXXX/public_html/community/shadowlore/includes/Wiki.php(45): MediaWiki->initializeSpecialCases(Object(Title)) #11 /home/XXXXX/public_html/community/shadowlore/index.php(90): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(WebRequest)) #12 {main}
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Fri Aug 01, 2008 3:19 pm    Post subject: Reply with quote
You have something wrong with your configuration. I do not know what but there is something.
Back to top
View user's profile Send private message
Mydnyte Syn



Joined: 25 Jun 2008
Posts: 9

PostPosted: Fri Aug 01, 2008 3:36 pm    Post subject: Reply with quote
Could it possibly be that the wiki is looking for /community/index.php when my url is actually /community/board.php?
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Sat Aug 02, 2008 8:24 am    Post subject: Reply with quote
The error you posted says it cant find the tables for phpBB in the database it has settings for.
Back to top
View user's profile Send private message
Mydnyte Syn



Joined: 25 Jun 2008
Posts: 9

PostPosted: Sat Aug 02, 2008 2:40 pm    Post subject: Reply with quote
Okay, I've got that fixed and I can now login. However, when I click the Create an account link at the mediawiki, it's unable to find that correct url to register an account at the forum. It's going to this url:

http://shroud-of-darkness.com/home/XXXXX/public_html/community/ucp.php?mode=register

When it should be going to this url: http://shroud-of-darkness.com/community/ucp.php?mode=register

LocalSettings:

Code:

// PHPBB User Database Plugin. (Requires MySQL Database)
require_once './extensions/Auth_phpBB.php';

$wgAuth_Config = array(); // Clean.

$wgAuth_Config['WikiGroupName'] = 'Shadowlore';       // 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'] = true;          // 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']    = 'XXXXX';       // phpBB MySQL Username.
$wgAuth_Config['MySQL_Password']    = 'XXXXX';       // phpBB MySQL Password.
$wgAuth_Config['MySQL_Database']    = 'XXXXX_phpbb3';       // 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']    = '/home/XXXXX/public_html/community/';         // Path from this file to your phpBB install.

// Local
$wgAuth_Config['LoginMessage']   = '<b>You need a forum 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.
Back to top
View user's profile Send private message
root
Site Admin


Joined: 24 Jun 2005
Posts: 471

PostPosted: Mon Aug 04, 2008 11:33 am    Post subject: Reply with quote
Edit this in Local Settings.

Code:
$wgAuth_Config['LoginMessage'] = '<b>You need a forum 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 to

Code:
$wgAuth_Config['LoginMessage']   = '<b>You need a forum account to login.</b><br /><a href="http://shroud-of-darkness.com/community/ucp.php?mode=register">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: Mon Aug 04, 2008 3:13 pm    Post subject: Reply with quote
Fantastic, thank you!
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