Page MenuHomePhabricator

LQT: Fatal error: Call to a member function getPrefixedText() on a non-object in ApiThreadAction.php on line 68
Closed, DeclinedPublicPRODUCTION ERROR

Description

[15-Oct-2013 14:39:24] Fatal error: Call to a member function getPrefixedText() on a non-object at /usr/local/apache/common-local/php-1.22wmf21/extensions/LiquidThreads/api/ApiThreadAction.php on line 68
Server: mw1198
Method: POST
URL: http://www.mediawiki.org/w/api.php
Backtrace:
#0 /usr/local/apache/common-local/php-1.22wmf21/extensions/LiquidThreads/api/ApiThreadAction.php(68): ApiThreadAction::actionMarkRead()
#1 [internal function]: ApiThreadAction->actionMarkRead(Array, Array)
#2 /usr/local/apache/common-local/php-1.22wmf21/extensions/LiquidThreads/api/ApiThreadAction.php(41): call_user_func_array(Array, Array)
#3 /usr/local/apache/common-local/php-1.22wmf21/includes/api/ApiMain.php(834): ApiThreadAction->execute()
#4 /usr/local/apache/common-local/php-1.22wmf21/includes/api/ApiMain.php(380): ApiMain->executeAction()
#5 /usr/local/apache/common-local/php-1.22wmf21/includes/api/ApiMain.php(351): ApiMain->executeActionWithErrorHandling()
#6 /usr/local/apache/common-local/php-1.22wmf21/api.php(73): ApiMain->execute()
#7 /usr/local/apache/common-local/w/api.php(3): require('/usr/local/apac...')
#8 {main}


Version: master
Severity: normal

Details

Reference
bz55739

Related Objects

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:36 AM
bzimport set Reference to bz55739.
bzimport added a subscriber: Unknown Object (MLST).
			foreach ( $threads as $t ) {
				NewMessages::markThreadAsReadByUser( $t, $user );
				$result[] = array(
					'result' => 'Success',
					'action' => 'markread',
					'id' => $t->id(),
					'title' => $t->title()->getPrefixedText()
				);
			}

function title() {

		if ( is_object( $this->root() ) ) {
			return $this->root()->getTitle();
		} else {
			// wfWarn( "Thread ".$this->id()." has no title." );
			return null;
		}

}


title() can and will return null.

hashar renamed this task from Fatal error: Call to a member function getPrefixedText() on a non-object in ApiThreadAction.php on line 68 to LQT: Fatal error: Call to a member function getPrefixedText() on a non-object in ApiThreadAction.php on line 68.Jun 23 2015, 7:37 PM
Jdforrester-WMF lowered the priority of this task from Low to Lowest.Aug 4 2016, 11:33 PM
Jdforrester-WMF added a subscriber: Jdforrester-WMF.

LiquidThreads has been replaced by StructuredDiscussions on all Wikimedia production wikis (except one, which will be done soon). It is no longer under active development or maintenance, so I'm re-classifying all open LQT tasks as "Lowest" priority.

Krinkle added a subscriber: Krinkle.

Not seen in Logstash for 30 days

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:12 PM