Page MenuHomePhabricator

PHP Fatal error: Call to a member function getRedirectChain() on a non-object
Closed, ResolvedPublic

Description

PHP Fatal error: Call to a member function getRedirectChain() on a non-object in /usr/local/apache/common-local/php-1.21wmf5/includes/EditPage.php on line 2985

[05-Dec-2012 21:17:11] Fatal error: Call to a member function getRedirectChain() on a non-object at /usr/local/apache/common-local/php-1.21wmf5/includes/EditPage.php o$
Server: srv192
Method: GET
URL: http://cs.wikipedia.org/w/index.php?title=Svaz_pr%C5%AFmyslu_a_dopravy&action=edit&oldid=9346695
Backtrace:
#0 /usr/local/apache/common-local/php-1.21wmf5/includes/EditPage.php(2985): EditPage::getPreviewText()
#1 /usr/local/apache/common-local/php-1.21wmf5/includes/EditPage.php(2010): EditPage->getPreviewText()
#2 /usr/local/apache/common-local/php-1.21wmf5/includes/EditPage.php(421): EditPage->showEditForm()
#3 /usr/local/apache/common-local/php-1.21wmf5/includes/actions/EditAction.php(51): EditPage->edit()
#4 /usr/local/apache/common-local/php-1.21wmf5/includes/Wiki.php(429): EditAction->show()
#5 /usr/local/apache/common-local/php-1.21wmf5/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
#6 /usr/local/apache/common-local/php-1.21wmf5/includes/Wiki.php(555): MediaWiki->performRequest()
#7 /usr/local/apache/common-local/php-1.21wmf5/includes/Wiki.php(448): MediaWiki->main()
#8 /usr/local/apache/common-local/php-1.21wmf5/index.php(59): MediaWiki->run()
#9 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#10 {main}


Version: 1.21.x
Severity: normal

Details

Reference
bz42740

Event Timeline

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

protected function toEditContent( $text ) {

		if ( $text === false || $text === null ) {
			return $text;
		}

Reedy: I have no idea how bad this is, so if you just paste a stacktrace I'd appreciate if you could also set priority and severity.

[21-Oct-2013 18:35:11] Fatal error: Call to a member function getRedirectChain() on a non-object at /usr/local/apache/common-local/php-1.22wmf21/includes/EditPage.php on line 3169
Server: mw1211
Method: GET
URL: http://en.wikipedia.org/w/index.php?title=Massachusetts&action=edit&oldid=11488920
Backtrace:
#0 /usr/local/apache/common-local/php-1.22wmf21/includes/EditPage.php(3169): EditPage::getPreviewText()
#1 /usr/local/apache/common-local/php-1.22wmf21/includes/EditPage.php(2152): EditPage->getPreviewText()
#2 /usr/local/apache/common-local/php-1.22wmf21/includes/EditPage.php(441): EditPage->showEditForm()
#3 /usr/local/apache/common-local/php-1.22wmf21/includes/actions/EditAction.php(50): EditPage->edit()
#4 /usr/local/apache/common-local/php-1.22wmf21/includes/Wiki.php(448): EditAction->show()
#5 /usr/local/apache/common-local/php-1.22wmf21/includes/Wiki.php(312): MediaWiki->performAction(Object(Article), Object(Title))
#6 /usr/local/apache/common-local/php-1.22wmf21/includes/Wiki.php(602): MediaWiki->performRequest()
#7 /usr/local/apache/common-local/php-1.22wmf21/includes/Wiki.php(467): MediaWiki->main()
#8 /usr/local/apache/common-local/php-1.22wmf21/index.php(49): MediaWiki->run()
#9 /usr/local/apache/common-local/w/index.php(3): require('/usr/local/apac...')
#10 {main}

Both urls are now reachable. Looks like the revision on the server was fixed, because EditPage.php looks unchanged in the near of the getRedirectChain call.

The getRedirectChain call was removed with gerrit 105829, so this fatal will no longer be occured.