Page MenuHomePhabricator

Add awawiki to wikistats
Closed, ResolvedPublic

Description

Once the wiki has been created.

Event Timeline

(If this requires creating the wiki then wiki creation is a subtask not a parent task, as the subtask first needs to be solved)

Normally i would just do this after creating the wiki, yea. So technically Andre is right. Though we have always done this "the wrong way around" for all the subtasks and it's also not a big deal to add it before creation. It will just show up as a warning in some logfile and be an otherwise empty column in some tables, but doesnt' really matter.

MariaDB [wikistats]> insert into wikipedias (lang,prefix,loclang,method) values ("Awadhi", "awa", "ქართული", 8);

sudo -u wikistatsuser /usr/lib/wikistats/update.php wp prefix awa
sent query: 'select * from wikipedias where prefix="awa"'.
A(1/318) - awa.wikipedia.org - calling API: https://awa.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=php&maxlag=5
-> http answer: 302 -> parsing answer: 1
getting version for https://awa.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=php&maxlag=5PHP Notice:  unserialize(): Error at offset 0 of 151587 bytes in /usr/share/php/wikistats/functions.php on line 72
PHP Warning:  Illegal string offset 'generator' in /usr/share/php/wikistats/functions.php on line 561
---> ERROR - fetching via HTTP failed: id 332 (https://awa.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=php&maxlag=5) 

---> update wikipedias set http="302" where id="332";

(If this requires creating the wiki then wiki creation is a subtask not a parent task, as the subtask first needs to be solved)

I learned today that it does require creating the wiki first. Doing it before caused a new ticket T253097 which i did not expect at all.

Deleted it again for now because adding it before the wiki has been created cause more issues like the one linked above and then T253115.

Dzahn changed the task status from Open to Stalled.May 19 2020, 11:13 AM
Dzahn triaged this task as Medium priority.

re-added now that the wiki has been created.

---> update wikipedias set total="0",good="0",edits="0",users="0",activeusers="0",admins="0",images="0",http="200",si_generator="MediaWiki 1.35.0-wmf.32",ts=NOW() where id="333";