News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF MediaWiki integration released

Started by SleePy, December 05, 2011, 11:40:48 PM

Previous topic - Next topic

emanuele

Commeting out that single line the code is not executed.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Account Abandoned

Has anyone figured out a fix for the error:

QuoteSorry! We could not process your edit due to a loss of session data. Please try again. If it still does not work, try logging out and logging back in.

It happens every time I attempt to create or edit a page. Latest version of MW + SMF.

emanuele

What version of mediawiki? (and maybe SMF too)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Arantor


Account Abandoned

MW 1.20.3

SMF 2.0.4

i.e. the latest version :-\

emanuele

In your LocalSettings.php (mediawiki), remove:
$wgSMFLogin = true;


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Account Abandoned

I removed it, now I am asked to login (mediawiki) and when I do I get:

QuoteLogin error
Another Admin Wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again.

Edit: My cookies ARE indeed enabled

emanuele

mmm...okay, I was probably looking at the wrong file...
Restore $wgSMFLogin and comment out $wgCookieDomain instead.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Account Abandoned

Alrighty, I will try that and report back :)

Account Abandoned

This solution worked! Thank you very much!

donkenoji

I use php debugging so I can keep an eye on scripts that aren't working properly.  Anyone else getting this with the integration?

Strict Standards: Declaration of Auth_SMF::modifyUITemplate() should be compatible with AuthPlugin::modifyUITemplate(&$template, &$type) in path_to_wiki/wiki/extensions/Auth_SMF.php on line 410

Strict Standards: Declaration of Auth_SMF::allowPropChange() should be compatible with AuthPlugin::allowPropChange($prop = '') in path_to_wiki/wiki/extensions/Auth_SMF.php on line 410

Strict Standards: Declaration of Auth_SMF::initUser() should be compatible with AuthPlugin::initUser(&$user, $autocreate = false) in path_to_wiki/wiki/extensions/Auth_SMF.php on line 410



SMF 2.0.4
MW: 1.20.3

emanuele

The first function seems to have an argument missing (even though the "new" argument in MW is not apparently used), the last one seems to have a "pass-by-ref" missing on $user, but no idea about the second one...arg, I have installed the 1.20.2, I have to download the new one to be sure...


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

donkenoji

Quote from: emanuele on March 15, 2013, 01:34:13 PM
The first function seems to have an argument missing (even though the "new" argument in MW is not apparently used), the last one seems to have a "pass-by-ref" missing on $user, but no idea about the second one...arg, I have installed the 1.20.2, I have to download the new one to be sure...

Alright, in the meantime I'll downgrade MW.  See what happens.

emanuele

I expect it will be the same, since the issues I reported are from 1.20.2, I can imagine in .3 they changed something else in allowPropChange.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

donkenoji

Quote from: emanuele on March 15, 2013, 01:58:58 PM
I expect it will be the same, since the issues I reported are from 1.20.2, I can imagine in .3 they changed something else in allowPropChange.

Ah, that's terrible news.  Is there a version that is properly working with this extension, that doesn't 1) Print markup, or 2) no noticable errors?

emanuele

I *think* two things are not that difficult to fix:
Code (find) Select
public function modifyUITemplate(&$template)
Code (replace with) Select
public function modifyUITemplate( &$template, &$type )
and:
Code (find) Select
public function initUser( $user, $autocreate = false)
Code (replace with) Select
public function initUser( &$user, $autocreate = false)
you can start with that and see if it at least remove those two errors.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

donkenoji

Quote from: emanuele on March 15, 2013, 02:23:32 PM
I *think* two things are not that difficult to fix:
Code (find) Select
public function modifyUITemplate(&$template)
Code (replace with) Select
public function modifyUITemplate( &$template, &$type )
and:
Code (find) Select
public function initUser( $user, $autocreate = false)
Code (replace with) Select
public function initUser( &$user, $autocreate = false)
you can start with that and see if it at least remove those two errors.

Wow, your quick response and accuracy on the subject astounds me. 

The final error I'm getting now is:
Strict Standards: Declaration of Auth_SMF::allowPropChange() should be compatible with AuthPlugin::allowPropChange($prop = '') in path_to_wiki/wiki/extensions/Auth_SMF.php on line 410

emanuele

I have to grab the .3 MW version...tomorrow.
Feel free to bump the topic, I could forget about it (don't tell anyone, but my memory is a mess :P).


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

donkenoji

NP Man; and just for science, some more errors for interested people =D

Strict Standards: Declaration of Auth_SMF::allowPropChange() should be compatible with AuthPlugin::allowPropChange($prop = '') in /path_to_wiki/extensions/Auth_SMF.php on line 410

Warning: in_array() expects parameter 2 to be array, null given in  /path_to_wiki/extensions/Auth_SMF.php on line 879

emanuele

That is probably something you forgot to setup on your LocalSettings.php, read the instructions at the beginning of the file, $wgSMFAdminGroupID should be an array. ;)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: