Last modified: 2014-01-17 03:55:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57739, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55739 - Fatal error: Call to a member function getPrefixedText() on a non-object in ApiThreadAction.php on line 68
Fatal error: Call to a member function getPrefixedText() on a non-object in ...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
LiquidThreads (Other open bugs)
master
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 17553
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-15 14:50 UTC by Sam Reed (reedy)
Modified: 2014-01-17 03:55 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2013-10-15 14:50:18 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}
Comment 1 Sam Reed (reedy) 2013-10-15 15:35:28 UTC
			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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links