Page MenuHomePhabricator

[Regression] ContentHandler breaks WikiPage::getParserOutput on nonexistant pages
Closed, ResolvedPublic

Description

Fatal error: Call to a member function getParserOutput() on a non-object in {mediawiki/core}/includes/WikiPage.php on line 3348

Looks like the code tries to get a content object and then neither it nor ContentHandler considers the case where the page doesn't exist and doesn't have normal content.

Previously it worked fine and just outputted empty output.

Making all the fallback code and core code explicitly handle the case where there is no content is one possibility. Or we might add something like an EmptyContent class.


Version: unspecified
Severity: normal

Details

Reference
bz41030

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:48 AM
bzimport set Reference to bz41030.
bzimport added a subscriber: Unknown Object (MLST).

Closed older resolved bugs as verified.