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)