I am having some issues with trackbacks between sites on the same server. Is there anything in the code that prevents the site from doing what could look like a self-ping?

In other words, I have two different Drupal-based sites hosted on the same server/host. When I try to trackback one to the other (and vice versa) the trackback fails. It never shows up in the moderation queue and there is no info in the logs to indicate what is happening.

If I go to the "edit" tab of the node, it just indicates that it was an unsuccessful trackback, and lets me try to send it again, at which point it fails again. One installation is running Drupal 4.7 and the other is running the latest and greatest. I downloaded and installed the latest modules for each site today. Both sites can send/receive trackbacks to non-Drupal sites on other servers, just not to each other or themselves.

Any ideas?
Thanks!

Comments

zorac’s picture

Is there anything in the code that prevents the site from doing what could look like a self-ping?
No. I can send ping from "Edit" tab of a node to same node via trackback URL.
If you enabled the spam module, is there any information in the spam logs?

eurekaloop’s picture

Hi, zorac.

Thanks for the reply.

No, there is nothing in the spam module log for the failed trackbacks. However, this problem was occurring before I installed the spam module, too. I've been working with my server admins to see if they have any ideas from a hosting perspective. They have tried doing a self-ping on the server and it worked okay. I know that the send and receive is working because I used a trackback test and both tests were successful and I now have a trackback showing on the site. I just can't get it to trackback to any other domain on the same server, or to itself. I know that self-pinging isn't exactly something that I'm going to use very often (except for testing), but seeing as many of my clients reside in a certain geographical area, there's a good chance that one may want to trackback one of the other sites on my server at some point in the future.

Do you know if there is a way that I could have the script screen-write some of the steps involved in processing the trackbacks so that I could see where it might be failing?

Thanks in advance for any other ideas you might have...

zorac’s picture

Hi, eurekaloop

At line 637 in trackback.module, drupal_http_request function send the ping.
To insert the following code into the next line:

if ($reply->error) {
  print_r($reply);
  exit;
}

When the ping error occurs, $reply is dumped on the white page. Maybe, $reply will include some information of error.

Regards,

eurekaloop’s picture

Status: Active » Closed (won't fix)

Thanks zorac!
I'll try that out to see if I can get some sort of indication as to where its getting stopped.
However, I went ahead and uploaded a test wordpress blog on the same domain, and it is having the same problem, so this may be a server problem after all. None-the-less, I'm hoping that printing out the error may help us to fix it.

I appreciate your help!