Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-04-15 23:45:37

NickCaldwell
Member
From: Brisbane, Queensland in AU
Registered: 2004-03-04
Posts: 40
Website

[resolved] 4.0.8 and XML-RPC

Think I should have put this in a more visible forum, so pasting below:

My old friend, “Can’t post for x because the server reported an error: problem_creating_article” is back, post-upgrade to 4.0.8. Arrg.

When I try to bring up a post list in MarsEdit, the error log shows that there’s no payload in the response to “metaWeblog.getRecentPosts”, just empty XML. It seems to return results for metaWeblog.getCategories though.

Update:

I can’t create and publish new articles through XML-RPC either.

Offline

#2 2009-04-17 08:27:16

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [resolved] 4.0.8 and XML-RPC

Same happens for me. I tried both MarsEdit and Ecto.

Here are the logfiles of both clients with an unsuccessful post:

Ecto:



Request with URL:
http://www.rete-mirabile.net/rpc/
and data:
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>mt.setPostCategories</methodName>
<params>
	<param>
		<value><string></string></value>
	</param>
	<param>
		<value><string>andreas</string></value>
	</param>
	<param>
		<value><string>********</string></value>
	</param>
	<param>
	<value><array><data>
	</data></array></value>
	</param>
</params>
</methodCall>

Response:
Status            : 200
X-Powered-By      : PHP/4.4.8
Keep-Alive        : timeout=15, max=100
Server            : Apache/1.3.34 (Debian) FrontPage/5.0.2.2623 PHP/4.4.8 mod_ssl/2.8.10 OpenSSL/0.9.7
Content-Type      : text/html
Date              : Wed, 15 Apr 2009 17:51:28 GMT
Connection        : Keep-Alive
Transfer-Encoding : Identity

MarsEdit



Network message sent: 2009-04-15 09:56:53 +0200
URL: http://www.rete-mirabile.net/rpc
Method name: blogger.deletePost
Network reply received: 2009-04-15 09:56:54 +0200
URL: http://www.rete-mirabile.net/rpc
Method name: blogger.deletePost
Status code: 200
Succeeded: NO
--Fault Error--
Fault code: -32602
Fault string: server error. wrong number of method parameters
Request text:
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
	<methodName>blogger.deletePost</methodName>
	<params>
		<param>
			<value><string>6A10B954F5EBCB132CE8141518DF605B9A3D1E2587</string></value>
			</param>
		</params>
	</methodCall>

Response text:
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<fault>
 <value>
   <struct>
     <member>
       <name>faultCode</name>
       <value><int>-32602</int></value>
     </member>
     <member>
       <name>faultString</name>
       <value><string>server error. wrong number of method parameters</string></value>
     </member>
   </struct>
 </value>
</fault>
</methodResponse>

Any ideas?

Last edited by andreas (2009-04-17 08:27:42)

Offline

#3 2009-04-17 13:26:30

NickCaldwell
Member
From: Brisbane, Queensland in AU
Registered: 2004-03-04
Posts: 40
Website

Re: [resolved] 4.0.8 and XML-RPC

Bafflingly, this seems to only happen on my home install on an Intel iMac. My G5 at work with the same version of Marsedit doesn’t show the same behaviour on the same blog.

Offline

#4 2009-04-18 12:59:10

NickCaldwell
Member
From: Brisbane, Queensland in AU
Registered: 2004-03-04
Posts: 40
Website

Re: [resolved] 4.0.8 and XML-RPC

OK, I figured it out.

My home machine was set to use a numeric ID for the blog section identifier, which seemed to work before. I guess my work machine was set up to use the section name as the ID, which is why it still worked. Duh.

Offline

#5 2009-04-18 13:12:58

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [resolved] 4.0.8 and XML-RPC

OK – how do you identify which ID number represents which section?

Offline

#6 2009-04-18 13:20:00

NickCaldwell
Member
From: Brisbane, Queensland in AU
Registered: 2004-03-04
Posts: 40
Website

Re: [resolved] 4.0.8 and XML-RPC

Ah, that’s my point: you don’t need to use the numeric ID to specify your section any more. Just use the normal-text name for the section, like “weblog” or “archive” and it should work.

Offline

#7 2009-04-18 13:20:51

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [resolved] 4.0.8 and XML-RPC

Right – I’m doing that but it doesn’t work for me.

Offline

#8 2009-04-18 13:27:57

NickCaldwell
Member
From: Brisbane, Queensland in AU
Registered: 2004-03-04
Posts: 40
Website

Re: [resolved] 4.0.8 and XML-RPC

Here’s a pic of the Marsedit settings that seem to work now. Did you upload the new /rpc/ directory when you updated to 4.0.8?

Offline

#9 2009-04-18 14:14:01

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [resolved] 4.0.8 and XML-RPC

Thanks – to be on the safe side I downloaded the installation package again, replaced the rpc folder. No success.

See the details here

Offline

Board footer

Powered by FluxBB