Last modified: 2007-06-13 11:33:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12165, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10165 - ParserFunctions.php breaks down on hebrew mediawiki 1.10.0
ParserFunctions.php breaks down on hebrew mediawiki 1.10.0
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-06 03:38 UTC by Nate Lallouche
Modified: 2007-06-13 11:33 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nate Lallouche 2007-06-06 03:38:33 UTC
I have just upgraded and I kept getting several of these per page:

Warning: array_slice() [function.array-slice]: The first argument should be an array in /home/astrolo4/public_html/astrology/w/languages/Language.php on line 1139

There is a bug I'm just about to report, with languages/language.php >> getMagic which creates these ugly notices if a $wgParser->setFunctionHook has been set and a magicWord has not been assigned to it.

Currently, ParserFunctions comes with a special section for the "he" (hebrew) langCode, which does not implement a magicWord for the functionHook "titleparts", which produces this message out-of-the-box, once (unless the person has previously fiddled with the hooks as in my case).

Please insert into extensions/ParserFunctions/ParserFunctions.php, function wfParserFunctionsLanguageGetMagic, under switch "he":

$magicWords['titleparts'] = array( 0, 'חלק בכותרת', 'titleparts' );

Thanks,
Nate
Comment 1 Raimond Spekking 2007-06-06 08:52:23 UTC
(In reply to comment #0)
> Please insert into extensions/ParserFunctions/ParserFunctions.php, function
> wfParserFunctionsLanguageGetMagic, under switch "he":
> 
> $magicWords['titleparts'] = array( 0, 'חלק בכותרת', 'titleparts' );
> 

Added with r22789 but I am unsure if this fix the problem in general. I leave the bug open.
Comment 2 Rob Church 2007-06-13 11:33:52 UTC
I fixed the general problem in r22820.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links