Page MenuHomePhabricator

Bot cannot create page in the Page: namespace
Closed, ResolvedPublic

Description

ProofreadPage.body.php:parsePage() call $title->prpIndexPage->getIndexDataForPage(); but getIndexDataForPage(); take a Title as parameter so on:

[error] [client 127.0.0.1] PHP Catchable fatal error: Argument 1 passed to ProofreadIndexPage::getIndexDataForPage() must be an instance of Title, none given, called in .../extensions/ProofreadPage/ProofreadPage.body.php on line 911 and defined in .../extensions/ProofreadPage/includes/index/ProofreadIndexPage.php on line 381. Passing $title to ProofreadIndexPage::getIndexDataForPage() fix the trouble on my local wiki. This fragment of code is called only if the posted text doesn't contains a <noinclude><pagequality ...</noinclude>, only bot does that.


Version: master
Severity: critical

Details

Reference
bz51085

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:07 AM
bzimport added a project: ProofreadPage.
bzimport set Reference to bz51085.
Phe created this task.Jul 10 2013, 12:51 AM
ori added a comment.Jul 10 2013, 1:58 AM

Yes; 213 such fatals in the last fourteen hours.

Change 72887 had a related patch set uploaded by Ori.livneh:
Pass required Title object to getIndexDataForPage

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

Change 72887 merged by jenkins-bot:
Pass required Title object to getIndexDataForPage

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

GOIII moved this task from Backlog to Done on the ProofreadPage board.Jun 12 2016, 3:48 AM