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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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.