jusung Kye

Publish a post using XMLRPC.

Vote 0 Votes

Hi guys.
I'm trying to develop publishing post function using XMLRPC for my app.

I use "metaWeblog.newpost" method for post function.
The problem is this post function works well except server response.

I mean If the publishing was successfully finished then I'm supposed to be get post_id from server. But I got some faultString like following.
"Can't call method \"label\" on an undefined value at lib/MT/Entry.pm line 968.\n"

So I had searched with this strings to figure out what is wrong.
And I found one solution for this problem.

The guy who said figured out same issue shared this information.

have to edit /lib/MT/Entry.pm
Below codes
my @ cats = sort {$ a -> label cmp $ b -> label} @ $ cats

to

my @ cats;
eval ( 'my @ cats = sort {$ a -> labelstrong> C MP $ b -> label} @ $ cats ');

But It couldn't resolve my problem.

Anyone knows what is wrong?

Reported on Movable Type 5

3 Replies

| Add a Reply

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

code.sixapart.com

137 479

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

238 797

Last Topic: Manifest Schema Compatibility Issue When Restoring Blog by Matt on Oct 17, 2012

1858 6594

Last Topic: Categories and Basename Publishing Issues by e21media on Oct 25, 2012

88 307

Last Topic: absolute publish date in Manage Entries screen by .mau. on Apr 18, 2012

1488 5347

Last Topic: Anti-cloning by .mau. on Oct 29, 2012

732 3093

Last Topic: Blog moved server - now users cannot access blog? by mowgs on Oct 30, 2012

89 317

Last Topic: How to "pretify" a url in htaccess with a few wildcards by Caio on May 30, 2012

183 771

Last Topic: Commenting with TypePad by Rob Ferrara on Oct 17, 2012

212 680

Last Topic: Does MT-Approval work in MT5? by DLpres on Sep 25, 2012

27 100

Last Topic: Upgrading MT by Caio on Oct 15, 2012

49 224

Last Topic: Movable Type 6 Ideas by Caio on May 28, 2012

65 248

Last Topic: Expanding new rich text editor and implementing table function by Takeshi Nick Osanai on Jul 30, 2012