Title: XMLRPC pingback.ping returning faultCode 0
Last modified: August 21, 2016

---

# XMLRPC pingback.ping returning faultCode 0

 *  [MindingData](https://wordpress.org/support/users/mindingdata/)
 * (@mindingdata)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/xmlrpc-pingbackping-returning-faultcode-0/)
 * Hi there,
 * I run a blog that often credits other blogs for content. Instead of putting the“
   credit” link in the content of the post, I created a custom field for my theme
   that I then display on the front end below my article.
 * Because the outgoing link is not in my main content of my post, WordPress does
   not pick up that there needs to be a trackback/pingback done. Working forward,
   I am going to add a hook for post published to try and access this field, but
   I already have 100’s of posts that have not sent out pingbacks. It’s not a big
   deal, but I would like to send those out.
 * So, I created a PHP script to access the WordPress DB and pull out everything
   I needed and ran it in a loop to do a massive ping-athon to all the sites that
   I haven’t pinged yet. Unfortunately I was always getting FaultCode 0 returned,
   with no message. I’m not the best at PHP, infact I don’t know it at all so instead
   I wrote a console application in C# to ping these from my desktop computer when
   I provide it a list. But same thing, I get FaultCode 0.
 * So I tried mucking up the method name. So I sent something similar to this for
   the data :
 *     ```
       <?xml version=1.0?>
       <methodCall>
          <methodName>pingback.png</methodName>
          <params>
             <param>
               <value><string>http://mysite.com</string></value>
             </param>
             <param>
               <value><string>http://destinationsite.com</string></value>
             </param>
          </params>
       </methodCall>
       ```
   
 * Notice how I mis-spelled pingback.ping as pingback.png! And I actually got a 
   different error message back about their being no such method. Great! So I am
   hitting the remote XMLRPC server, but for some reason it’s always returning 0.
 * I saw that the first thing it does when it hits the pingback.ping method, is 
   that it checks if the source URL starts with HTTP or HTTPS (I think, as I say,
   not the best at PHP). So I sent the source URL as starting with HTP instead of
   HTTP. And still I got faultCode 0 with no message, so I’m not even sure if it’s
   entering the actual pingback method.
 * The full “blank” error message I get is below :
 *     ```
       <?xml version="1.0" encoding="UTF-8"?>
       <methodResponse>
         <fault>
           <value>
             <struct>
               <member>
                 <name>faultCode</name>
                 <value><int>0</int></value>
               </member>
               <member>
                 <name>faultString</name>
                 <value><string></string></value>
               </member>
             </struct>
           </value>
         </fault>
       </methodResponse>
       ```
   
 * My next step is to write echo statements within the XMLRPC method on my local
   machine and ping it with junk and see where it’s going wrong, but any help would
   be much appreciated.

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

 *  [_hoopla](https://wordpress.org/support/users/_hoopla/)
 * (@_hoopla)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/xmlrpc-pingbackping-returning-faultcode-0/#post-4593161)
 * [@mindingdata](https://wordpress.org/support/users/mindingdata/), you get anywhere
   with your pingback script?
 *  Thread Starter [MindingData](https://wordpress.org/support/users/mindingdata/)
 * (@mindingdata)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/xmlrpc-pingbackping-returning-faultcode-0/#post-4593164)
 * [@_hoopla](https://wordpress.org/support/users/_hoopla/) I did indeed.
 * So I did ALOT of debugging on my local machine. And really, there isn’t much 
   to say, it was death by 1000 cuts really. If you get fault code 0, there is something
   wrong, but it’s pretty hard to find out WHERE it goes wrong. Infact I couldn’t
   work out why it returned 0 in some cases when the message should be far more 
   descriptive, but there you go.
 * So I wrote echo’s all the way through my own XMLRPC file, and tried to find where
   it broke. In my case, it happened because when I got the permalink for the posts,
   I tried to send the full post link with the date in it. Like mysite.com/2013/
   09/07/postname. However I was actually sending. mysite.com/2013/9/7/postname 
   which would break. But good luck for wordpress telling you that, I only noticed
   it after sitting there for hours trying to debug.

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

The topic ‘XMLRPC pingback.ping returning faultCode 0’ is closed to new replies.

## Tags

 * [pingback](https://wordpress.org/support/topic-tag/pingback/)
 * [trackback](https://wordpress.org/support/topic-tag/trackback/)
 * [xmlrpc](https://wordpress.org/support/topic-tag/xmlrpc/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [MindingData](https://wordpress.org/support/users/mindingdata/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/xmlrpc-pingbackping-returning-faultcode-0/#post-4593164)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
