Simple Machines Blogs > Developers' Blog

SMF MediaWiki integration released

<< < (8/36) > >>

Masterd:
Finally! I waited for this since this site's Wiki was released.

planet9:
Today I've been trying to integrate MediaWiki, going through this thread to understand what is needed to make it work. And here I'm at the end of the thread with the impression that this integration does not yet work.

Does anyone have it working completely?  Is there a workable section for LocalSettings.php and Auth_SMF.php?

Thanks.

SleePy:
There has been discussion at the github issue tracker page about some problems people have been having.
I've heard reports but haven't confirmed that it doesn't work with MW 1.18 (and thus most likely 1.19).

planet9:
My integration issue was a cookie problem.  The only problem I have now is that doing a wiki->login sends me to the forum after login and not back to the wiki.

As for the cookie issue there was nothing pointing me to this problem.  I didn't uncover it until I started outputting the cookie info.

Below is the cookie I was seeing:
a:3:{i:0;i:0;i:1;s:0:"";i:2;i:0;}

Auth_SMF.php unserializes it and there were no values in the variables id_member and password.

In order get a cookie like this:
a:4:{i:0;s:1:"1";i:1;s:40:"17f9832ca37464dc5ce25cffc408fefa1bfef908";i:2;i:1522519197;i:3;i:2;}

I had to turn off "Enable local storage of cookies".

These are my settings which work and integration works fine now:

SleePy:
As the note below that setting says, it doesn't work well with SSI.  What that setting does is fill out the path (ie /forum/) in the cookie so only that path can access the cookie.  By unchecking it, the cookie sets the path as /, which allows anything in that domain to work.  If you have subdomains you need to check the subdomains one.  That sets the wildcard (*) in the cookie for that domain.

I've updated the Auth file just now.  This one appears to work properly with MediaWiki 1.18


I'v also added your issue to the readmes FAQ section.  Hopefully that helps others in the future :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version