Page MenuHomePhabricator

handle wikis which have API for siteinfo but do not have siprop statistics
Closed, ResolvedPublic

Description

Due to different API capabilities in different MW versions we have a group of wikis which do offer api.php URLs and we can fetch siteinfo from, but they do not have statistics via API.

e.g. <error code="siunknown_siprop" info="Unrecognised value for parameter 'siprop'">

That's the wikis where you can see name/license but no values for good,total, etc..

There are new error codes introduced in the siteinfo fetching. (892,893,894) for debugging. Those that are http 200 but show no stats numbers fall into this category.

Also code is changed to try fetching siteinfo even if fetching statistics fails, before it was skipped.

Introduce new method "7" for those that are "siteinfo yes","statistics no", use API for siteinfo and try replacing api.php URL with Special:Statistics?action=raw and method 0 when fetching statistics.


Version: unspecified
Severity: normal

Details

Reference
bz36573

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 12:26 AM
bzimport set Reference to bz36573.
bzimport added a subscriber: Unknown Object (MLST).

added the "method 7" (7 in column "mt") for these as described.

581 more working ones now with http 200 who get siteinfo from API but stats from Special:Statistics. Also fixed links in display.php for these.