Recent Topics

xmlrpc: mweditpost doesn't have $blog_ID, and other issues

Started by on Feb 06, 2007 – Contents updated: Feb 06, 2007

Feb 06, 2007 00:53    

1.

When posting EDITING (calling metaWeblog.editPost) using Movable Type API (MetaWeblog API), the following error occurs: "No categories for this blog".

I've tracked this down to the following thing: metaWeblog.editPost doesn't send blogID (as required by specs). But b2evolution uses the following code to look for categories:


	// Categories:
	$cat_IDs = _mw_get_cat_IDs($contentstruct, $blog_ID, true /* empty is ok */);

The SQL code in this function uses $blog_ID. However, since $blog_ID is not defined, it fails to find categories and dies with error "No categories for this blog".

Proposal: somehow we need to get $blog_ID from $post_ID. Is there any way to do it?

2.

mt_allow_comments and mt_allow_pings must be integer values instead of strings in XMLRPC responses, as in specs.

P.S. b2evolution Version 1.9.2.

Thank you in advance! If you need any help, feel free to contact me.

__
@Dmitry from BlogJet


Form is loading...

Secure CMS – This forum is powered by b2evolution CMS, a complete engine for your website.