[Mediawiki-api] API for action=edit gives error

Sangram Mohite sangram316 at gmail.com
Tue Jul 29 18:05:36 UTC 2008


Hi all,

I am trying to update the contents of a page by using a cron job.
I am able to do it by writing a query whcih will update the "old_text" field
from the table "text" with the contents of a text file.
But even after reloading the page, the contents do not get updated.
I was told by one of the members that this was not the right way to do it. I
should try using the API which is available.
I tried to use the simple calls like login and action=query.
They seem to work fine.
But when i tried to use action=edit, I get the following error,
"a:1:{s:5:"error";a:2:{s:4:"code";s:14:"unknown_action";s:4:"info";s:41:"Unrecognised
value for parameter 'action'";}}"

I am using Mediawiki 1.11.2 with PHP 5.1.6..
I have the following 2 lines in my LocalSettings.php,
$wgEnableAPI = true;
$wgEnableWriteAPI = true;

Is it that this action is not allowed on this version of mediawiki.
If so is there any other way around??

your help will be really appreciated..
Thank you.
Sangram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/mediawiki-api/attachments/20080729/dd07101a/attachment.htm 


More information about the Mediawiki-api mailing list