Page MenuHomePhabricator

ProofreadPage: There is no page number -25 in the pagination.
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error

MediaWiki version: 1.35.0-wmf.30

message
There is no page number -25 in the pagination.
exception.trace
#0 /srv/mediawiki/php-1.35.0-wmf.30/extensions/ProofreadPage/includes/Parser/PagesTagParser.php(170): ProofreadPage\Pagination\FilePagination->getDisplayedPageNumber(string)
#1 /srv/mediawiki/php-1.35.0-wmf.30/extensions/ProofreadPage/includes/ProofreadPage.php(140): ProofreadPage\Parser\PagesTagParser->render(array)
#2 /srv/mediawiki/php-1.35.0-wmf.30/includes/parser/Parser.php(3858): ProofreadPage\ProofreadPage::ProofreadPage\{closure}(NULL, array, Parser, PPFrame_Hash)
#3 /srv/mediawiki/php-1.35.0-wmf.30/includes/parser/PPFrame_Hash.php(327): Parser->extensionSubstitution(array, PPFrame_Hash)
#4 /srv/mediawiki/php-1.35.0-wmf.30/includes/parser/Parser.php(2866): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#5 /srv/mediawiki/php-1.35.0-wmf.30/includes/parser/Parser.php(1552): Parser->replaceVariables(string)
#6 /srv/mediawiki/php-1.35.0-wmf.30/includes/parser/Parser.php(639): Parser->internalParse(string)
#7 /srv/mediawiki/php-1.35.0-wmf.30/includes/content/WikitextContent.php(368): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
#8 /srv/mediawiki/php-1.35.0-wmf.30/includes/content/AbstractContent.php(565): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
#9 /srv/mediawiki/php-1.35.0-wmf.30/includes/Revision/RenderedRevision.php(267): AbstractContent->getParserOutput(Title, NULL, ParserOptions, boolean)
#10 /srv/mediawiki/php-1.35.0-wmf.30/includes/Revision/RenderedRevision.php(236): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
#11 /srv/mediawiki/php-1.35.0-wmf.30/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)
#12 /srv/mediawiki/php-1.35.0-wmf.30/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
#13 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#14 /srv/mediawiki/php-1.35.0-wmf.30/includes/Revision/RenderedRevision.php(198): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#15 /srv/mediawiki/php-1.35.0-wmf.30/includes/Storage/DerivedPageDataUpdater.php(1301): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#16 [internal function]: MediaWiki\Storage\DerivedPageDataUpdater->getCanonicalParserOutput()
#17 /srv/mediawiki/php-1.35.0-wmf.30/includes/edit/PreparedEdit.php(104): call_user_func(array)
#18 /srv/mediawiki/php-1.35.0-wmf.30/includes/edit/PreparedEdit.php(119): MediaWiki\Edit\PreparedEdit->getOutput()
#19 /srv/mediawiki/php-1.35.0-wmf.30/includes/Storage/DerivedPageDataUpdater.php(1279): MediaWiki\Edit\PreparedEdit->__get(string)
#20 /srv/mediawiki/php-1.35.0-wmf.30/includes/page/WikiPage.php(2057): MediaWiki\Storage\DerivedPageDataUpdater->getPreparedEdit()
#21 /srv/mediawiki/php-1.35.0-wmf.30/includes/Storage/PageEditStash.php(130): WikiPage->prepareContentForEdit(WikitextContent, NULL, User, string, boolean)
#22 /srv/mediawiki/php-1.35.0-wmf.30/includes/api/ApiStashEdit.php(143): MediaWiki\Storage\PageEditStash->parseAndCache(WikiPage, WikitextContent, User, string)
#23 /srv/mediawiki/php-1.35.0-wmf.30/includes/api/ApiMain.php(1580): ApiStashEdit->execute()
#24 /srv/mediawiki/php-1.35.0-wmf.30/includes/api/ApiMain.php(523): ApiMain->executeAction()
#25 /srv/mediawiki/php-1.35.0-wmf.30/includes/api/ApiMain.php(494): ApiMain->executeActionWithErrorHandling()
#26 /srv/mediawiki/php-1.35.0-wmf.30/api.php(84): ApiMain->execute()
#27 /srv/mediawiki/w/api.php(3): require(string)
#28 {main}

Impact

1 of these in wmf.30 and none for the last ~30 days.

Notes

Presumably this shouldn't result in an uncaught exception.

Details

Request ID
0fbfd9cf-e112-4459-8f9c-02ba8cd727fb
Request URL
https://kn.wikisource.org/w/api.php

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
eprodromou added a subscriber: eprodromou.

Looks like we were tagged automatically; untagging. Call us if you need us!

Change 611434 had a related patch set uploaded (by Umherirrender; owner: Umherirrender):
[mediawiki/extensions/ProofreadPage@master] Improve num checks when parsing <pages include=>

https://gerrit.wikimedia.org/r/611434

Umherirrender triaged this task as Medium priority.

Change 611434 merged by jenkins-bot:
[mediawiki/extensions/ProofreadPage@master] Improve num checks when parsing <pages include=>

https://gerrit.wikimedia.org/r/611434