Hi, all,
I am now working on Wikipedia, but I met a question like this: see an example first: http://fr.wikipedia.org/w/api.php?action=query&prop=revisions&pageid...
Currently, in my database, there are many pages like this with "pageid="***", missing=""/"
Does this mean that this page is deleted page? or something else?
Thanks,
Marc
Xiujun Li a écrit:
Hi, all,
I am now working on Wikipedia, but I met a question like this: see an example first: http://fr.wikipedia.org/w/api.php?action=query&prop=revisions&pageid... http://fr.wikipedia.org/w/api.php?action=query&prop=revisions&pageids=1377&rvprop=ids|timestamp|user|content&rvdir=newer&rvstartid=48912721&rvendid=50912721&format=xml
Currently, in my database, there are many pages like this with "pageid="***", missing=""/"
Does this mean that this page is deleted page? or something else?
Thanks,
Marc
The missing attribute means that there is no page with page id 1377. Since there is a page with id 1378 (and mysql assigns pageids sequentially), this means that page id 1377 was deleted (may still be deleted, or could have been restored getting a new pageid, old mediawiki versions didn't preserve page ids across delete + restore).
Thanks for your reply, I check my mediawiki version on Server, it is 1.15.1, by July, 14, 2009. Though it is not latest version (1.17 by February, 2010), it is the nearer version.
Anyway, your answer gives me some hints about the deleted pages.
Thanks,
Platonides wrote:
Xiujun Li a écrit:
Hi, all,
I am now working on Wikipedia, but I met a question like this: see an example first: http://fr.wikipedia.org/w/api.php?action=query&prop=revisions&pageid... http://fr.wikipedia.org/w/api.php?action=query&prop=revisions&pageids=1377&rvprop=ids|timestamp|user|content&rvdir=newer&rvstartid=48912721&rvendid=50912721&format=xml
Currently, in my database, there are many pages like this with "pageid="***", missing=""/"
Does this mean that this page is deleted page? or something else?
Thanks,
Marc
The missing attribute means that there is no page with page id 1377. Since there is a page with id 1378 (and mysql assigns pageids sequentially), this means that page id 1377 was deleted (may still be deleted, or could have been restored getting a new pageid, old mediawiki versions didn't preserve page ids across delete + restore).
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Xiujun Li wrote:
Thanks for your reply, I check my mediawiki version on Server, it is 1.15.1, by July, 14, 2009. Though it is not latest version (1.17 by February, 2010), it is the nearer version.
Anyway, your answer gives me some hints about the deleted pages.
Thanks,
The old versions that didn't keep the pageid for deleted pages are really old. But you may have deleted pages without the pageid stored if it was upgraded. Latest version is 1.15.3 (you should update to avoid a CSRF bug), there's no mediawiki 1.17 yet.
Thanks very much,
1.15.3 is 1.17 what I said.
Thanks,
On Tue, Apr 13, 2010 at 10:00 PM, Platonides platonides@gmail.com wrote:
Xiujun Li wrote:
Thanks for your reply, I check my mediawiki version on Server, it is 1.15.1, by July, 14, 2009. Though it is not latest version (1.17 by February, 2010), it is the
nearer
version.
Anyway, your answer gives me some hints about the deleted pages.
Thanks,
The old versions that didn't keep the pageid for deleted pages are really old. But you may have deleted pages without the pageid stored if it was upgraded. Latest version is 1.15.3 (you should update to avoid a CSRF bug), there's no mediawiki 1.17 yet.
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/4/13 Xiujun Li nklixiujun@gmail.com:
Hi, all,
I am now working on Wikipedia, but I met a question like this: see an example first: http://fr.wikipedia.org/w/api.php?action=query&prop=revisions&pageid...
Currently, in my database, there are many pages like this with "pageid="***", missing=""/"
Does this mean that this page is deleted page? or something else?
It means it doesn't exist (or not anymore). You're explicitly passing &pageids=1377 so you're asking for data about page ID 1377. The API is telling you that it failed to find a page with pageID 1377, hence the "missing".
Roan Kattouw (Catrope)
mediawiki-api@lists.wikimedia.org