Last modified: 2014-09-12 23:51:54 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 T56161, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54161 - [Errors 500] Identify wikis with $wgEnableAPI=false
[Errors 500] Identify wikis with $wgEnableAPI=false
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
wikistats (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Daniel Zahn
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-16 07:42 UTC by Nemo
Modified: 2014-09-12 23:51 UTC (History)
3 users (show)

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


Attachments

Description Nemo 2013-09-16 07:42:04 UTC
Several of the error 500 rows are just wikis with API (now) disabled, e.g. http://wiki.zaksenterprises.com/api.php?action=query&meta=siteinfo&maxlag=5 (http://wikistats.wmflabs.org/detail.php?t=mw&id=130) which however has a functional http://kaoshi.wobuxihuan.org/wiki/Special:Version .
Comment 1 Daniel Zahn 2014-09-12 02:25:21 UTC
(In reply to Nemo from comment #0)
> Several of the error 500 rows are just wikis with API (now) disabled, e.g.
> http://wiki.zaksenterprises.com/api.php?action=query&meta=siteinfo&maxlag=5
> (http://wikistats.wmflabs.org/detail.php?t=mw&id=130) which however has a
> functional http://kaoshi.wobuxihuan.org/wiki/Special:Version .

the first URL is 404 nowadays. the last URL seems all unrelated to the first one.

there were 209 wikis with error 500. 

i added a little code to the update script that detects the ones who return
"HTTP/1.0 500 MediaWiki configuration Error" in the header as opposed to a regular 500, then uses the custom error code "999" for them.

reusing what was once "/http_status_codes.php:$http_status[999]="stats-9 - Outdated. Timestamp was older than 14 days.";"  but there were no wikis with that status.

running this found 17 (of the 209) wikis (only)

these can now be seen here, so they are identified as the bug asks for:

http://wikistats.wmflabs.org/display.php?t=mw&s=http_desc

-- 

reminder to self: please commit the change to /usr/share/php/wikistats/functions.php  and edit /usr/share/php/wikistats/http_status_codes.php
Comment 2 Gerrit Notification Bot 2014-09-12 02:32:37 UTC
Change 159963 had a related patch set uploaded by Dzahn:
detect mw configuration errors in header

https://gerrit.wikimedia.org/r/159963
Comment 3 Daniel Zahn 2014-09-12 02:35:14 UTC
hah, it also finds rare stuff like this:

http://www.analisis-tecnico.eu/api.php?action=query&meta=siteinfo&siprop=statistics&maxlag=5 -> "MediaWiki 1.20 requires at least PHP version 5.3.2, you are using PHP 5.2.17"

---

well, the wikis are identified and can be deleted or fixed to use non-API method (maybe).


and the change is here
https://gerrit.wikimedia.org/r/#/c/159963/

resolving
Comment 4 Gerrit Notification Bot 2014-09-12 23:51:54 UTC
Change 159963 merged by Dzahn:
detect mw configuration errors in header

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

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


Navigation
Links