Last modified: 2013-09-18 15:17:48 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 T55037, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53037 - ItemByTitleHelper Division by zero error
ItemByTitleHelper Division by zero error
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Addshore
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-19 13:36 UTC by Addshore
Modified: 2013-09-18 15:17 UTC (History)
2 users (show)

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


Attachments

Description Addshore 2013-08-19 13:36:34 UTC
When running api.php?action=wbgetentities&sites=qwerty&titles=Berlin

I get:
Warning: Division by zero in C:\Users\user\Documents\git\mediawiki\extensions\Wikibase\repo\includes\api\ItemByTitleHelper.php on line 95
Call Stack
#	Time	Memory	Function	Location
1	0.0005	136128	{main}( )	..\api.php:0
2	0.2116	2413440	ApiMain->execute( )	..\api.php:73
3	0.2116	2413560	ApiMain->executeActionWithErrorHandling( )	..\ApiMain.php:351
4	0.2120	2431344	ApiMain->executeAction( )	..\ApiMain.php:380
5	0.3448	3093096	Wikibase\Api\GetEntities->execute( )	..\ApiMain.php:840
6	0.3538	3182224	Wikibase\Api\ItemByTitleHelper->getEntityIds( )	..\GetEntities.php:79
Comment 1 Gerrit Notification Bot 2013-08-25 10:05:31 UTC
Change 80797 had a related patch set uploaded by Addshore:
Catch div zero error in ItemByTitleHelper

https://gerrit.wikimedia.org/r/80797
Comment 2 Gerrit Notification Bot 2013-09-18 11:07:07 UTC
Change 80797 merged by jenkins-bot:
Restrict ItemByTitleHelper site/title combinations

https://gerrit.wikimedia.org/r/80797

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


Navigation
Links