MediaWiki-Page-deletionComponent
ActivePublic

Details

Description

Issues related to deleting and undeleting/restoring pages and revisions (via action=delete and Special:Undelete). (Documentation)

This project is part of the core MediaWiki software itself.

Parent project: MediaWiki-General

Recent Activity

Wed, Aug 19

Aklapper changed Request URL from https://de.wikipedia.org/w/index.php?diff=*&target=*&timestamp=*&title=* to https://de.wikipedia.org/w/index.php?diff=prev&target=Stiftung+Pfadfinden&timestamp=20070618021601&title=Spezial:Wiederherstellen on T435288: Error: Call to a member function getUser() on null.
Wed, Aug 19, 8:45 AM · MediaWiki-Page-deletion, Multi-Content-Revisions, MediaWiki-Page-diffs, Wikimedia-production-error
Aklapper created T435288: Error: Call to a member function getUser() on null.
Wed, Aug 19, 8:44 AM · MediaWiki-Page-deletion, Multi-Content-Revisions, MediaWiki-Page-diffs, Wikimedia-production-error

Wed, Aug 12

aaron moved T312679: Create populateArchiveParentId.php script from Incoming (Needs Triage) to Needs Further Discussion on the MediaWiki-API-Platform-Team board.
Wed, Aug 12, 1:56 AM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion
aaron updated subscribers of T312679: Create populateArchiveParentId.php script.

Perhaps ar_parent_id could be populated for rows with ar_page_id set, such a script could check both the revision and archive tables to find the parent rev ID. If ar_page_id is NULL, I suppose it could guess passed on the archive table (title,time) alone.

Wed, Aug 12, 1:48 AM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion

Tue, Aug 11

KineticPelagic updated subscribers of T312679: Create populateArchiveParentId.php script.

@aaron , would like your help triaging this one.

Tue, Aug 11, 3:49 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion
aaron moved T132921: Unable to delete file pages on commons: MWException/LocalFileLockError: "Could not acquire lock" from Blocked to Committed on the MediaWiki-API-Platform-Team (MediaWiki-Interfaces-Sprints) board.
Tue, Aug 11, 3:28 PM · MediaWiki-API-Platform-Team (MediaWiki-Interfaces-Sprints), MW-1.47-notes (1.47.0-wmf.9; 2026-06-30), Patch-For-Review, MediaWiki-File-management, Multimedia, Commons, MediaWiki-Page-deletion

Fri, Aug 7

Maintenance_bot added a project to T312679: Create populateArchiveParentId.php script: MediaWiki-API-Platform-Team.
Fri, Aug 7, 9:30 AM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion
Aklapper triaged T312679: Create populateArchiveParentId.php script as Low priority.
Fri, Aug 7, 8:48 AM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion

Tue, Jul 28

AGhirelli-WMF moved T20572: Users should be able to delete pages and image files they create/upload accidentally from Incoming (Needs Triage) to Icebox on the MediaWiki-API-Platform-Team board.
Tue, Jul 28, 10:08 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion
Maintenance_bot added a project to T19309: Allow users to delete their own pages: MediaWiki-API-Platform-Team.
Tue, Jul 28, 7:31 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion
Izno merged task T433424: Allow users to delete pages in their own namespace into T16325: Admin functions for (autoconfirmed) users.
Tue, Jul 28, 6:56 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion
Izno merged task T19309: Allow users to delete their own pages into T16325: Admin functions for (autoconfirmed) users.
Tue, Jul 28, 6:55 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion
Maintenance_bot added a project to T20572: Users should be able to delete pages and image files they create/upload accidentally: MediaWiki-API-Platform-Team.
Tue, Jul 28, 6:31 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion
Maintenance_bot added a project to T433424: Allow users to delete pages in their own namespace: MediaWiki-API-Platform-Team.
Tue, Jul 28, 6:31 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion
Bugreporter added a project to T433424: Allow users to delete pages in their own namespace: MediaWiki-Page-deletion.
Tue, Jul 28, 6:15 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion
ArielGlenn moved T326016: Undeletion of, and revision deletion actions on deleted revisions of, translation pages is impossible from Incoming (Needs Triage) to Bugs & Chores on the MediaWiki-API-Platform-Team board.
Tue, Jul 28, 12:24 AM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, MediaWiki-extensions-Translate

Mon, Jul 27

Maintenance_bot added a project to T326016: Undeletion of, and revision deletion actions on deleted revisions of, translation pages is impossible: MediaWiki-API-Platform-Team.
Mon, Jul 27, 11:31 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, MediaWiki-extensions-Translate

Jul 16 2026

Ladsgroup added a comment to T425893: MediaWiki is incapable of deleting files with too many versions.

Adding to @KineticPelagic 's comment -- could we get a #/% of files that have a number of edits that go beyond the threshold? I agree that we should not necessarily have an upper bound in place, but I would like to get a better sense of how commonly folks are running into this for prioritization purposes.

Jul 16 2026, 9:30 AM · MediaWiki-Media-Platform-Team, MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, Commons, MediaWiki-File-management
Urbanecm added a comment to T425893: MediaWiki is incapable of deleting files with too many versions.

However, do note that it's relatively straightforward to create such file (as an attacker), and this task removes the community's ability to handle such a file.

Jul 16 2026, 9:29 AM · MediaWiki-Media-Platform-Team, MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, Commons, MediaWiki-File-management
JTweed-WMF lowered the priority of T425893: MediaWiki is incapable of deleting files with too many versions from Low to Lowest.
Jul 16 2026, 9:26 AM · MediaWiki-Media-Platform-Team, MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, Commons, MediaWiki-File-management
Urbanecm added a comment to T425893: MediaWiki is incapable of deleting files with too many versions.

How common is it for files to have a very large number of revisions?

Jul 16 2026, 9:24 AM · MediaWiki-Media-Platform-Team, MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, Commons, MediaWiki-File-management
JTweed-WMF triaged T425893: MediaWiki is incapable of deleting files with too many versions as Low priority.
Jul 16 2026, 9:21 AM · MediaWiki-Media-Platform-Team, MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, Commons, MediaWiki-File-management
JTweed-WMF moved T425893: MediaWiki is incapable of deleting files with too many versions from Inbox (Untriaged) to Backlog (Triaged) on the MediaWiki-Media-Platform-Team board.
Jul 16 2026, 9:21 AM · MediaWiki-Media-Platform-Team, MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, Commons, MediaWiki-File-management
JTweed-WMF added a comment to T425893: MediaWiki is incapable of deleting files with too many versions.

This may come under Media Platform scope, but I have the same question as @HCoplin-WMF. How common is it for files to have a very large number of revisions?

Jul 16 2026, 9:21 AM · MediaWiki-Media-Platform-Team, MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, Commons, MediaWiki-File-management

Jul 15 2026

Bugreporter updated the task description for T198176: Mediawiki page deletions should happen in batches of revisions.
Jul 15 2026, 1:59 AM · MediaWiki-API-Platform-Team, Platform Team Workboards (Done with CPT), MW-1.32-notes (WMF-deploy-2018-10-16 (1.32.0-wmf.26)), Platform Engineering (Needs Cleaning - Code Health (TEC13)), Wikimedia-production-error, MediaWiki-Page-deletion
Bugreporter updated the task description for T198176: Mediawiki page deletions should happen in batches of revisions.
Jul 15 2026, 1:58 AM · MediaWiki-API-Platform-Team, Platform Team Workboards (Done with CPT), MW-1.32-notes (WMF-deploy-2018-10-16 (1.32.0-wmf.26)), Platform Engineering (Needs Cleaning - Code Health (TEC13)), Wikimedia-production-error, MediaWiki-Page-deletion
Bugreporter updated the task description for T239095: Undeleting pages with many revision results in DB exceptions.
Jul 15 2026, 1:57 AM · MediaWiki-API-Platform-Team, Platform Engineering (Icebox), MediaWiki-Page-deletion
Bugreporter updated the task description for T425893: MediaWiki is incapable of deleting files with too many versions.
Jul 15 2026, 1:56 AM · MediaWiki-Media-Platform-Team, MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, Commons, MediaWiki-File-management

Jul 14 2026

Ladsgroup added a project to T425893: MediaWiki is incapable of deleting files with too many versions: MediaWiki-Media-Platform-Team.
Jul 14 2026, 10:23 PM · MediaWiki-Media-Platform-Team, MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, Commons, MediaWiki-File-management

Jul 11 2026

Maintenance_bot removed a project from T190260: Fatal exception of type "Wikimedia\Rdbms\DBTransactionSizeError" trying to undelete a file: Patch-For-Review.
Jul 11 2026, 6:31 PM · MediaWiki-API-Platform-Team, MW-1.32-notes (WMF-deploy-2018-07-24 (1.32.0-wmf.14)), Multimedia, Core-Platform-Team-Old, MediaWiki-Page-deletion, MediaWiki-File-management, Performance-Team
Maintenance_bot added a project to T190260: Fatal exception of type "Wikimedia\Rdbms\DBTransactionSizeError" trying to undelete a file: MediaWiki-API-Platform-Team.
Jul 11 2026, 6:31 PM · MediaWiki-API-Platform-Team, MW-1.32-notes (WMF-deploy-2018-07-24 (1.32.0-wmf.14)), Multimedia, Core-Platform-Team-Old, MediaWiki-Page-deletion, MediaWiki-File-management, Performance-Team
Bugreporter merged T328914: Wikimedia\Rdbms\DBTransactionSizeError trying to delete a file, exceeding the 3s limit into T425893: MediaWiki is incapable of deleting files with too many versions.
Jul 11 2026, 6:07 PM · MediaWiki-Media-Platform-Team, MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, Commons, MediaWiki-File-management

Jul 10 2026

aaron moved T426566: MediaWiki\Page\PageAssertionException: The given PageIdentity {pageIdentity} does not represent a proper page – cannot delete Structured Discussions topic from Needs Further Discussion to Radar (other teams work) on the MediaWiki-API-Platform-Team board.
Jul 10 2026, 6:51 AM · MediaWiki-API-Platform-Team, StructuredDiscussions, MediaWiki-Page-deletion, Wikimedia-production-error

Jul 9 2026

Maintenance_bot added a project to T390145: PHP Deprecated: Use of MediaWiki\Output\OutputPage::parserOptions was deprecated in MediaWiki 1.44. [Called from MediaWiki\Specials\SpecialUndelete::showRevision]: MediaWiki-API-Platform-Team.
Jul 9 2026, 12:31 PM · MediaWiki-API-Platform-Team, Essential-Work, MediaWiki-Core-Platform-Team (Radar), Content-Platform-Team (Work In Progress), MediaWiki-Page-deletion, Wikimedia-production-error
MSantos added a project to T390145: PHP Deprecated: Use of MediaWiki\Output\OutputPage::parserOptions was deprecated in MediaWiki 1.44. [Called from MediaWiki\Specials\SpecialUndelete::showRevision]: Essential-Work.
Jul 9 2026, 11:53 AM · MediaWiki-API-Platform-Team, Essential-Work, MediaWiki-Core-Platform-Team (Radar), Content-Platform-Team (Work In Progress), MediaWiki-Page-deletion, Wikimedia-production-error

Jul 8 2026

ArielGlenn closed T114490: "Mediawiki:Excontentauthor" order problem as Resolved.

Confirmed that this bug is fixed, so closing.

Jul 8 2026, 10:18 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, I18n
Maintenance_bot added a project to T114490: "Mediawiki:Excontentauthor" order problem: MediaWiki-API-Platform-Team.
Jul 8 2026, 6:31 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, I18n
neriah added a comment to T114490: "Mediawiki:Excontentauthor" order problem.

Based on the code flow here, this problem appears to have already been fixed:

		} else {
			if ( $onlyAuthor ) {
				$reason = wfMessage(
					'excontentauthor',
					'$1',
					$onlyAuthor
				)->inContentLanguage()->text();
			} else {
				$reason = wfMessage( 'excontent', '$1' )->inContentLanguage()->text();
			}
		}
		if ( $reason == '-' ) {
			// Allow these UI messages to be blanked out cleanly
			return '';
		}
		// Max content length = max comment length - length of the comment (excl. $1)
		$maxLength = CommentStore::COMMENT_CHARACTER_LIMIT - ( strlen( $reason ) - 2 );
		$text = $content ? $content->getTextForSummary( $maxLength ) : '';
		if ( $blank && !$text ) {
			// Don't display "content before blanking was ''" as misleading
			// This can happen if the content before blanking was two unclosed square brackets, for example
			// Do display `content was ""` if the page was always blank, though
			return false;
		}
		// Now replace the '$1' placeholder
		$reason = str_replace( '$1', $text, $reason );
		return $reason;
	}

I just tested this on testwiki, and it can be seen to work as expected.

Jul 8 2026, 6:13 PM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion, I18n

Jul 7 2026

aaron triaged T293463: Remove deprecated 'bigdelete' check in PermissionManager as Low priority.
Jul 7 2026, 1:10 AM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion

Jul 5 2026

Maintenance_bot removed a project from T372611: Deleted revisions show incorrect byte count diffs: Patch-For-Review.
Jul 5 2026, 2:31 AM · MediaWiki-API-Platform-Team, MW-1.43-notes (1.43.0-wmf.20; 2024-08-27), Trust and Safety Product Sprint (Sprint Erhu (August 5th - August 16th)), Trust and Safety Product Team, MediaWiki-Special-pages, MediaWiki-Page-deletion
Maintenance_bot added a project to T372611: Deleted revisions show incorrect byte count diffs: MediaWiki-API-Platform-Team.
Jul 5 2026, 2:31 AM · MediaWiki-API-Platform-Team, MW-1.43-notes (1.43.0-wmf.20; 2024-08-27), Trust and Safety Product Sprint (Sprint Erhu (August 5th - August 16th)), Trust and Safety Product Team, MediaWiki-Special-pages, MediaWiki-Page-deletion
1234qwer1234qwer4 added a comment to T372611: Deleted revisions show incorrect byte count diffs.

https://en.wikipedia.org/wiki/Special:Undelete/Feted_Inner_Core shows the revision sizes instead of the byte changes:

image.png (2,112×539 px, 185 KB)

And https://en.wikipedia.org/wiki/Special:DeletedContributions/Hyphz shows no byte changes at all in some cases:
image.png (1,557×846 px, 351 KB)

Jul 5 2026, 2:08 AM · MediaWiki-API-Platform-Team, MW-1.43-notes (1.43.0-wmf.20; 2024-08-27), Trust and Safety Product Sprint (Sprint Erhu (August 5th - August 16th)), Trust and Safety Product Team, MediaWiki-Special-pages, MediaWiki-Page-deletion

Jun 30 2026

aaron added a comment to T132921: Unable to delete file pages on commons: MWException/LocalFileLockError: "Could not acquire lock".

Patches will wait for https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1302993

Jun 30 2026, 3:44 PM · MediaWiki-API-Platform-Team (MediaWiki-Interfaces-Sprints), MW-1.47-notes (1.47.0-wmf.9; 2026-06-30), Patch-For-Review, MediaWiki-File-management, Multimedia, Commons, MediaWiki-Page-deletion
aaron changed the status of T132921: Unable to delete file pages on commons: MWException/LocalFileLockError: "Could not acquire lock" from Open to Stalled.
Jun 30 2026, 3:43 PM · MediaWiki-API-Platform-Team (MediaWiki-Interfaces-Sprints), MW-1.47-notes (1.47.0-wmf.9; 2026-06-30), Patch-For-Review, MediaWiki-File-management, Multimedia, Commons, MediaWiki-Page-deletion
HCoplin-WMF edited projects for T132921: Unable to delete file pages on commons: MWException/LocalFileLockError: "Could not acquire lock", added: MediaWiki-API-Platform-Team (MediaWiki-Interfaces-Sprints); removed MediaWiki-API-Platform-Team (MWI-Sprint-36 (2026-06-16 to 2026-06-30)).
Jun 30 2026, 3:21 PM · MediaWiki-API-Platform-Team (MediaWiki-Interfaces-Sprints), MW-1.47-notes (1.47.0-wmf.9; 2026-06-30), Patch-For-Review, MediaWiki-File-management, Multimedia, Commons, MediaWiki-Page-deletion

Jun 29 2026

aaron moved T132921: Unable to delete file pages on commons: MWException/LocalFileLockError: "Could not acquire lock" from Code Review to Blocked on the MediaWiki-API-Platform-Team (MWI-Sprint-36 (2026-06-16 to 2026-06-30)) board.
Jun 29 2026, 3:14 PM · MediaWiki-API-Platform-Team (MediaWiki-Interfaces-Sprints), MW-1.47-notes (1.47.0-wmf.9; 2026-06-30), Patch-For-Review, MediaWiki-File-management, Multimedia, Commons, MediaWiki-Page-deletion

Jun 25 2026

ReleaseTaggerBot edited projects for T132921: Unable to delete file pages on commons: MWException/LocalFileLockError: "Could not acquire lock", added: MW-1.47-notes (1.47.0-wmf.9; 2026-06-30); removed MW-1.47-notes (1.47.0-wmf.8; 2026-06-23).
Jun 25 2026, 2:01 AM · MediaWiki-API-Platform-Team (MediaWiki-Interfaces-Sprints), MW-1.47-notes (1.47.0-wmf.9; 2026-06-30), Patch-For-Review, MediaWiki-File-management, Multimedia, Commons, MediaWiki-Page-deletion
gerritbot added a comment to T132921: Unable to delete file pages on commons: MWException/LocalFileLockError: "Could not acquire lock".

Change #1303577 merged by jenkins-bot:

[mediawiki/core@master] lockmanager: avoid pointless retries in LockManager::lockByType

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

Jun 25 2026, 1:52 AM · MediaWiki-API-Platform-Team (MediaWiki-Interfaces-Sprints), MW-1.47-notes (1.47.0-wmf.9; 2026-06-30), Patch-For-Review, MediaWiki-File-management, Multimedia, Commons, MediaWiki-Page-deletion

Jun 18 2026

KineticPelagic moved T293463: Remove deprecated 'bigdelete' check in PermissionManager from Incoming (Needs Triage) to Needs Further Discussion on the MediaWiki-API-Platform-Team board.

As part of my Clinic Duty rotation, I keep this task with MW-Interfaces-Team because we are maintainers of Page deletion. I move the task to "Needs Further Discussion" because we need discussion on prioritization and on the unknown about whether the code in Translate can be migrated, too.

Jun 18 2026, 6:21 AM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion
KineticPelagic moved T71562: Avoid checking for large revision count on action=delete if the user doesn't have delete permission from Incoming (Needs Triage) to Bugs & Chores on the MediaWiki-API-Platform-Team board.
Jun 18 2026, 6:11 AM · MediaWiki-API-Platform-Team, MediaWiki-Page-deletion