Title: Debugging XML RPC posting from google docs
Last modified: August 19, 2016

---

# Debugging XML RPC posting from google docs

 *  [philliplord](https://wordpress.org/support/users/philliplord/)
 * (@philliplord)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/debugging-xml-rpc-posting-from-google-docs/)
 * I’m having problems with XMLRPC posting from google docs. Although I have this
   working perfectly well in many cases, there are some docs which just fail. From
   the google side, it all looks fine. From the wordpress end, nothing. No posts
   appear, not even mangled ones.
 * I’ve been struggling with trying to debug this, and been floored at the first
   hurdle. I’ve tried adding define( ‘WP_DEBUG’, true ); to wp-config.php. I’ve 
   also tried setting $xmlrpc_logging = 1 in xmlrpc.php. But, for the life of me,
   I can’t find where this logging information goes. This is making me feel very
   stupid and minimising the chance of me debugging anything. Interestingly, xmlrpc_logging
   results in errors from google end, so something is clearly happening.
 * Just to give my background, I am a reasonable hacker, but I have very little 
   PhP or WordPress specific experience. I’m capable of debugging things, but I 
   would very much appreciate a few pointers in on the general process. As I say,
   this is making me feel daft at the moment.
 * Setup:
 * WordPress 3 (a couple of different versions, tried it in several places).
    Ubuntu
   10.10 Google docs, erm, doesn’t have a version number.
 * Thanks in advance.
 * Phil

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

 *  [Joseph Scott](https://wordpress.org/support/users/josephscott/)
 * (@josephscott)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/debugging-xml-rpc-posting-from-google-docs/#post-1772703)
 * Any rhyme or reason to the docs that fail? Odd that some would work while others
   disappear.
 * On the XML-RPC logging, the logIO function uses that:
    `$fp = fopen("../xmlrpc.
   log","a+");`
 * It might be generating errors if it can’t open the file for writing.
 *  Thread Starter [philliplord](https://wordpress.org/support/users/philliplord/)
 * (@philliplord)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/debugging-xml-rpc-posting-from-google-docs/#post-1772710)
 * We can’t work out any particular logic to documents that fail, except, of course,
   they are “real” documents rather than test ones and so much more complex. I tried
   a reasonable amount of blackbox testing to see whether I could figure it out.
   It’s just not enough; sadly, I can’t get anything out of google docs, so I need
   to debug the wordpress side.
 * With “../xmlrpc.log” where is this being interpreted relative to? It occurred
   to me last night that this might be a permissions problem — initially I was expected
   the logs to go to apache. But this doesn’t seem to be the case.
 * Incidentally, I did try this on a wordpress.com blog. Also fails, but this time
   with a strange an incomprehensible error code from google.
 * Thanks for your help so far!
 * Phil
 *  [Joseph Scott](https://wordpress.org/support/users/josephscott/)
 * (@josephscott)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/debugging-xml-rpc-posting-from-google-docs/#post-1772746)
 * Odd. Any chance the size of the document is making a difference? Have you checked
   your web server and PHP error logs while publishing from Google Docs to see if
   anything helpful is logged?
 * The xmlrpc.log happens in xmlrpc.php, so it would be one directory up from there.
 * Can you post the error message you got when trying to post to a WordPress.com
   blog?

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

The topic ‘Debugging XML RPC posting from google docs’ is closed to new replies.

## Tags

 * [debugging](https://wordpress.org/support/topic-tag/debugging/)
 * [Google Docs](https://wordpress.org/support/topic-tag/google-docs/)
 * [xmlrpc](https://wordpress.org/support/topic-tag/xmlrpc/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Joseph Scott](https://wordpress.org/support/users/josephscott/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/debugging-xml-rpc-posting-from-google-docs/#post-1772746)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
