Page MenuHomePhabricator

passing a category to refreshLinks.php causes a fatal error: Argument 1 passed to RefreshLinks::refreshCategory() must be an instance of Title, string given
Closed, ResolvedPublic

Description

PHP Catchable fatal error: Argument 1 passed to RefreshLinks::refreshCategory() must be an instance of Title, string given, called in /home/jesus/git/mediawiki/core/maintenance/refreshLinks.php on line 75 and defined in /home/jesus/git/mediawiki/core/maintenance/refreshLinks.php on line 433

Looking at the code one can spot an obvious error

Event Timeline

Restricted Application added subscribers: TerraCodes, Aklapper. · View Herald TranscriptJul 30 2017, 1:37 PM
Ciencia_Al_Poder triaged this task as Medium priority.Jul 30 2017, 1:37 PM

Change 368584 had a related patch set uploaded (by Martineznovo; owner: Martineznovo):
[mediawiki/core@master] refreshLinks.php: Fix fatal when using --category parameter

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

Feature broken since its introduction in rMW13054a4c70. gj

Change 368584 merged by jenkins-bot:
[mediawiki/core@master] refreshLinks.php: Fix fatal when using --category parameter

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

MaxSem closed this task as Resolved.Jul 31 2017, 6:46 PM

Change 368835 had a related patch set uploaded (by Martineznovo; owner: Martineznovo):
[mediawiki/core@REL1_29] refreshLinks.php: Fix fatal when using --category parameter

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

Change 368835 merged by jenkins-bot:
[mediawiki/core@REL1_29] refreshLinks.php: Fix fatal when using --category parameter

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