question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xmlrpc.client.Fault: <Fault -32700: 'parse error. not well formed'>

See original GitHub issue

The website is using WordPress 4.7.3 when executing wp = Client("http://www.mywebsite.com/xmlrpc.php","myusername", "mypassword")

I got an error:

File “C:/02-folks/python-auto-send/upload_articles.py”, line 20, in post_article wp = Client(“http://www.mywebsite.com/xmlrpc.php","myusername”, “mypassword”) File “C:\Users\Wendy Sun\AppData\Local\Programs\Python\Python35-32\lib\site-packages\wordpress_xmlrpc\base.py”, line 24, in init self.supported_methods = self.server.mt.supportedMethods() File “C:\Users\Wendy Sun\AppData\Local\Programs\Python\Python35-32\lib\xmlrpc\client.py”, line 1091, in call return self.__send(self.__name, args) File “C:\Users\Wendy Sun\AppData\Local\Programs\Python\Python35-32\lib\xmlrpc\client.py”, line 1431, in __request verbose=self.__verbose File “C:\Users\Wendy Sun\AppData\Local\Programs\Python\Python35-32\lib\xmlrpc\client.py”, line 1133, in request return self.single_request(host, handler, request_body, verbose) File “C:\Users\Wendy Sun\AppData\Local\Programs\Python\Python35-32\lib\xmlrpc\client.py”, line 1149, in single_request return self.parse_response(resp) File “C:\Users\Wendy Sun\AppData\Local\Programs\Python\Python35-32\lib\xmlrpc\client.py”, line 1321, in parse_response return u.close() File “C:\Users\Wendy Sun\AppData\Local\Programs\Python\Python35-32\lib\xmlrpc\client.py”, line 654, in close raise Fault(**self._stack[0]) xmlrpc.client.Fault: <Fault -32700: ‘parse error. not well formed’>

Process finished with exit code 1

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

26reactions
butlerwilsoncommented, Dec 5, 2017

I also met this problem. After I read the Wordpress source code, I found that the problem is cased by "PHP's XML extension is not available. Please contact your hosting provider to enable PHP's XML extension." So you just run the command: sudo apt-get install php-xml -y && sudo service apache2 restart and you will solve it.

more detail will found here: http://milier.me/solved-wordpress-parse-error-not-well-formed.html

0reactions
nijisakaicommented, May 1, 2019

I appear to be getting this problem even when I have php-xml installed.

php -m | grep -i xml, outputs:

libxml
SimpleXML
xml
xmlreader
xmlrpc
xmlwriter

try php -v then, for example, apt install php7.1-xml

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wordpress XML-RPC POST returning -32700 error with php ...
... "parse error. not well formed" error. UPDATE: I just found out the workaround for it: In file "lib/xmlrpc.inc", change encoding setting:.
Read more >
Exception: Parse error. Not well formed [#699406] | Drupal.org
Well, when you're calling xmlrpc.php directly and you still don't get any log entries that means that error logs in php.ini are not...
Read more >
Topic: XMLRPC Error :: 32700:parse error. not well formed
hi everyone,. i have been trying to post on my wordpress blog through XML-RPC method. I am using the IXR_Library located Here ::...
Read more >
XMLRPC throws "parse error. not well formed" error - Reddit
Yay!! Thankfully this helped me too. Lots of googling to try fix the problem, lots of long explanations about malformed XML on the...
Read more >
XMLRPC Sync Error "parse error. not well formed"
<name>faultCode</name> <value><int>-32700</int></value> </member> <member> <name>faultString</name> <value><string>parse error. not well ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found