Last modified: 2014-02-26 12:54:54 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 T51398, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49398 - Fatal error: Call to undefined method JsonSchemaContent::getHtml() at includes/content/TextContent.php on line 216
Fatal error: Call to undefined method JsonSchemaContent::getHtml() at include...
Status: VERIFIED FIXED
Product: Analytics
Classification: Unclassified
EventLogging (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-10 18:31 UTC by Sam Reed (reedy)
Modified: 2014-02-26 12:54 UTC (History)
9 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-06-10 18:31:03 UTC
[10-Jun-2013 18:27:52] Fatal error: Call to undefined method JsonSchemaContent::getHtml() at /usr/local/apache/common-local/php-1.22wmf6/includes/content/TextContent.php on line 216
Server: mw1044
Method: GET
URL: http://meta.wikimedia.org/wiki/Schema:GettingStarted
Backtrace:
#0 /usr/local/apache/common-local/php-1.22wmf6/includes/content/TextContent.php(216): TextContent->fillParserOutput()
#1 /usr/local/apache/common-local/php-1.22wmf6/includes/content/AbstractContent.php(472): TextContent->fillParserOutput(Object(Title), 5285779, Object(ParserOptions), true, Object(ParserOutput))
#2 /usr/local/apache/common-local/php-1.22wmf6/extensions/EventLogging/includes/JsonSchemaContent.php(144): AbstractContent->getParserOutput(Object(Title), 5285779, Object(ParserOptions), true)
#3 /usr/local/apache/common-local/php-1.22wmf6/includes/WikiPage.php(3424): JsonSchemaContent->getParserOutput(Object(Title), 5285779, Object(ParserOptions))
#4 /usr/local/apache/common-local/php-1.22wmf6/includes/PoolCounter.php(222): PoolWorkArticleView->doWork()
#5 /usr/local/apache/common-local/php-1.22wmf6/includes/Article.php(708): PoolCounterWork->execute()
#6 /usr/local/apache/common-local/php-1.22wmf6/includes/actions/ViewAction.php(44): Article->view()
#7 /usr/local/apache/common-local/php-1.22wmf6/includes/Wiki.php(439): ViewAction->show()
#8 /usr/local/apache/common-local/php-1.22wmf6/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
#9 /usr/local/apache/common-local/php-1.22wmf6/includes/Wiki.php(565): MediaWiki->performRequest()
#10 /usr/local/apache/common-local/php-1.22wmf6/includes/Wiki.php(458): MediaWiki->main()
#11 /usr/local/apache/common-local/php-1.22wmf6/index.php(55): MediaWiki->run()
#12 /usr/local/apache/common-local/w/index.php(3): require('/usr/local/apac...')
#13 {main}
Comment 1 Gerrit Notification Bot 2013-06-10 18:57:51 UTC
Related URL: https://gerrit.wikimedia.org/r/67857 (Gerrit Change Ie900ec7c2b303d95abdf1d984082a72e50371957)
Comment 2 Gerrit Notification Bot 2013-06-10 18:57:54 UTC
Related URL: https://gerrit.wikimedia.org/r/67857 (Gerrit Change Ie900ec7c2b303d95abdf1d984082a72e50371957)
Comment 3 Gerrit Notification Bot 2013-06-10 19:13:03 UTC
Related URL: https://gerrit.wikimedia.org/r/67860 (Gerrit Change Idcef8d4cedc7c03f72bc1743e0f89cc5ed4ad7a7)
Comment 4 Gerrit Notification Bot 2013-06-10 19:17:53 UTC
Related URL: https://gerrit.wikimedia.org/r/67863 (Gerrit Change Idcef8d4cedc7c03f72bc1743e0f89cc5ed4ad7a7)
Comment 5 spage 2013-06-10 19:31:31 UTC
This was introduced by Gerrit change #28199, the changes above work around or revert it.

Were a wiki to use CONTENT_MODEL_TEXT in a namespace, it would also get this error, since TextContent calls getHtml() and doesn't implement it.
Comment 6 Gerrit Notification Bot 2013-06-10 19:37:40 UTC
https://gerrit.wikimedia.org/r/67857 (Gerrit Change Ie900ec7c2b303d95abdf1d984082a72e50371957) | change ABANDONED [by Ori.livneh]
Comment 7 Ori Livneh 2013-06-10 19:38:30 UTC
Fixed by reverting Ibfb2cbefe.
Comment 8 Daniel Kinzler 2013-06-11 14:23:15 UTC
Here's a fixed version of the original patch: https://gerrit.wikimedia.org/r/#/c/67983/

Sorry that I didn't notice the issue before submitting - that's what you get for relying on unit tests, see bug 49435.
Comment 9 denny vrandecic 2013-08-22 14:55:24 UTC
Closed older resolved bugs as verified.
Comment 10 Andre Klapper 2014-02-26 12:54:54 UTC
[moving from MediaWiki extensions to Analytics product - see bug 61946]

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


Navigation
Links