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

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

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