Page MenuHomePhabricator

Fatal exception of type "InvalidArgumentException" when querying for Special:Contributions
Closed, ResolvedPublicPRODUCTION ERROR


I went to review a suppressed abusive username to see if it fully was. The result was a Fatal exception of type "InvalidArgumentException", details of which are reported bellow.



[XATzEwpAAEUAAIdLpp0AAABJ] 2018-12-03 09:10:43: Fatal exception of type "InvalidArgumentException"


  • Production.


  • The username is suppressed (oversighted). Please exercise care to not post the name publicly here. Thanks.

Event Timeline

I am getting errors with accounts with a similar status. For example today I've spotted as well [XAepuApAMFwAAAUHfBoAAABH] 2018-12-05 10:34:32: Fatal exception of type "InvalidArgumentException" on meta Special:Contributions (different --also suppressed-- account).

Aklapper triaged this task as Unbreak Now! priority.Dec 5 2018, 11:11 AM
exception.file	       	/srv/mediawiki/php-1.33.0-wmf.6/includes/Block.php:1605
exception.message	       	Blocker must be a local user or a name that cannot be a local user
#0 /srv/mediawiki/php-1.33.0-wmf.6/includes/Block.php(479): Block->setBlocker(User)
#1 /srv/mediawiki/php-1.33.0-wmf.6/includes/Block.php(510): Block->initFromRow(stdClass)
#2 /srv/mediawiki/php-1.33.0-wmf.6/includes/Block.php(379): Block::newFromRow(stdClass)
#3 /srv/mediawiki/php-1.33.0-wmf.6/includes/Block.php(1286): Block->newLoad(NULL)
#4 /srv/mediawiki/php-1.33.0-wmf.6/includes/user/User.php(1865): Block::newFromTarget(User, NULL, boolean)
#5 /srv/mediawiki/php-1.33.0-wmf.6/includes/user/User.php(2292): User->getBlockedStatus(boolean)
#6 /srv/mediawiki/php-1.33.0-wmf.6/includes/user/User.php(2282): User->getBlock(boolean)
#7 /srv/mediawiki/php-1.33.0-wmf.6/includes/specials/SpecialContributions.php(376): User->isBlocked()
#8 /srv/mediawiki/php-1.33.0-wmf.6/includes/specials/SpecialContributions.php(306): SpecialContributions::getUserLinks(SpecialContributions, User)
#9 /srv/mediawiki/php-1.33.0-wmf.6/includes/specials/SpecialContributions.php(114): SpecialContributions->contributionsSub(User)
#10 /srv/mediawiki/php-1.33.0-wmf.6/includes/specialpage/SpecialPage.php(569): SpecialContributions->execute(NULL)
#11 /srv/mediawiki/php-1.33.0-wmf.6/includes/specialpage/SpecialPageFactory.php(558): SpecialPage->run(NULL)
#12 /srv/mediawiki/php-1.33.0-wmf.6/includes/MediaWiki.php(288): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#13 /srv/mediawiki/php-1.33.0-wmf.6/includes/MediaWiki.php(862): MediaWiki->performRequest()
#14 /srv/mediawiki/php-1.33.0-wmf.6/includes/MediaWiki.php(517): MediaWiki->main()
#15 /srv/mediawiki/php-1.33.0-wmf.6/index.php(42): MediaWiki->run()
#16 /srv/mediawiki/w/index.php(3): include(string)
#17 {main}
exception_id	       	XATzEwpAAEUAAIdLpp0AAABJ

If you need the series of usernames that lead me to this error, please ask me privately via email or find me on IRC. Thanks.

Edit: could it be the same as T187834?

Edit 2:

Anomie added a subscriber: Anomie.

Hmm. It seems that T181731 may have somehow missed metawiki. My logging for that task wasn't as good as what I use now, it's possible some of the updaters died early or were killed and I missed it.

The exception here seems to be resolved. I was able to get one of the affected Special:Contributions URLs from the logs and it is no longer raising the exception.

Processing the rest of the wikis that were missed originally in T181731 will be done at that task.

Thank you @Anomie - I could query the abusive usernames from Special:Contributions successfully this time.

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:07 PM