Page MenuHomePhabricator

Call to a member function getContent() on null
Closed, ResolvedPublicPRODUCTION ERROR



MediaWiki version: 1.35.0-wmf.5

Call to a member function getContent() on null


Likely causes edits to fail.


Not sure if this is new page creation or edits to an existing page or if this is an edit to a page that was deleted / uneditable. Given that we've previously handled the first two, likely the last scenario.


Request ID
Request URL
Stack Trace
#0 /srv/deployment/parsoid/deploy-cache/revs/766562458022b36f7d641065bcb7161e512d650c/src/extension/src/Rest/Handler/ParsoidHandler.php(791): Parsoid\Config\Env->getPageMainContent()
#1 /srv/deployment/parsoid/deploy-cache/revs/766562458022b36f7d641065bcb7161e512d650c/src/extension/src/Rest/Handler/TransformHandler.php(95): MWParsoid\Rest\Handler\ParsoidHandler->html2wt(Parsoid\Config\Env, array, string)
#2 /srv/mediawiki/php-1.35.0-wmf.5/includes/Rest/Router.php(315): MWParsoid\Rest\Handler\TransformHandler->execute()
#3 /srv/mediawiki/php-1.35.0-wmf.5/includes/Rest/Router.php(285): MediaWiki\Rest\Router->executeHandler(MWParsoid\Rest\Handler\TransformHandler)
#4 /srv/mediawiki/php-1.35.0-wmf.5/includes/Rest/EntryPoint.php(116): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)
#5 /srv/mediawiki/php-1.35.0-wmf.5/includes/Rest/EntryPoint.php(83): MediaWiki\Rest\EntryPoint->execute()
#6 /srv/mediawiki/php-1.35.0-wmf.5/rest.php(31): MediaWiki\Rest\EntryPoint::main()
#7 /srv/mediawiki/w/rest.php(3): require(string)
#8 {main}

Event Timeline

ssastry triaged this task as High priority.Nov 22 2019, 5:39 PM
ssastry lowered the priority of this task from High to Low. says that the user is blocked. So, this is indeed a scenario of trying to save an edit to a page that is blocked. As such, the impact is more limited. So, lowering priority.

Change 555588 had a related patch set uploaded (by Subramanya Sastry; owner: Subramanya Sastry):
[mediawiki/services/parsoid@master] Throw an exception when the requested revision is not found

Change 555588 merged by jenkins-bot:
[mediawiki/services/parsoid@master] html2wt selser: Return http 409 if the previous revision is not found