<div dir="ltr">Hi all,<br><br>I am trying to update the contents of a page by using a cron job.<br>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.<br>
But even after reloading the page, the contents do not get updated.<br>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.<br>I tried to use the simple calls like login and action=query.<br>
They seem to work fine.<br>But when i tried to use action=edit, I get the following error,<br>"a:1:{s:5:"error";a:2:{s:4:"code";s:14:"unknown_action";s:4:"info";s:41:"Unrecognised value for parameter 'action'";}}"<br>
<br>I am using Mediawiki 1.11.2 with PHP <a href="http://5.1.6.">5.1.6.</a>.<br>I have the following 2 lines in my LocalSettings.php,<br>$wgEnableAPI = true;<br>$wgEnableWriteAPI = true;<br><br>Is it that this action is not allowed on this version of mediawiki.<br>
If so is there any other way around??<br><br>your help will be really appreciated.. <br>Thank you.<br>Sangram<br></div>