Problems with adding new category
Hananja opened this issue · 0 comments
Hananja commented
Hi,
I tried to add a new post category to my Wordpress 4.8.1 with your command line application but got an exception. Could you please help me with that?
Command line options: --user user --pass 12345 --url http://localhost:8080/wordpress/xmlrpc.php --newcategory xxx --slug xxx --parentid 0
Exception:
Exception in thread "main" net.bican.wordpress.exceptions.InvalidArgumentsException: redstone.xmlrpc.XmlRpcFault: Invalid taxonomy.
at net.bican.wordpress.Wordpress.newTerm(Wordpress.java:1191)
at net.bican.wordpress.Main.main(Main.java:176)
Caused by: redstone.xmlrpc.XmlRpcFault: Invalid taxonomy.
at redstone.xmlrpc.XmlRpcClient.handleResponse(Unknown Source)
at redstone.xmlrpc.XmlRpcClient.endCall(Unknown Source)
at redstone.xmlrpc.XmlRpcClient.invoke(Unknown Source)
at redstone.xmlrpc.XmlRpcProxy.invoke(Unknown Source)
at net.bican.wordpress.$Proxy0.newTerm(Unknown Source)
at net.bican.wordpress.Wordpress.newTerm(Wordpress.java:1183)
... 1 more
Communication:
POST /wordpress/xmlrpc.php HTTP/1.1
Content-Type: text/xml; charset=UTF-8
User-Agent: Java/1.8.0_65
Host: localhost:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-Length: 504
<?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>wp.newTerm</methodName><params><param><value><i4>0</i4></value></param><param><value><string>user</string></value></param><param><value><string>12345</string></value></param><param><value><struct><member><name>parent</name><value><i4>0</i4></value></member><member><name>name</name><value><string>xxx</string></value></member><member><name>slug</name><value><string>xxx</string></value></member></struct></value></param></params></methodCall>
HTTP/1.1 200 OK
Date: Tue, 05 Sep 2017 08:33:25 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Vary: Cookie,Accept-Encoding
X-Powered-By: PHP/7.0.21
Connection: close
Content-Length: 389
Content-Type: text/xml; charset=UTF-8
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value><int>403</int></value>
</member>
<member>
<name>faultString</name>
<value><string>Invalid taxonomy.</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
Dependency:
<dependency>
<groupId>net.bican</groupId>
<artifactId>jwordpress</artifactId>
<version>0.7.0</version>
</dependency>
Thanks for any help on that issue.