Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python wordpress xmlrpc -32700 error with wordpress4.8

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?

like image 213
peter lee Avatar asked Sep 18 '25 22:09

peter lee


1 Answers

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.

like image 113
Bikram Pahi Avatar answered Sep 20 '25 12:09

Bikram Pahi