[wp-trac] [WordPress Trac] #18310: xml-rpc posting returns Empty delimiter error
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 1 13:30:01 UTC 2011
#18310: xml-rpc posting returns Empty delimiter error
--------------------------+-----------------------------
Reporter: docfish | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: 3.2.1
Severity: major | Keywords:
--------------------------+-----------------------------
This is the error I get when trying to post via xml-rpc interface:
Empty delimiter in .../wp-includes/class-wp-xmlrpc-server.php on line 2469
Warning: Cannot modify header information - headers already sent by
(output started at .../wp-includes/class-wp-xmlrpc-server.php:2469) in
.../webraces/wp-includes/class-IXR.php on line 471
The line 2469 of class-wp-xmlrpc-server.php looks like:
if ( strpos( $post_content, $file->guid ) !== false )
Apparently $file->guid has invalid value as this is fixed by inserting
if($file->guid && !($file->guid == NULL))
right above the line in question. See also
http://wordpress.org/support/topic/windows-live-writer-no-go-with-wp-312
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18310>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list