Page MenuHomePhabricator

Fatal error: Class 'LoggedUpdateMaintenance' not found when using mwscript
Closed, ResolvedPublic

Description

I was trying to run a maintenance script on the beta cluster (T246539). However:

daimona@deployment-deploy01:/srv/mediawiki/php-master$ mwscript extensions/AbuseFilter/maintenance/updateVarDumps.php --wiki=enwiki --dry-run
Fatal error: Class 'LoggedUpdateMaintenance' not found in /srv/mediawiki-staging/php-master/extensions/AbuseFilter/maintenance/updateVarDumps.php on line 20

I thought that maybe the script is broken (or I'm just doing something wrong), but then I tried running another script which worked a few weeks ago (T228655#5862088) and I got the same error.

Event Timeline

I just found out that this isn't a Beta Cluster-specific or MWScript-specific issue. This is an actual bug in MW core, caused by https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/575619/.

I'm going to self-merge a revert of that patch, then we can discuss about how to split the classes without breaking back-compat.

Change 576340 had a related patch set uploaded (by Daimona Eaytoy; owner: Daimona Eaytoy):
[mediawiki/core@master] Revert "Split FakeMaintenance and LoggedUpdateMaintenance to their own files"

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

Change 576340 merged by jenkins-bot:
[mediawiki/core@master] Revert "Split FakeMaintenance and LoggedUpdateMaintenance to their own files"

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