Last modified: 2014-01-17 03:55:35 UTC
[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}
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.