Last modified: 2014-05-27 17:50:14 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 T67787, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65787 - Exception: Parameter 2 to ScribuntoHooks::formatLimitData() expected to be a reference, value given
Exception: Parameter 2 to ScribuntoHooks::formatLimitData() expected to be a ...
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
REL1_22-branch
All Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-27 00:40 UTC by Bob Dye
Modified: 2014-05-27 17:50 UTC (History)
3 users (show)

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


Attachments

Description Bob Dye 2014-05-27 00:40:56 UTC
[aa3f4156] /wiki/Main_page Exception from line 212 of /var/www/html/mediawiki/includes/Hooks.php: Detected bug in an extension! Hook ScribuntoHooks::formatLimitData has invalid call signature; Parameter 2 to ScribuntoHooks::formatLimitData() expected to be a reference, value given

Backtrace:

#0 /var/www/html/mediawiki/includes/GlobalFunctions.php(3877): Hooks::run(string, array)
#1 /var/www/html/mediawiki/includes/parser/Parser.php(545): wfRunHooks(string, array)
#2 /var/www/html/mediawiki/includes/content/WikitextContent.php(300): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#3 /var/www/html/mediawiki/includes/WikiPage.php(3552): WikitextContent->getParserOutput(Title, integer, ParserOptions)
#4 /var/www/html/mediawiki/includes/PoolCounter.php(222): PoolWorkArticleView->doWork()
#5 /var/www/html/mediawiki/includes/Article.php(708): PoolCounterWork->execute()
#6 /var/www/html/mediawiki/includes/actions/ViewAction.php(44): Article->view()
#7 /var/www/html/mediawiki/includes/Wiki.php(448): ViewAction->show()
#8 /var/www/html/mediawiki/includes/Wiki.php(312): MediaWiki->performAction(Article, Title)
#9 /var/www/html/mediawiki/includes/Wiki.php(602): MediaWiki->performRequest()
#10 /var/www/html/mediawiki/includes/Wiki.php(467): MediaWiki->main()
#11 /var/www/html/mediawiki/index.php(49): MediaWiki->run()
#12 {main}

Changing:
public static function formatLimitData( $key, &$value, &$report, $isHTML, $localize ) {

to:
public static function formatLimitData( $key, $value, &$report, $isHTML, $localize ) {

eliminates the exception.
Comment 1 Brad Jorsch 2014-05-27 14:41:02 UTC
If you're going to use Scribunto revision b58ee1da or later, you must use MediaWiki core version ac2b9d7b or later. I note both of these revisions are *not* included in 1.22 while both *are* in 1.23; I can only presume that you are using the MediaWiki core 1.22 release and trying to use Scribunto 1.23 or a development version.
Comment 2 Bob Dye 2014-05-27 17:21:19 UTC
(In reply to Brad Jorsch from comment #1)
> If you're going to use Scribunto revision b58ee1da or later, you must use
> MediaWiki core version ac2b9d7b or later. I note both of these revisions are
> *not* included in 1.22 while both *are* in 1.23; I can only presume that you
> are using the MediaWiki core 1.22 release and trying to use Scribunto 1.23
> or a development version.

According to Git:
Mediawiki 1.22.6
Scribunto 1.22

???
Comment 3 Brad Jorsch 2014-05-27 17:50:14 UTC
Git won't tell you "Scribunto 1.22".

And the REL1_22 branch of Scribunto doesn't contain "formatLimitData" at all.

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


Navigation
Links