[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mediawiki-extensions - package... strongly suspect bug, wonder about adv. of deb packages...



On Mon, 2009-02-23 at 23:14 +0100, Michael Bonert wrote:
> Hi John,
> 
> Thanks. ( http://lists.debian.org/debian-user/2009/02/msg01426.html )
> I did get one module working (Cite.php).  
> 
> Above said, I have the impression that there is an incompatibility, between the
> 'mediawiki-extensions' package and 'mediawiki' in the stable branch.  I cannot
> confirm this... as I cannot find the upstream version information for the 
> 'mediawiki-extensions (1.4)' package ( http://packages.debian.org/source/lenny/mediawiki-extensions ).
> 
> However, I note that 'sid' and 'squeeze (testing)' use the '1:1.13.3' branch of mediawiki.  I'm quite certain the error I'm getting (see below) arises from a packaging problem in Debian, i.e. Debian package 'mediawiki' (1:1.12.0-2lenny2) is not compatible with 'mediawiki-extensions' (1.4), as mediawiki-extensions (1.4) appears to be derived from extension in the 1.13 branch of mediawiki.
> 
> I know that Mediawiki ( http://www.mediawiki.org/wiki/MediaWiki ) specifies that the version of
> the extensions has to match the program, e.g. Mediawiki version 1.12 has to use the extensions
> for version 1.12.  I note that there has been a previous bug, which appears to be related to
> this very issue -- based on the changelog http://packages.debian.org/changelogs/pool/main/m/mediawiki-extensions/mediawiki-extensions_1.4/changelog
>  -- see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=473785 .
> 
> I'm having problems with the ParserFunction extension (see error message below).
> 
> My set-up --
> 
> Versions:
> mediawiki: 1:1.12.0-2lenny2
> mediawiki-extensions: 1.4
This is most likely not going to work well if at all.

> 
> -----
> As for a fix... 
> I think that the 'mediawiki-extensions' package should be clearly 'mediawiki' version dependent, i.e.
> there ought to be a package 'mediawiki-extensions 1.12-1' (for mediawiki version 1.12) and a package 'mediawiki 1.13-1' (for mediawiki version 1.13).
Mediawiki is a fairly new addition to Debian, so you may want to converse with the package maintainer.
> -----
> 
> In any case, what are the advantages of using Debian's packages for mediawiki?
> -I've had the impression it would ease upgrading... but I'm uncertain about that.
> -I've had the impression that I'd get security updates quickly...
Not worth the effort. In my opinion your better off 'rolling your own'!
> 
> Currently, I'm seeing some disadvantages...
> -more limited documentation (see http://lists.debian.org/debian-user/2009/02/msg01271.html http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516693 )
> -possible additional bugs (see above)
> 
> Thanks,
> Michael
> 
> 
> 
> Error message:
> -----
> array(2) { ["LanguageGetMagic"]=>  array(1) { [0]=>  string(33) "wfParserFunctionsLanguageGetMagic" } ["ParserClearState"]=>  array(2) { [0]=>  array(2) { [0]=>  &NULL [1]=>  string(10) "clearState" } [1]=>  array(2) { [0]=>  &object(Cite)#19 (6) { ["mRefs"]=>  array(0) { } ["mOutCnt"]=>  int(0) ["mInCnt"]=>  int(0) ["mBacklinkLabels"]=>  NULL ["mParser"]=>  NULL ["mInCite"]=>  bool(false) } [1]=>  string(10) "clearState" } } } array(2) { ["LanguageGetMagic"]=>  array(1) { [0]=>  string(33) "wfParserFunctionsLanguageGetMagic" } ["ParserClearState"]=>  array(2) { [0]=>  array(2) { [0]=>  &NULL [1]=>  string(10) "clearState" } [1]=>  array(2) { [0]=>  &object(Cite)#19 (6) { ["mRefs"]=>  array(0) { } ["mOutCnt"]=>  int(0) ["mInCnt"]=>  int(0) ["mBacklinkLabels"]=>  NULL ["mParser"]=>  NULL ["mInCite"]=>  bool(false) } [1]=>  string(10) "clearState" } } } MediaWiki internal error.
You may need to check to see that your php settings are compatible with the mediawiki you are using.

> Original exception: exception 'MWException' with message 'Unknown datatype in hooks for ParserClearState
> ' in /usr/share/mediawiki1.7/includes/Hooks.php:85
> Stack trace:
> #0 /usr/share/mediawiki1.7/includes/Parser.php(230): wfRunHooks('ParserClearStat...', Array)
> #1 /usr/share/mediawiki1.7/includes/Parser.php(266): Parser->clearState()
> #2 /usr/share/mediawiki1.7/includes/OutputPage.php(369): Parser->parse('This page has b...', Object(Title), Object(ParserOptions), true, true, NULL)
> #3 /usr/share/mediawiki1.7/includes/GlobalFunctions.php(573): OutputPage->parse('This page has b...', true, true)
> #4 /usr/share/mediawiki1.7/includes/SkinTemplate.php(315): wfMsgExt('viewcount', Array, '14')
> #5 /usr/share/mediawiki1.7/includes/OutputPage.php(595): SkinTemplate->outputPage(Object(OutputPage))
> #6 /usr/share/mediawiki1.7/includes/Wiki.php(250): OutputPage->output()
> #7 /usr/share/mediawiki1.7/index.php(124): MediaWiki->finalCleanup(Array, Object(LoadBalancer), Object(OutputPage))
> #8 {main}
A word of advice: only enable the extensions NEEDED and then only one at a time. They are much easier to debug if you do that.

> Exception caught inside exception handler: exception 'MWException' with message 'Unknown datatype in hooks for ParserClearState
> ' in /usr/share/mediawiki1.7/includes/Hooks.php:85
> Stack trace:
> #0 /usr/share/mediawiki1.7/includes/Parser.php(230): wfRunHooks('ParserClearStat...', Array)
> #1 /usr/share/mediawiki1.7/includes/Parser.php(3740): Parser->clearState()
> #2 /usr/share/mediawiki1.7/includes/MessageCache.php(534): Parser->transformMsg('$1 - {{SITENAME...', Object(ParserOptions))
> #3 /usr/share/mediawiki1.7/includes/MessageCache.php(476): MessageCache->transform('$1 - {{SITENAME...')
> #4 /usr/share/mediawiki1.7/includes/GlobalFunctions.php(450): MessageCache->get('pagetitle', true, false)
> #5 /usr/share/mediawiki1.7/includes/GlobalFunctions.php(409): wfMsgGetKey('pagetitle', true, false, true)
> #6 /usr/share/mediawiki1.7/includes/GlobalFunctions.php(316): wfMsgReal('pagetitle', Array, true)
> #7 /usr/share/mediawiki1.7/includes/OutputPage.php(178): wfMsg('pagetitle', 'Internal error')
> #8 /usr/share/mediawiki1.7/includes/Exception.php(46): OutputPage->setPageTitle('Internal error')
> #9 /usr/share/mediawiki1.7/includes/Exception.php(70): MWException->reportHTML()
> #10 /usr/share/mediawiki1.7/includes/Exception.php(145): MWException->report()
> #11 /usr/share/mediawiki1.7/includes/Exception.php(179): wfReportException(Object(MWException))
> #12 [internal function]: wfExceptionHandler(Object(MWException))
> #13 {main}
> -----
Lastly: top posting is frowned upon within this list: 
Good luck!
-- 
John W. Foster


Reply to: