Page MenuHomePhabricator

WikiPage constructed on a Title that cannot exist as a page: Special:Watchlist [Called from Article::newPage]
Closed, ResolvedPublicPRODUCTION ERROR

Description

Error
normalized_message
[{reqId}] {exception_url}   ErrorException: WikiPage constructed on a Title that cannot exist as a page: Special:Watchlist [Called from Article::newPage]
exception.trace
from /srv/mediawiki/php-1.36.0-wmf.37/includes/page/Article.php(130)
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, string, array)
#1 /srv/mediawiki/php-1.36.0-wmf.37/includes/debug/MWDebug.php(376): trigger_error(string, integer)
#2 /srv/mediawiki/php-1.36.0-wmf.37/includes/debug/MWDebug.php(352): MWDebug::sendRawDeprecated(string, boolean, string)
#3 /srv/mediawiki/php-1.36.0-wmf.37/includes/GlobalFunctions.php(1068): MWDebug::deprecatedMsg(string, string, string, integer)
#4 /srv/mediawiki/php-1.36.0-wmf.37/includes/page/WikiPage.php(184): wfDeprecatedMsg(string, string)
#5 /srv/mediawiki/php-1.36.0-wmf.37/includes/page/Article.php(130): WikiPage->__construct(Title)
#6 /srv/mediawiki/php-1.36.0-wmf.37/includes/page/Article.php(118): Article->newPage(Title)
#7 /srv/mediawiki/php-1.36.0-wmf.37/extensions/VisualEditor/includes/ApiVisualEditor.php(444): Article->__construct(Title)
#8 /srv/mediawiki/php-1.36.0-wmf.37/includes/api/ApiMain.php(1647): ApiVisualEditor->execute()
#9 /srv/mediawiki/php-1.36.0-wmf.37/includes/api/ApiMain.php(617): ApiMain->executeAction()
#10 /srv/mediawiki/php-1.36.0-wmf.37/includes/api/ApiMain.php(588): ApiMain->executeActionWithErrorHandling()
#11 /srv/mediawiki/php-1.36.0-wmf.37/api.php(90): ApiMain->execute()
#12 /srv/mediawiki/php-1.36.0-wmf.37/api.php(45): wfApiMain()
#13 /srv/mediawiki/w/api.php(3): require(string)
#14 {main}
Impact
Notes

Details

Request ID
ef24ab6b-f90b-43ac-a3ac-601a4ec8ed68
Request URL
https://en.wikipedia.org/w/api.php?action=visualeditor&format=*&formatversion=*&uselang=*&paction=*&page=*

Event Timeline

Looks similar to T273101: Accessing WikiPage that cannot exist as a page: w:Help:Books/Book creator text. [Called from WikiPage::exists] though that was from WikiPage::exists and extensions/Collection. This is from VisualEditor/API and Article::newPage.

This one is happening pretty often according to the "find normalized_message" search (included in the description by phatality)

This message gets logged as a warning but the channel is set to error. This seems slightly confusing to me. It was the only warning that showed up on the mediawiki-new-errors board at the time of this message.

I figured out how to reproduce this. The problem only occurs if you load the 'ext.discussionTools.init' module while viewing Special:Watchlist (or another special page), as DiscussionTools fetches some metadata about the page using VisualEditor's API.

DiscussionTools doesn't normally load on special pages, but it became a somewhat common thing for people to do in their user JS, to try out DiscussionTools before we made it available as a beta feature.

I don't think this results in any errors for the user, so hopefully it can wait until next week. We should change the action=visualeditor API so that it fails in a nicer way when you do this and doesn't produce log spam.

Change 679361 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] api: Better error when a page with the given title can't exist

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

Change 679361 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] api: Better error when a page with the given title can't exist

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