News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Trouble with MediaWiki integration

Started by PhuriousGeorge, February 23, 2013, 04:58:45 PM

Previous topic - Next topic

PhuriousGeorge

Attempting to integrate my fresh installed MediaWiki with my forums using the bridge http://www.simplemachines.org/community/index.php?topic=461612.0. 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)

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

PhuriousGeorge

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!

Kindred

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...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

PhuriousGeorge

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?

PhuriousGeorge

#5
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

Advertisement: