Last modified: 2014-09-03 15:29:17 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 T69816, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67816 - Uncaught exception SuggestionGenerator.php: Item could not be found
Uncaught exception SuggestionGenerator.php: Item could not be found
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-10 18:07 UTC by Aude
Modified: 2014-09-03 15:29 UTC (History)
5 users (show)

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


Attachments

Description Aude 2014-07-10 18:07:13 UTC
2014-07-10 12:19:43 mw1194 wikidatawiki: [996ea05d] /w/api.php?action=wbsgetsuggestions&search=&entity=Q17334540&format=json&language=en&type=property&continue=0   Exception from line 55 of /usr/local/apache/common-local/php-1.24wmf12/extensions/Wikidata/extensions/PropertySuggester/src/PropertySuggester/SuggestionGenerator.php: Item Q17334540 could not be found
#0 /usr/local/apache/common-local/php-1.24wmf12/extensions/Wikidata/extensions/PropertySuggester/src/PropertySuggester/GetSuggestions.php(77): PropertySuggester\SuggestionGenerator->generateSuggestionsByItem('Q17334540', 7, 0.071)
#1 /usr/local/apache/common-local/php-1.24wmf12/includes/api/ApiMain.php(908): PropertySuggester\GetSuggestions->execute()
#2 /usr/local/apache/common-local/php-1.24wmf12/includes/api/ApiMain.php(363): ApiMain->executeAction()
#3 /usr/local/apache/common-local/php-1.24wmf12/includes/api/ApiMain.php(334): ApiMain->executeActionWithErrorHandling()
#4 /usr/local/apache/common-local/php-1.24wmf12/api.php(85): ApiMain->execute()
#5 /usr/local/apache/common-local/w/api.php(3): require('/usr/local/apac...')
Comment 1 Aude 2014-07-10 18:12:38 UTC
I don't think item not found is really an exceptional situation, so think instead we could return an empty array and perhaps log it.

in SuggestionGenerator::generateSuggestionsByItem, we could log something to the debug log, e.g.:

wfDebugLog( __CLASS__, 'Item ' . $id . ' could not be found' );
Comment 2 Aude 2014-09-03 15:29:17 UTC
still happening...

/w/api.php?action=wbsgetsuggestions&search=na&context=item&format=json&language=fr&type=property&continue=0&entity=Q17831325   Exception from line 57 of /usr/local/apache/common-local/php-1.24wmf19/extensions/Wikidata/extensions/PropertySuggester/src/PropertySuggester/SuggestionGenerator.php: Item Q17831325 could not be found

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


Navigation
Links