Page MenuHomePhabricator

Argument 1 passed to EditPage::toEditText() must implement interface Content, boolean give
Closed, ResolvedPublic

Description

Catchable fatal error: Argument 1 passed to EditPage::toEditText() must implement interface Content, boolean given, called in /usr/local/apache/common-local/php-1.21wmf2/includes/EditPage.php on line 779 and defined in /usr/local/apache/common-local/php-1.21wmf2/includes/EditPage.php on line 1908


Version: unspecified
Severity: normal

Details

Reference
bz41043

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 12:49 AM
bzimport set Reference to bz41043.
bzimport added a subscriber: Unknown Object (MLST).

[15-Oct-2012 18:20:17] Catchable fatal error: Argument 1 passed to EditPage::toEditText() must implement interface Content, boolean given, called in /usr/local/apache/common-local/php-1.21wmf2/includes/Edit$
Server: srv233
Method: GET
URL: http://www.mediawiki.org/w/index.php?title=Help:Preferences/es&action=edit&section=6?printable=yes
Backtrace:
#0 /usr/local/apache/common-local/php-1.21wmf2/includes/EditPage.php(1908): EditPage::toEditText()
#1 /usr/local/apache/common-local/php-1.21wmf2/includes/EditPage.php(779): EditPage->toEditText(false)
#2 /usr/local/apache/common-local/php-1.21wmf2/includes/EditPage.php(406): EditPage->initialiseForm()
#3 /usr/local/apache/common-local/php-1.21wmf2/includes/actions/EditAction.php(51): EditPage->edit()
#4 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(428): EditAction->show()
#5 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(305): MediaWiki->performAction(Object(Article))
#6 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(554): MediaWiki->performRequest()
#7 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(447): MediaWiki->main()
#8 /usr/local/apache/common-local/php-1.21wmf2/index.php(59): MediaWiki->run()
#9 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#10 {main}

Marking as a deployment blocker, since this looks like one we shouldn't continue the 1.21wmf2 deployment with.

That URL is broken, it has two question marks.

The error can be reproduced with any malformed section identifier: http://www.mediawiki.org/w/index.php?title=Help:Preferences/es&action=edit&section=1x

Needs to be backported to 1.21wmf2, I think.

Patch for 1.21wmf2 is at I62bc724a, pending review

I62bc724a was merged into master and wmf2.

Closed older resolved bugs as verified.