[wp-trac] [WordPress Trac] #7794: Got and fixed an error 'faultCode
-32700 faultString parse error. not well formed' on XMLRPC request.
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 26 18:11:29 GMT 2008
#7794: Got and fixed an error 'faultCode -32700 faultString parse error. not well
formed' on XMLRPC request.
---------------------+------------------------------------------------------
Reporter: Minor | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.8
Component: XML-RPC | Version: 2.6
Severity: major | Keywords:
---------------------+------------------------------------------------------
I've worked with XML-RPC requests and founded that some of my requests got
this error. As I'm a developer - it's my work to repair the bugs.
I've founded the bug in the 'wp-includes/class-IXR.php' file. There is a
problem in the 157 string (Class IXR_Message, function parse, string 2).
Here it is.
'$this->message = preg_replace('/<\?xml(.*)?\?'.'>/', '',
$this->message);'
$this->message value before this string was correct but after preg_replace
it's value sometimes became NULL.
There is a topics where this problem is discussed.
http://bugs.php.net/bug.php?id=40961&thanks=6
http://bugs.php.net/bug.php?id=41580
I've founded a solution to fix that. Change that string to
'$this->message = preg_replace('/<\?xml.*?\?'.'>/', '', $this->message);'
( only round brackets were deleted).
I've founded and fixed this bug on the WP 2.6 - 2.6.2 on PHP 5.2.6
(Linuks) and 5.2.4 (Windows).
--
Ticket URL: <http://trac.wordpress.org/ticket/7794>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list