Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: PhuriousGeorge on February 23, 2013, 04:58:45 PM

Title: Trouble with MediaWiki integration
Post by: PhuriousGeorge on February 23, 2013, 04:58:45 PM
Attempting to integrate my fresh installed MediaWiki with my forums using the bridge http://www.simplemachines.org/community/index.php?topic=461612.0 (http://'here'). First issue I'm running into is I can't seem to get my $sgSMFPath configured correctly. I've tried several iterations to no avail. The code that needs edited is:

# Relative path to the forum directory from the wiki
# Do not put a trailing /
# Example: /public_html/forum and /public_html/wiki -> ../forum
$wgSMFPath = "../forum";


My SMF is installed in the base wwwroot directory with MediaWiki as wwwroot/wiki

Edit: Just tried this too (yay Google) and it didn't seem to work:

$wgSMFPath = $_SERVER['DOCUMENT_ROOT'];

Thanks (I swear I'll learn PHP if it's the last thing I do! Lol)
Title: Re: Trouble with MediaWiki integration
Post by: Kindred on February 24, 2013, 04:08:46 PM
$wgSMFPath = ".."
Title: Re: Trouble with MediaWiki integration
Post by: PhuriousGeorge on February 25, 2013, 08:19:33 PM
Hmm, I had already tried that, and it didn't work. Tried again anyway with the same results. Guess I could try to replicate my setup on my home computer and try it with root/forum, root/wiki. If there an easy way to change all the filepaths contained within my SMF install if I decided to go that way? I don't think I should have to do that, but I'd really like to get this working. as it's setup, it *should* be working. May have to look into paid support because wiki/forum integration was my whole reason for moving from hosted to my dedi.

Thanks for the reply!
Title: Re: Trouble with MediaWiki integration
Post by: Kindred on February 25, 2013, 09:28:36 PM
Moving your forum URL is easy...  Download and use repair_settings.php

The instructions say to use the relative path, but your cla try using an absolute path...
Title: Re: Trouble with MediaWiki integration
Post by: PhuriousGeorge on February 27, 2013, 12:00:59 AM
Think I found the issue. Turned debugging on in ISS for another problem I'm running into and thought about testing this ;)

Here's apparently what it's trying before I 500:

PHP Strict Standards:  Declaration of Auth_SMF::modifyUITemplate() should be compatible with AuthPlugin::modifyUITemplate(&$template, &$type) in C:\inetpub\wwwroot\wiki\extensions\Auth_SMF.php on line 410
PHP Strict Standards:  Declaration of Auth_SMF::allowPropChange() should be compatible with AuthPlugin::allowPropChange($prop = '') in C:\inetpub\wwwroot\wiki\extensions\Auth_SMF.php on line 410
PHP Strict Standards:  Declaration of Auth_SMF::initUser() should be compatible with AuthPlugin::initUser(&$user, $autocreate = false) in C:\inetpub\wwwroot\wiki\extensions\Auth_SMF.php on line 410


No idea what this is talking about. Any ideas?
Title: Re: Trouble with MediaWiki integration
Post by: PhuriousGeorge on March 18, 2013, 08:09:54 PM
Just got time to get back to working on the Wiki. Anyone have any insight into this issue?

Nvm...solved on another thread...
http://www.simplemachines.org/community/index.php?topic=461612.msg3510273#msg3510273