Advertisement:

Author Topic: SMF MediaWiki integration released  (Read 359601 times)

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #60 on: February 12, 2013, 09:29:04 AM »
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.

Offline Account Abandoned

  • Full Member
  • ***
  • Posts: 512
Re: SMF MediaWiki integration released
« Reply #61 on: March 12, 2013, 10:25:24 AM »
Has anyone figured out a fix for the error:

Quote
Sorry! 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.

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #62 on: March 12, 2013, 10:35:09 AM »
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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,397
    • StoryBB/StoryBB on GitHub
Re: SMF MediaWiki integration released
« Reply #63 on: March 12, 2013, 10:35:22 AM »
(Latest isn't a version)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Account Abandoned

  • Full Member
  • ***
  • Posts: 512
Re: SMF MediaWiki integration released
« Reply #64 on: March 12, 2013, 10:58:11 AM »
MW 1.20.3

SMF 2.0.4

i.e. the latest version :-\

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #65 on: March 13, 2013, 09:50:31 AM »
In your LocalSettings.php (mediawiki), remove:
Code: [Select]
$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.

Offline Account Abandoned

  • Full Member
  • ***
  • Posts: 512
Re: SMF MediaWiki integration released
« Reply #66 on: March 14, 2013, 02:07:31 PM »
I removed it, now I am asked to login (mediawiki) and when I do I get:

Quote
Login 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

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #67 on: March 14, 2013, 03:15:48 PM »
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.

Offline Account Abandoned

  • Full Member
  • ***
  • Posts: 512
Re: SMF MediaWiki integration released
« Reply #68 on: March 14, 2013, 06:22:41 PM »
Alrighty, I will try that and report back :)

Offline Account Abandoned

  • Full Member
  • ***
  • Posts: 512
Re: SMF MediaWiki integration released
« Reply #69 on: March 15, 2013, 10:05:10 AM »
This solution worked! Thank you very much!

Offline donkenoji

  • Semi-Newbie
  • *
  • Posts: 19
Re: SMF MediaWiki integration released
« Reply #70 on: March 15, 2013, 10:42:20 AM »
I use php debugging so I can keep an eye on scripts that aren't working properly.  Anyone else getting this with the integration?

Code: [Select]
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

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #71 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...


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.

Offline donkenoji

  • Semi-Newbie
  • *
  • Posts: 19
Re: SMF MediaWiki integration released
« Reply #72 on: March 15, 2013, 01:50:38 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.

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #73 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.


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.

Offline donkenoji

  • Semi-Newbie
  • *
  • Posts: 19
Re: SMF MediaWiki integration released
« Reply #74 on: March 15, 2013, 02:11:43 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?

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #75 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.


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.

Offline donkenoji

  • Semi-Newbie
  • *
  • Posts: 19
Re: SMF MediaWiki integration released
« Reply #76 on: March 15, 2013, 02:28:17 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:
Code: [Select]
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

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #77 on: March 15, 2013, 07:37:35 PM »
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.

Offline donkenoji

  • Semi-Newbie
  • *
  • Posts: 19
Re: SMF MediaWiki integration released
« Reply #78 on: March 15, 2013, 08:13:49 PM »
NP Man; and just for science, some more errors for interested people =D

Code: [Select]
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

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: SMF MediaWiki integration released
« Reply #79 on: March 15, 2013, 08:37:05 PM »
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.