MarcinPawlak
Member
Posted 5 years ago #
Hello,
I have problem with adding new post by xmlrpc. When I adding new post without polish letters post is added, but when I add polish letters i had error:
parse error. not well formed
Only then.
My scripts to adding (include xmlrpc.inc 4 php) are saved in UTF-8.
I saw that on one my server it added with polish letters but on my localhost and dreamhost doesn't
You get that error whenever PHP cannot parse the XML document, more or less. If you examine class-IXR.php, around line 151, you'll see a call to xml_parse(). This is what's returning the error. There's some commented out debugging code there, which probably will only help you if you're a developer.
If you're using some program to post through XMLRPC, I'd say that it's a fault with the program.
MarcinPawlak
Member
Posted 5 years ago #
Yes, I saw that xml_parse() cause problem. But when i uncomment this I have problem like this:
Invalid return payload: enable debugging to examine incoming payload (XML error at line 1, check URL)
and I can't check the error!
Thanks for help
Well, yes, the return payload will be invalid if you uncomment that stuff. That is because the error it's sending back is not a normal error at that point. You'll have to enable debugging on your posting client to see what it's sending back.
And anyway, this probably won't help you any unless you're a programmer. Try a different posting client.