Community & Support

Drupal Trackback Module doesn't send Trackbacks to Wordpress blogs

Hi,

I'm using the trackback module and I'm trying to send trackbacks to wordpress blogs, which is somehow not possible.
To other blog systems like serendipity it's just working as expected.

What can trigger this, or is it just a broken wordpress installation?

Help would be nice,

Thx,
\sh

Comments

...me too

Hello

I'm running into this same problem (i think). I'm trying to send a trackback to a wordpress blog (ie: http://www.target-domain.com/xmlrpc.php?rsd), and it constantly comes up as failed. I see that they they are offering trackbacks and seeing multiple 'pingback' entries in their comments.

Any ideas? Not sure if this a module issue or if I'm just doing the trackback incorrectly.

I'm using the following:
trackback-5.x-1.2.tar on drupal-5.2

Thanks!
hanji

I did a lot of investigation into this, and a lot of logging to find it. But I hope it will help others.

Trackbacks are nothing but HTTP requests with certain things in them. The standard simply states that if the HTTP request is sent that includes various items like title, excerpt... see http://www.sixapart.com/pronet/docs/trackback_spec.

Well Wordpress doesn't detect this, not sure why. Insteaad what they do is check if the trackback data contains "tb=1" and if so they then process like a trackback. If not they process like a page request and send you the whole page instead of the trackback response.

So what can you do, well I did a dirty patch to the code. I insert the tb=1 in every request, other trackback blog softwares seem to ignore it, and Wordpress uses it to return a trackback (WARNING: I've only tested with wordpress and drupal).

See below if you want to [dirty] modify the trackback.ping.inc yourself (it's around line 220) or pass it onto the developer, not sure how since I'm new to this site and drupal and wicked overloaded these days. But I know, I'm bad.

trackback-6.x-1.x-dev on drupal 6.2

in file: trackback.ping.inc...
in function _trackback_ping($node, $urls, $force = array()) {

.
.
.
// AKL: tb=1 is a fix for wordpress,   
    $params = array(
      'title' => urlencode($node->title),
      'excerpt' => urlencode(truncate_utf8(trim(strip_tags($excerpt)), 255)),
      'blog_name' => urlencode(variable_get('site_name', '')),
      'url' => url('node/'. $node->nid, array('absolute' => TRUE)),
      'tb' => 1
    );
.
.
.

Still ok ?

Still ok ?

Hi, can you tell me if this patch is still the only solution ?

The only line to add in the module is 'tb' => 1 ?

I'm using a Drigg module website (digg-like), any idea if it could help to send a trackback ?

Thanks a lot.