Last modified: 2013-08-22 14:55:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43030, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41030 - [Regression] ContentHandler breaks WikiPage::getParserOutput on nonexistant pages
[Regression] ContentHandler breaks WikiPage::getParserOutput on nonexistant p...
Product: MediaWiki
Classification: Unclassified
ContentHandler (Other open bugs)
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
Depends on:
  Show dependency treegraph
Reported: 2012-10-15 08:06 UTC by Daniel Friesen
Modified: 2013-08-22 14:55 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Daniel Friesen 2012-10-15 08:06:31 UTC
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.
Comment 1 Daniel Kinzler 2012-10-15 12:37:43 UTC
Fixed by I68dc34aa
Comment 2 denny vrandecic 2013-08-22 14:55:39 UTC
Closed older resolved bugs as verified.

Note You need to log in before you can comment on or make changes to this bug.