Title: Causes Error in class-wp-xmlrpc-server.php
Last modified: September 2, 2016

---

# Causes Error in class-wp-xmlrpc-server.php

 *  [iDude](https://wordpress.org/support/users/idude/)
 * (@idude)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/causes-error-in-class-wp-xmlrpc-serverphp/)
 * This Theme will cause an Error strpos(): Empty delimiter in class-wp-xmlrpc-server.
   php because of empty guid fields being inserted into the posts database table
   for attachments. These records are created when you upload a new logo or page
   header graphic (perhaps other images which are uploaded through the Pagelines
   Theme interface).
 * The End Result is that MS Live Writer and other authoring software, mysteriously
   stops working and because the XML output becomes mangled due to an error being
   thrown.
 * This is the code it breaks because it writes an empty guid field.
 * `
    $attachments = $wpdb->get_results( "SELECT ID, guid FROM {$wpdb->posts} WHERE
   post_parent = '0' AND post_type = 'attachment'" ); if ( is_array( $attachments)){
   foreach ( $attachments as $file ) { if ( strpos( $post_content, $file->guid )!
   == false ) $wpdb->update($wpdb->posts, array('post_parent' => $post_ID), array('
   ID' => $file->ID) ); } } }
 * Personally, I’m rather stunned that a theme could render such a functionality
   useless. To the point that even removing the theme itself does not correct the
   issue.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Danny](https://wordpress.org/support/users/dannykilla/)
 * (@dannykilla)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/causes-error-in-class-wp-xmlrpc-serverphp/#post-7744975)
 * I use PageLines Framework and MS Live Writer and I have no problem using the 
   two together. I’m using the latest version of both WordPress and PageLines and
   I receive no such error.
 * Have you tried doing the infamous disable all active plugins and trying again?
 *  [Simon Prosser](https://wordpress.org/support/users/pross/)
 * (@pross)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/causes-error-in-class-wp-xmlrpc-serverphp/#post-7744982)
 * We looked at MS Writer several times last year when people reported header already
   sent and it turned out to be a plugin inserting the headers and the case was 
   closed.
 * Only this morning was I forwarded an email about this guid error, and posted 
   a fix to git within the hour.
 * The .org version will be updated with the same fix.
 * Anyway thank you for taking time to email us with the problem.
 *  Thread Starter [iDude](https://wordpress.org/support/users/idude/)
 * (@idude)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/causes-error-in-class-wp-xmlrpc-serverphp/#post-7744983)
 * I had disabled all the plug-in’s first before finally digging down into the source
   code and the posts database table. These were images I had uploaded via the theme
   interface, and were inserted as attachment type in the posts table. The guid 
   fields were empty on all three images. This was using the latest copy of Pagelines
   downloaded from here not even a week ago and the lastest WordPress.
 *  [Simon Prosser](https://wordpress.org/support/users/pross/)
 * (@pross)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/causes-error-in-class-wp-xmlrpc-serverphp/#post-7744984)
 * Yes and a fix has been submitted.
 * Again:
    Thank you for taking time to email us with the problem.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Causes Error in class-wp-xmlrpc-server.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/pagelines/1.4.6/screenshot.png)
 * PageLines
 * [Support Threads](https://wordpress.org/support/theme/pagelines/)
 * [Active Topics](https://wordpress.org/support/theme/pagelines/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/pagelines/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/pagelines/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Simon Prosser](https://wordpress.org/support/users/pross/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/causes-error-in-class-wp-xmlrpc-serverphp/#post-7744984)