Last modified: 2012-12-30 20:56:28 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 T44274, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42274 - API: Call to a member function getFullURL() on a non-object
API: Call to a member function getFullURL() on a non-object
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-20 01:42 UTC by Sam Reed (reedy)
Modified: 2012-12-30 20:56 UTC (History)
4 users (show)

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


Attachments

Description Sam Reed (reedy) 2012-11-20 01:42:53 UTC
Fatal error:  Call to a member function getFullURL() on a non-object in /usr/local/apache/common-local/php-1.21wmf4/includes/api/ApiFeedWatchlist.php on line 164
Comment 1 Sam Reed (reedy) 2012-11-20 01:43:48 UTC
Fairly obviously why from the code:

		$titleStr = $info['title'];
		$title = Title::newFromText( $titleStr );
		if ( $this->linkToDiffs && isset( $info['revid'] ) ) {
			$titleUrl = $title->getFullURL( array( 'diff' => $info['revid'] ) );
		} else {
			$titleUrl = $title->getFullURL();
		}
Comment 2 Sam Reed (reedy) 2012-11-20 01:45:22 UTC
Server: srv299
Method: GET
URL: http://en.wikipedia.org/w/api.php?action=feedwatchlist&allrev=allrev&wlowner=Brent.austin&wltoken=REMOVED&feedformat=atom
Backtrace:
#0 /usr/local/apache/common-local/php-1.21wmf4/includes/api/ApiFeedWatchlist.php(164): ApiFeedWatchlist::createFeedItem()
#1 /usr/local/apache/common-local/php-1.21wmf4/includes/api/ApiFeedWatchlist.php(117): ApiFeedWatchlist->createFeedItem(Array)
#2 /usr/local/apache/common-local/php-1.21wmf4/includes/api/ApiMain.php(825): ApiFeedWatchlist->execute()
#3 /usr/local/apache/common-local/php-1.21wmf4/includes/api/ApiMain.php(372): ApiMain->executeAction()
#4 /usr/local/apache/common-local/php-1.21wmf4/includes/api/ApiMain.php(349): ApiMain->executeActionWithErrorHandling()
#5 /usr/local/apache/common-local/php-1.21wmf4/api.php(77): ApiMain->execute()
#6 /usr/local/apache/common-local/live-1.5/api.php(3): require('/usr/local/apac...')
#7 {main}
Comment 3 Brad Jorsch 2012-11-20 15:16:40 UTC
It looks like what most likely happened here is that the user has a newly-invalid title on their watchlist (e.g. one of the pages affected by the new "d:" interwiki prefix for Wikidata).

The question is what is the most correct behavior in this situation? Leave out the <link> node completely from the feed? Leave out the entire <item> for the entry?

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


Navigation
Links