Page MenuHomePhabricator

Call to a member function isEmpty() on a non-object in EditPage.php
Closed, ResolvedPublic

Description

[18-Oct-2012 15:40:35] Fatal error: Call to a member function isEmpty() on a non-object at /usr/local/apache/common-local/php-1.21wmf2/includes/EditPage.php on line 474
Server: mw53
Method: GET
URL: http://www.mediawiki.org/w/index.php?title=Manual:$wgSMTP&action=edit&section=1?printable=yes
Backtrace:
#0 /usr/local/apache/common-local/php-1.21wmf2/includes/EditPage.php(474): EditPage::displayPermissionsError()
#1 /usr/local/apache/common-local/php-1.21wmf2/includes/EditPage.php(370): EditPage->displayPermissionsError(Array)
#2 /usr/local/apache/common-local/php-1.21wmf2/includes/actions/EditAction.php(51): EditPage->edit()
#3 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(428): EditAction->show()
#4 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(305): MediaWiki->performAction(Object(Article))
#5 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(554): MediaWiki->performRequest()
#6 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(447): MediaWiki->main()
#7 /usr/local/apache/common-local/php-1.21wmf2/index.php(59): MediaWiki->run()
#8 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#9 {main}


Version: unspecified
Severity: normal

Details

Reference
bz41178

Event Timeline

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

This one isn't completely fixed, just seen the error again on the cluster

		$content = $this->getContentObject();

		# Use the normal message if there's nothing to display
		if ( $this->firsttime && ( $content === false || $content->isEmpty() ) ) {

But we've specified there is no parameter to getContentObject(), so it defaults to null

protected function getContentObject( $def_content = null ) {

meaning $content can still be null...

[18-Oct-2012 23:21:29] Fatal error: Call to a member function isEmpty() on a non-object at /usr/local/apache/common-local/php-1.21wmf2/includes/EditPage.php on line 474
Server: mw35
Method: GET
URL: http://en.wiktionary.org/w/index.php?title=User:Sano&action=edit&section=3+Result:+chosen+nickname+%22safKarmajom%22;+nofollow+is+found;+success+-+posted+to+first+encountered+partition+%22/w/index.php?$
Backtrace:
#0 /usr/local/apache/common-local/php-1.21wmf2/includes/EditPage.php(474): EditPage::displayPermissionsError()
#1 /usr/local/apache/common-local/php-1.21wmf2/includes/EditPage.php(370): EditPage->displayPermissionsError(Array)
#2 /usr/local/apache/common-local/php-1.21wmf2/includes/actions/EditAction.php(51): EditPage->edit()
#3 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(428): EditAction->show()
#4 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(305): MediaWiki->performAction(Object(Article))
#5 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(554): MediaWiki->performRequest()
#6 /usr/local/apache/common-local/php-1.21wmf2/includes/Wiki.php(447): MediaWiki->main()
#7 /usr/local/apache/common-local/php-1.21wmf2/index.php(59): MediaWiki->run()
#8 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#9 {main}

Closed older resolved bugs as verified.