Hello
Is it possible to lock the page through API?
Thanx
2010/3/5 Herulee heramb.forums@googlemail.com:
Hello
Is it possible to lock the page through API?
It gives me the error
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please hit "back" and reload the page you came from, then try again.</p> <p>You may view and change the protection level here for the page
Roan Kattouw-2 wrote:
2010/3/5 Herulee heramb.forums@googlemail.com:
Hello
Is it possible to lock the page through API?
http://www.mediawiki.org/wiki/API:Edit_-_Protect
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
2010/3/5 Herulee heramb.forums@googlemail.com:
It gives me the error
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please hit "back" and reload the page you came from, then try again.</p>
<p>You may view and change the protection level here for the page
Use api.php?action=protect , not index.php?action=protect , and make sure you're passing login cookies correctly.
Roan Kattouw (Catrope)
Thanx for the reply It worked only when I set the $wgGroupPermissions['user']['protect'] = true;
Roan Kattouw-2 wrote:
2010/3/5 Herulee heramb.forums@googlemail.com:
It gives me the error
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please hit "back" and reload the page you came from, then try again.</p>
<p>You may view and change the protection level here for the page
Use api.php?action=protect , not index.php?action=protect , and make sure you're passing login cookies correctly.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Herulee <heramb.forums <at> googlemail.com> writes:
Thanx for the reply It worked only when I set the $wgGroupPermissions['user']['protect'] = true;
Roan Kattouw-2 wrote:
2010/3/5 Herulee <heramb.forums <at> googlemail.com>:
It gives me the error
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please hit "back" and reload the page you came from, then try again.</p>
<p>You may view and change the protection level here for the page
Use api.php?action=protect , not index.php?action=protect , and make sure you're passing login cookies correctly.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api <at> lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Hello,
I get the same error message when i try to login to my personal mediawiki using at my company. I tried to login with opera, firefox, google chrome. It worked all three times but when I'm trying to login with Internet Explorer 8 i get this error message:
"There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please hit "back" and reload the page you came from, then try again."
Im using a Windows 2000 PC as Webserver with XAMPP 1.6.8:
###### ApacheFriends XAMPP (Basispaket) version 1.6.8 ######
+ Apache 2.2.9 + MySQL 5.0.67 (Community Server) + PHP 5.2.6 + PHP 4.4.9 + PEAR + PHP-Switch win32 1.0 (use "php-switch.bat" in the xampp main directory) + XAMPP Control Version 2.5 from www.nat32.com + XAMPP Security 1.0 + SQLite 2.8.15 + OpenSSL 0.9.8i + phpMyAdmin 2.11.9.2
Do you have any idea what the reason could be?
Thank you very much!
Hi,
I just noticed that if you use the "redirect" option with the "action=query&prop=imageinfo" API, it does provide a <redirects> element as expected, but there's no image info? You need to do a new query with the redirected image name to retrieve it.
I think this is different behavior from "redirect" in the other APIs, where it provides the info with the redirect at the same time.
Is this a bug or expected?
http://en.wikipedia.org/w/api.php?action=query&prop=imageinfo&titles... <?xml version="1.0"?> <api> <query> <redirects> <r from="File:Liberia court of arms.png" to="File:Coat of arms of Liberia.png" /> </redirects> <pages> <page pageid="23044582" ns="6" title="File:Coat of arms of Liberia.png" imagerepository="" /> </pages> </query> </api>
http://en.wikipedia.org/w/api.php?action=query&prop=imageinfo&titles... <?xml version="1.0"?> <api> <query> <pages> <page pageid="23044582" ns="6" title="File:Coat of arms of Liberia.png" imagerepository="local"> <imageinfo> <ii timestamp="2009-06-01T14:04:00Z" size="14121" width="200" height="211" thumburl="http://upload.wikimedia.org/wikipedia/en/thumb/1/12/Coat_of_arms_of_Liberia.png/121px-Coat_of_arms_of_Liberia.png" thumbwidth="121" thumbheight="128" url="http://upload.wikimedia.org/wikipedia/en/1/12/Coat_of_arms_of_Liberia.png" descriptionurl="http://en.wikipedia.org/wiki/File:Coat_of_arms_of_Liberia.png" metadata="" mime="image/png" /> </imageinfo> </page> </pages> </query> </api>
-Pierre
________________________________ Pierre-Olivier Latour pol@cooliris.com
2010/6/1 Pierre-Olivier Latour pol@cooliris.com:
Hi, I just noticed that if you use the "redirect" option with the "action=query&prop=imageinfo" API, it does provide a <redirects> element as expected, but there's no image info? You need to do a new query with the redirected image name to retrieve it. I think this is different behavior from "redirect" in the other APIs, where it provides the info with the redirect at the same time. Is this a bug or expected?
This is a bug, filed at https://bugzilla.wikimedia.org/show_bug.cgi?id=23750
Roan Kattouw (Catrope)
Thanks for creating the bug report!
On Jun 2, 2010, at 12:16 AM, Roan Kattouw wrote:
2010/6/1 Pierre-Olivier Latour pol@cooliris.com:
Hi, I just noticed that if you use the "redirect" option with the "action=query&prop=imageinfo" API, it does provide a <redirects> element as expected, but there's no image info? You need to do a new query with the redirected image name to retrieve it. I think this is different behavior from "redirect" in the other APIs, where it provides the info with the redirect at the same time. Is this a bug or expected?
This is a bug, filed at https://bugzilla.wikimedia.org/show_bug.cgi?id=23750
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
-Pierre
________________________________ Pierre-Olivier Latour pol@cooliris.com
SLimke wrote:
Hello,
I get the same error message when i try to login to my personal mediawiki using at my company. I tried to login with opera, firefox, google chrome. It worked all three times but when I'm trying to login with Internet Explorer 8 i get this error message:
"There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please hit "back" and reload the page you came from, then try again."
Im using a Windows 2000 PC as Webserver with XAMPP 1.6.8:
###### ApacheFriends XAMPP (Basispaket) version 1.6.8 ######
- Apache 2.2.9
- MySQL 5.0.67 (Community Server)
- PHP 5.2.6 + PHP 4.4.9 + PEAR
- PHP-Switch win32 1.0 (use "php-switch.bat" in the xampp main directory)
- XAMPP Control Version 2.5 from www.nat32.com
- XAMPP Security 1.0
- SQLite 2.8.15
- OpenSSL 0.9.8i
- phpMyAdmin 2.11.9.2
Do you have any idea what the reason could be?
Thank you very much!
Your Internet Explorer is blocking the cookies?
mediawiki-api@lists.wikimedia.org