Customizing SMF > Portals, Bridges, and Integrations

MediaWiki SMF Bridge not working - No auth, portal removed...

<< < (3/6) > >>

nyall:
And, for the record:

I have reinstalled MediaWiki, this time using the same database than the forum with tables using a different preffix.

I am trying to make it work for now, and will deal with Short URLs later. Still, authentication is not working for some reason  ???

And, even more strange: I was able to login into MediaWiki before the integration using the default user created during installation, now all I get is an "incorrect password" message  :o

Andre N:
I changed line 176 of mediawiki/extensions/Auth_SMF.php from

--- Code: ---$smf_member_id = $user->getOption('smf_member_id');

--- End code ---
to

--- Code: ---$smf_member_id =  $user_settings['id_member'];

--- End code ---

and the login integration works fine. $user doesn't have any data set up at that point and $smf_member_id is never set so the authentication fails down the line.

As for your account that always redirected you to login, it didn't work for me either; maybe when you reinstalled you forgot to create it? I made my own :D

nyall:
Amazing, thank you very very much !

I could have never managed to solve it without your assistance. I owe you some "tapas" if you ever come to Spain  8)

nyall:
Follow up:

The authentication works (at least, at the main page the account is detected), however:

- I had to INSERT via SQL queries the permissions for the users. SMF Administrator was successfully added as MW Administrator, but since the admin user created during the installation cannot be used to login, I had no other users in the 'bureaucrat' group. I set $wgSMFSpecialGroups at LocalSettings.php but somehow it is ignored ???

- Neither administrator nor bureaucrat nor registered users can edit pages. When I click the "save changes" button, I receive a message that edition was not successful due to loss of session data. It recommends to log off and login again, but that does not help. $wgSMFLogin and $wgCookieDomain are set, to 'true' and to 'http://www.domain.com' respectively.

So, still needs some fine tuning ???

Any idea where to look?

nyall:

--- Quote from: nyall on February 05, 2012, 10:40:38 AM ---- Neither administrator nor bureaucrat nor registered users can edit pages. When I click the "save changes" button, I receive a message that edition was not successful due to loss of session data. It recommends to log off and login again, but that does not help. $wgSMFLogin and $wgCookieDomain are set, to 'true' and to 'http://www.domain.com' respectively.

--- End quote ---

This is solved by setting $wgCookieDomain = 'domain.com' without any prefix such as www or http

@moderators: Still testing and configuring, please do not mark this topic as solved (unless you don't mind me changing the status if required), once I have the integration fully working I will leave it as solved by myself, in the meantime I'd like to have it open to include new comments and discoveries. In addition to that, I think the README would benefit from inclusion of details not so obvious such as the one above. Thanks!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version