https://bugzilla.wikimedia.org/show_bug.cgi?id=41030
Web browser: ---
Bug #: 41030
Summary: [Regression] ContentHandler breaks
WikiPage::getParserOutput on nonexistant pages
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ContentHandler
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l