News:

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

Main Menu

SMF and MediaWiki Bridge

Started by rsw686, February 08, 2008, 08:28:51 PM

Previous topic - Next topic

MultiformeIngegno

Maybe a team member can take & continue the project... I think it's a really interesting bridge, that can be useful for a lot of people! ;)
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

[-Trogan-]

What about any help on my question?

MultiformeIngegno

Quote from: Sir-Uli on July 26, 2008, 07:28:31 PM
I'm not redirected back to the wiki after login and if i try to logout from the wiki, i get the error-message:
Session verification failed. Please try logging out and back in again, and then try again.
from SMF when trying to Logout from the wiki. When i logout manually in the forum, it works.
Really the same here... :(

Same config:
Enable local storage of cookies [ ]
Use subdomain independent cookies [X]
Use database driven sessions [X]


But I've MW 1.15.1 and SMF 2.0RC2...
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

KensonPlays

Looks nice! Although I can't understand wiki markup and the wiki stuff, so I won't be having one...

Owner of Mesozoic Haven

DHC

#224
Quote from: rsw686 on January 27, 2010, 08:25:42 AM
Quote from: hashi on January 27, 2010, 01:44:37 AM
Clearly I don't understand the code used and nor do I have the time to be sifting through it playing with it. Surely you must know enough to be able to assist in what is probably a very quick fix?


And I have the time to be working on something that I don't even use now? I would have to setup a test database for SMF and MediaWiki, upload the files, and configure both applications. Then I need to configure the bridge, work on a fix, and test. That will take at least 2 hours of my time. I was nice enough to contribute a free bridge that I wrote for my site to address shortcomings in others. In return I get demanded to add features. You didn't even answer my question of if your forum was converted to UTF8 support.

Ryan,

Just a quick note to let you know that I, for one, appreciate your contribution of the bridge. I noticed your site had converted to vB and suspected you might be no longer supporting the bridge. Like others, I hope someone will pick up your efforts and keep the SMF <--> MediaWiki bridge viable, though I do understand the concern about lack of progress on SMF 2.0.

Thanks again!

Oldiesmann

The "session verification failed" issue is due to a change in how SMF handles sessions. It now uses a randomly-generated session variable instead of "sesc", which is more secure. Try this and see if it fixes the error...

Open up Auth_SMF.php

Find
Code (Line 333) Select
smf_redirectWrapper('logout_url', 'logout;sesc=' . $_SESSION['rand_code']);

Replace
smf_redirectWrapper('logout_url', 'logout;' . $_SESSION['session_var'] . '=' . $_SESSION['rand_code']);

MultiformeIngegno

#226
Oldiesmann in my Auth_SMF.php if I search that line I find only:

function UserLogoutSMF(&$user) {
smf_sessionSetup();
//smf_redirectWrapper('logout_url', 'logout;sesc=' . $_SESSION['rand_code']);
smf_redirectWrapper('logout_url', "logout;{$_SESSION['session_var']}={$_SESSION['session_value']}");
}


But it's commented.... I've attached my original file...

Thanks in advance....

P.S.: Also if I change: smf_redirectWrapper('logout_url', "logout;{$_SESSION['session_var']}={$_SESSION['session_value']}"); with your code it says always "session verify error blabla"... I've also cleared the cache but... the same..

P.P.S.: Another issue without any doubt related to this (and also other users here noticed the same) is that if I try to login from the login box in wiki I ALWAYS receive a "password wrong" error.. then I'm redirected to the forum login and if I enter there my details it works!!
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

[-Trogan-]


Oldiesmann

Quote from: MultiformeIngegno on February 28, 2010, 04:34:55 PM
Oldiesmann in my Auth_SMF.php if I search that line I find only:

function UserLogoutSMF(&$user) {
smf_sessionSetup();
//smf_redirectWrapper('logout_url', 'logout;sesc=' . $_SESSION['rand_code']);
smf_redirectWrapper('logout_url', "logout;{$_SESSION['session_var']}={$_SESSION['session_value']}");
}


But it's commented.... I've attached my original file...

Thanks in advance....

P.S.: Also if I change: smf_redirectWrapper('logout_url', "logout;{$_SESSION['session_var']}={$_SESSION['session_value']}"); with your code it says always "session verify error blabla"... I've also cleared the cache but... the same..

P.P.S.: Another issue without any doubt related to this (and also other users here noticed the same) is that if I try to login from the login box in wiki I ALWAYS receive a "password wrong" error.. then I'm redirected to the forum login and if I enter there my details it works!!

Does the logout from the wiki work with the code that's there before you change it? My copy of that file is a bit old and doesn't have the line with the curly brackets.

Not sure what to say about the password. Will look into that tomorrow when I have time.

MultiformeIngegno

#229
No, the logout doesn't work neighter with your code and the previously attached file..
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

MultiformeIngegno

Any news with this Oldiesmann..?
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Leemy

My bridge broke when I moved to 2.0 RC2. is there a working bridge?

MultiformeIngegno

Quote from: Leemy on March 05, 2010, 12:39:13 PM
My bridge broke when I moved to 2.0 RC2. is there a working bridge?
Have you changed $wgSMFVersion to 2.0 ?
$wgSMFVersion = "2.0";

Anyway, I use it on SMF 2.0 RC2 fairly well (apart the problem I've posted above.. :P)!
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Leemy

Quote from: MultiformeIngegno on March 05, 2010, 01:24:53 PM
Quote from: Leemy on March 05, 2010, 12:39:13 PM
My bridge broke when I moved to 2.0 RC2. is there a working bridge?
Have you changed $wgSMFVersion to 2.0 ?
$wgSMFVersion = "2.0";

Anyway, I use it on SMF 2.0 RC2 fairly well (apart the problem I've posted above.. :P)!

Sorry Im really new to the bridge where in MediaWiki do I change this? Thanks.

MultiformeIngegno

Quote from: Leemy on March 05, 2010, 01:57:07 PM
Quote from: MultiformeIngegno on March 05, 2010, 01:24:53 PM
Quote from: Leemy on March 05, 2010, 12:39:13 PM
My bridge broke when I moved to 2.0 RC2. is there a working bridge?
Have you changed $wgSMFVersion to 2.0 ?
$wgSMFVersion = "2.0";

Anyway, I use it on SMF 2.0 RC2 fairly well (apart the problem I've posted above.. :P)!

Sorry Im really new to the bridge where in MediaWiki do I change this? Thanks.
Not in MediaWiki, open Auth_SMF.php and search that line! ;)
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Leemy

Hm ok so I commented out the 1.1 line and uncommented the 2.0 line.  But I still receive this error when I visit my Wiki:

Unable to view external table.

mySQL error number: 0
mySQL error message:

KensonPlays

Decided I will try mediawiki, how do I get this working? on SMF's side, mediawiki's?

Owner of Mesozoic Haven

WhiteFire Sondergaard

Any plans to upgrade this to support postgresql for those of us running our SMF under it?

KensonPlays

NVM, figured it out a few days ago...

Owner of Mesozoic Haven

MultiformeIngegno

I've tried the bridge with the new 1.16beta and it doesn't work!!
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Advertisement: