When trying to edit a page in a local wiki, (mediawiki 1.13) I get an
error of some sort, but this module doesn't parse the error properly, so
I had to modify the the module to get the error. Otherwise, all I see is:
malformed JSON string, neither array, object, number, string or atom, at
character offset 0 ["<br />n<b>Fatal erro..."] at
/usr/local/lib/perl5/site_perl/5.10.0/MediaWiki/API.pm line 225.
After my patch, its:
Failed to decode message:
<br />
<b>Fatal error</b>: Call to a member function isSpecial() on a
non-object in
<b>/export/home/wiki/public_html/wikimedia/on/extensions/PasswordReset/PasswordReset_body.php</b>
on line <b>174</b><br />
at pod.pl line 137
I'm not sure why the API would touch this extension, but the module
should display a more reasonable message.
Subject: | patch |