I just built a wordpress site and used the latest version (4.8.3).
I want to use python-wordpress-xmlrpc
module. It used to works before, but now when I use QuickStart guide to connect to my wordpress, it shows an erorr.
I googled it for two day, but didn't get any answers. I found an issue on module creator's github: https://github.com/maxcutler/python-wordpress-xmlrpc/issues/110
Looks like some people have the same error.
This is my code:
host = 'http://sample.com'
wp = Client(host+'/xmlrpc.php', 'root', 'password')
print(wp)
r = wp.call(GetPosts())
#Error:
MEssage xmlrpc.client.Fault: <Fault -32700: 'parse error. not well formed'>
I think maybe it's because wordpress 4.8 uses php7 that I get errors. How can I fix this problem?
It looks like PHP XML extension is not installed on the server.
Ubuntu:
sudo apt-get install php-xml
sudo service apache2 restart
This resolved the issue in my case.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With