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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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