Page MenuHomePhabricator

Error on main page of API Portal beta site
Closed, DuplicatePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:
The page content doesn't display. The same error appears when you try to edit the page.

What should have happened instead?:
The pages should display content that says "Welcome to the API Portal beta site..."

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Browser: Chrome

Event Timeline

I saw this error while moving a page in a local dev wiki (I don't see the error on https://api.wikimedia.beta.wmflabs.org/wiki/Main_Page). Stacktrace:

[c3abea8640baa70bad488064] /wiki/Special:MovePage/MediaWiki:Tag-hidden TypeError: Return value of TitleArrayFromResult::current() must be an instance of Title, bool returned

Backtrace:

from /Users/kostajh/src/mediawiki/w/includes/TitleArrayFromResult.php(75)
#0 /Users/kostajh/src/mediawiki/w/includes/Title.php(2782): TitleArrayFromResult->current()
#1 /Users/kostajh/src/mediawiki/w/includes/specials/SpecialMovepage.php(317): Title->hasSubpages()
#2 /Users/kostajh/src/mediawiki/w/includes/specials/SpecialMovepage.php(212): MovePageForm->showForm(array)
#3 /Users/kostajh/src/mediawiki/w/includes/specialpage/SpecialPage.php(647): MovePageForm->execute(string)
#4 /Users/kostajh/src/mediawiki/w/includes/specialpage/SpecialPageFactory.php(1366): SpecialPage->run(string)
#5 /Users/kostajh/src/mediawiki/w/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#6 /Users/kostajh/src/mediawiki/w/includes/MediaWiki.php(925): MediaWiki->performRequest()
#7 /Users/kostajh/src/mediawiki/w/includes/MediaWiki.php(559): MediaWiki->main()
#8 /Users/kostajh/src/mediawiki/w/index.php(53): MediaWiki->run()
#9 /Users/kostajh/src/mediawiki/w/index.php(46): wfIndexMain()
#10 {main}

Seems to be due to https://gerrit.wikimedia.org/r/c/mediawiki/core/+/715590

apaskulin claimed this task.

Thanks for the context, @kostajh! I no longer see this error on https://api.wikimedia.beta.wmflabs.org/wiki/Main_Page, so resolving this for now