Last modified: 2012-12-30 20:56:28 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
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(); }
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}
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?