Thanks much for the quick answer, I see the problem now. I wonder how these large wikitexts could be written on my target Wiki. Is there a way to 'force' the PHP max execution time limit through the API? If not, I guess I will have to contact a sysop..
Roan Kattouw-2 wrote:
2010/7/13 Sal976 salvatore.loguercio@googlemail.com:
I wonder if this error is due to server timeout or exceeding number of characters.. Any suggestions?
It spends so much time parsing the wikitext you supplied that PHP's max execution time limit was exceeded, which causes an empty (0-byte) response. You can fix the error message by checking for a response of length zero before you try to JSON-decode it.
Roan Kattouw (Catrope)
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api