David Di Biase schreef:
Hi Brad, Roan,
Thanks for the quick reply. I, as a matter of fact, did not enable it. I
just went ahead and researched the config settings I should have in
LocalSettings.php and added these two:
$wgEnableWriteAPI = true;
$wgEnableAPI = true;
Technically, the latter isn't necessary (because it's enabled by default
and because the API is obviously working; you're not getting "the API is
disabled" errors everywhere), but it doesn't hurt. The write API will
also be enabled by default as of MediaWiki 1.14.
Besides that I noticed that one of my links, as Roan
suggested, was missing
action=edit or rather it was there but I had a double ? ie.
index.php?format=xml?action=. How silly of me.
It's always the nasty little things.
I'm now getting this, which I'll work through
in a bit as I might have an
idea of what it is:
[error] => Array
[code] => notext
[info] => One of the text, appendtext and prependtext
parameters must be set
The text parameter (containing the text you want to put in your page)
isn't set (or it got overridden by one of your ?foo=bar?baz=blah
I did notice that the API enable option isn't
described at all in the API
reference manual. That's probably something people should know before trying
to do editing and similar things. Unless I missed it (which tends to happen
to me :-p).
You're right that it isn't mentioned in the api.php help, it should be.
FWIW, it is mentioned in the API documentation at MW.org
Roan Kattouw (Catrope)