Page MenuHomePhabricator

MediaWiki\Page\PageAssertionException: The given PageIdentity {pageIdentity} does not represent a proper page – cannot delete Structured Discussions topic
Open, Needs TriagePublicPRODUCTION ERROR

Description

Error
  • mwversion: 1.47.0-wmf.2
  • timestamp: 2026-05-16T08:55:22.536Z
  • phpversion: 8.3.30
  • reqId: f5c0af26-1d7f-405f-93dc-07af371bec1f
  • Find reqId in Logstash
normalized_message
[{reqId}] {exception_url}   MediaWiki\Page\PageAssertionException: The given PageIdentity {pageIdentity} does not represent a proper page
FrameLocationCall
from/srv/mediawiki/php-1.47.0-wmf.2/includes/Page/WikiPageFactory.php(46)
#0/srv/mediawiki/php-1.47.0-wmf.2/includes/Page/WikiPageFactory.php(77)MediaWiki\Page\WikiPageFactory->newFromTitle(MediaWiki\Title\Title)
#1/srv/mediawiki/php-1.47.0-wmf.2/includes/Page/DeletePage.php(205)MediaWiki\Page\WikiPageFactory->newFromLinkTarget(MediaWiki\Title\TitleValue)
#2/srv/mediawiki/php-1.47.0-wmf.2/includes/Actions/DeleteAction.php(493)MediaWiki\Page\DeletePage->canProbablyDeleteAssociatedTalk()
#3/srv/mediawiki/php-1.47.0-wmf.2/includes/Actions/FormAction.php(74)MediaWiki\Actions\DeleteAction->getFormFields()
#4/srv/mediawiki/php-1.47.0-wmf.2/includes/Actions/DeleteAction.php(415)MediaWiki\Actions\FormAction->getForm()
#5/srv/mediawiki/php-1.47.0-wmf.2/includes/Actions/DeleteAction.php(183)MediaWiki\Actions\DeleteAction->tempConfirmDelete()
#6/srv/mediawiki/php-1.47.0-wmf.2/includes/Actions/DeleteAction.php(145)MediaWiki\Actions\DeleteAction->tempDelete()
#7/srv/mediawiki/php-1.47.0-wmf.2/includes/Actions/ActionEntryPoint.php(753)MediaWiki\Actions\DeleteAction->show()
#8/srv/mediawiki/php-1.47.0-wmf.2/includes/Actions/ActionEntryPoint.php(511)MediaWiki\Actions\ActionEntryPoint->performAction(MediaWiki\Page\Article, MediaWiki\Title\Title)
#9/srv/mediawiki/php-1.47.0-wmf.2/includes/Actions/ActionEntryPoint.php(145)MediaWiki\Actions\ActionEntryPoint->performRequest()
#10/srv/mediawiki/php-1.47.0-wmf.2/includes/MediaWikiEntryPoint.php(180)MediaWiki\Actions\ActionEntryPoint->execute()
#11/srv/mediawiki/php-1.47.0-wmf.2/index.php(44)MediaWiki\MediaWikiEntryPoint->run()
#12/srv/mediawiki/w/index.php(3)require(string)
#13{main}
Impact

Pages in the Topic: namespace cannot be deleted.

Notes

For the given request, the {pageIdentity} is Special:Badtitle/NS2601:Vzhs9x498f5cm1xc – notice the odd namespace number. (Also, this is a GET request – the error happens when trying to load the deletion form, not when submitting it.) This was previously reported at T370722#10422664 and T339879, but AFAICT we don’t have an open task for this error at the moment. IIUC, the issue is that the Topic: namespace doesn’t have an associated talk namespace (cf. T165149), yet DeleteAction / DeletePage attempts to delete the associated talk page.

Details

Request URL
https://www.wikidata.org/w/index.php?action=delete&title=Topic:Vzhs9x498f5cm1xc

Event Timeline

I tried to delete the page via the API Sandbox and didn’t succeed.

  • action=delete with deletetalk= fails with the same error.
  • action=delete without deletetalk= fails with an error “To delete a topic, use the ... menu on the Structured Discussions board or topic page. Do not visit action=delete for the topic directly.”
  • action=flow + submodule=moderate-topic + mtmoderationState=delete fails with a permission error (apparently the Wikidata Staff group lacks the flow-delete permission).

You aren't supposed to be able to delete topic pages using core action=delete; you're supposed to use the flow APIs for that.

That said, since Flow is read-only on Wikidata nobody should be allowed to make any changes to it, including deleting topics.

Sure, the code shouldn't throw an error in the logs, but that's not worth fixing given the decaying state of the Flow codebase.

That said, since Flow is read-only on Wikidata nobody should be allowed to make any changes to it, including deleting topics.

So we just have eternally frozen content on our wikis now? And if someone finds spam or PII in it that escaped notice during the sunset period, not even bureaucrats can do anything about it?

Sysadmins could do something about in a somewhat hacky manner, but otherwise yes.

Sidenote: the specific topic you are attempting to delete is already effectively deleted because the board it pertains to is deleted. As someone with no relevant perms on Wikidata, if I go to https://www.wikidata.org/wiki/Topic:Vzhs9x498f5cm1xc I see "Insufficient permissions to execute this action"

And while this is swatting a fly with a sledgehammer any admin can still delete (and undelete) entire Flow boards which causes all topics to enter the same effectively-deleted state.