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

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



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

-----
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).

-----

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...

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.

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}

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}
-----



>On Mon, 2009-02-16 at 18:28 +0100, sparcc@gmx.net wrote:
>> Hi, 
>> 
>> I'm trying to install extensions using the 'mediawiki-extensions' package.
>> 
>> There does not appear to be a 'README' in the package
>> http://packages.debian.org/sid/all/mediawiki-extensions/filelist
>> 
>> ... and after searching the web... I could just come-up with:
>> http://linux.derkeiler.com/Mailing-Lists/Debian/2008-04/msg00936.html
>> Which basically says that... debian has a non-standard way of doing things here.
>The extensions package in debian sets up a pair of directories that are
>very different than the tarball installation in /etc/mediawikiXXX/
>You will need to manage the provided extensions in the same manner as
>you doe the modules available, & sites available, system that is used in
>apache2. The real issue with the debian system is that it is not
>realistic to manage a real working wiki that "might" require the
>addition of extensions that are not in the debian packages. It does
>work, ONLY works well with the extensions that are packed with debian,
>and that is a far cry from what is available. FYI I tried this about a
>year ago and a yaer before that and both times decided to use the
>standard installation as it worked  well and I was able to modify it as
>needed.
>Determine your own mileage from these comments as they are NOT intended
>to slam a package maintainer, just a recount of my personal experience.
>
>-- 
>John W. Foster
-- 
Computer Bild Tarifsieger! GMX FreeDSL - Telefonanschluss + DSL
für nur 17,95 ¿/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a


Reply to: