Page MenuHomePhabricator

"Caught exception of type Error" when creating new flow threads
Closed, ResolvedPublicPRODUCTION ERROR

Description

when attempting to create a Support thread on mediawiki it is giving me an error [X-Ta0wpAIDsAAE5NTsIAAACL] Caught exception of type Error

https://www.mediawiki.org/wiki/Project:Support_desk

Details

Request ID
X-Ta0wpAIDsAAE5NTsIAAACL
Request URL
https://www.mediawiki.org/wiki/Project:Support_desk
Stack Trace
2021-01-05 21:32:04 [X-Ta0wpAIDsAAE5NTsIAAACL] mw1347 mediawikiwiki 1.36.0-wmf.25 exception ERROR: [X-Ta0wpAIDsAAE5NTsIAAACL] /w/api.php   Error from line 100 of /srv/mediawiki/php-1.36.0-wmf.25/extensions/Flow/includes/SpamFilter/AbuseFilter.php: Class 'AbuseFilter' not found {"exception_id":"X-Ta0wpAIDsAAE5NTsIAAACL","exception_url":"/w/api.php","caught_by":"entrypoint"} 
[Error Error] (/srv/mediawiki/php-1.36.0-wmf.25/extensions/Flow/includes/SpamFilter/AbuseFilter.php:100) Class 'AbuseFilter' not found
  #0 /srv/mediawiki/php-1.36.0-wmf.25/extensions/Flow/includes/SpamFilter/Controller.php(55): Flow\SpamFilter\AbuseFilter->validate(DerivativeContext, Flow\Model\PostRevision, NULL, Title, Title)
  #1 /srv/mediawiki/php-1.36.0-wmf.25/extensions/Flow/includes/Block/AbstractBlock.php(251): Flow\SpamFilter\Controller->validate(DerivativeContext, Flow\Model\PostRevision, NULL, Title, Title)
  #2 /srv/mediawiki/php-1.36.0-wmf.25/extensions/Flow/includes/Block/TopicListBlock.php(107): Flow\Block\AbstractBlock->checkSpamFilters(NULL, Flow\Model\PostRevision)
  #3 /srv/mediawiki/php-1.36.0-wmf.25/extensions/Flow/includes/Block/AbstractBlock.php(144): Flow\Block\TopicListBlock->validate()
  #4 /srv/mediawiki/php-1.36.0-wmf.25/extensions/Flow/includes/SubmissionHandler.php(121): Flow\Block\AbstractBlock->onSubmit(array)
  #5 /srv/mediawiki/php-1.36.0-wmf.25/extensions/Flow/includes/WorkflowLoader.php(62): Flow\SubmissionHandler->handleSubmit(Flow\Model\Workflow, DerivativeContext, array, string, array)
  #6 /srv/mediawiki/php-1.36.0-wmf.25/extensions/Flow/includes/Api/ApiFlowBasePost.php(22): Flow\WorkflowLoader->handleSubmit(DerivativeContext, string, array)
  #7 /srv/mediawiki/php-1.36.0-wmf.25/extensions/Flow/includes/Api/ApiFlow.php(108): Flow\Api\ApiFlowBasePost->execute()
  #8 /srv/mediawiki/php-1.36.0-wmf.25/includes/api/ApiMain.php(1612): Flow\Api\ApiFlow->execute()
  #9 /srv/mediawiki/php-1.36.0-wmf.25/includes/api/ApiMain.php(592): ApiMain->executeAction()
  #10 /srv/mediawiki/php-1.36.0-wmf.25/includes/api/ApiMain.php(563): ApiMain->executeActionWithErrorHandling()
  #11 /srv/mediawiki/php-1.36.0-wmf.25/api.php(90): ApiMain->execute()
  #12 /srv/mediawiki/php-1.36.0-wmf.25/api.php(45): wfApiMain()
  #13 /srv/mediawiki/w/api.php(3): require(string)
  #14 {main}

Event Timeline

Cocopuff2018 updated the task description. (Show Details)
RhinosF1 raised the priority of this task from Medium to Unbreak Now!.Jan 5 2021, 9:45 PM
Restricted Application added a subscriber: RhinosF1. · View Herald Transcript
RhinosF1 renamed this task from [X-Ta0wpAIDsAAE5NTsIAAACL] Caught exception of type Error to "Caught exception of type Error" when creating new flow threads.Jan 5 2021, 9:46 PM
RhinosF1 changed the subtype of this task from "Task" to "Production Error".
RhinosF1 set Request URL to https://www.mediawiki.org/wiki/Project:Support_desk.
RhinosF1 set Request ID to X-Ta0wpAIDsAAE5NTsIAAACL.
Reedy edited Stack Trace. (Show Details)
Reedy subscribed.

I think the problem is that for the non namespaced 'AbuseFilter' class, it should be in autoload classes still, otherwise MW has no idea where to find it

And/or update the reference

Change 654512 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/AbuseFilter@master] Explicitly Autoload old aliased classes

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

Change 654447 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/AbuseFilter@wmf/1.36.0-wmf.25] Explicitly Autoload old aliased classes

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

Change 654447 merged by Reedy:
[mediawiki/extensions/AbuseFilter@wmf/1.36.0-wmf.25] Explicitly Autoload old aliased classes

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

Mentioned in SAL (#wikimedia-operations) [2021-01-05T22:26:50Z] <reedy@deploy1001> Synchronized php-1.36.0-wmf.25/extensions/AbuseFilter/extension.json: T271266 (duration: 01m 04s)

Change 654512 merged by jenkins-bot:
[mediawiki/extensions/AbuseFilter@master] Explicitly Autoload old aliased classes

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

Reedy removed a project: Patch-For-Review.