Recent Topics

1 Jun 28, 2011 03:37    

My b2evolution Version: 4.0.5

Hi, several weeks back I mannaged to fairly painlessly upgrade from 2. something to 4.0.5 For several new posts there were no problems, then all of a sudden the latest post results in this error message:

Invalid Server Response
The response to the
metaWeblog.newMediaObject method
received from the blog server was invalid:

Invalid response document returned from
XmIRpc server

Any thoughts on a cause and a fix?

2 Jun 28, 2011 23:29

What do you have in the latest post that is not found in previous e.g. attachments, special markup or styles?

3 Jul 15, 2011 22:37

Sorry about the delay in replying (A bunch of things coming up all over).

Anyways, after varying a bunch of posting attempts, the following pattern came to light. When the post had no images, it posted just fine. When it had an image inserted as a link, it posted fine. It was only for posts trying to upload image files from a local machine that brought up the

metaWeblog.newMediaObject method
received from the blog server was invalid:

response.
So, any thoughts on possible causes and solutions?

4 Jul 16, 2011 00:15

I guess this method is not implemented in b2evo yet.

5 Jan 28, 2012 13:33

I solved it this way (in version 4.1.2):
Goto /blogs/inc/xmlrpc/model
Edit the file _xmlrpcs.funcs.php
In function function _wp_mw_newmediaobject
you will find a comment saying: // Avoid problems
and the second line after this comment is:
$rf_filepath = preg_replace( '€[^a-z0-9\-_./]+€i', '-', $rf_filepath );
Comment out this line.
I am not sure what preg_replace is intented to do, but what it does is blanking out the filename.


Form is loading...