Trackback not found

Found a bug? Tell us!!
Post Reply
danst0
Regular
Posts: 197
Joined: Tue Jul 13, 2004 10:50 am

Trackback not found

Post by danst0 »

Hi,

I just published an article with several links, two of which were internal.
For one internal link s9y found a trackback for the other not?
This is the article:
http://scrmblog.com/archives/238-This-W ... -2011.html

For this link it found a trackback
http://scrmblog.com/archives/235-Agile- ... ainty.html

For this it did not:
http://scrmblog.com/archives/232-Impact ... mance.html

See also on the screen shot.
Daniel
Attachments
Trackback bug
Trackback bug
Screen shot 2011-04-29 at 16.26.21.png (29.72 KiB) Viewed 2556 times
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Trackback not found

Post by garvinhicking »

Hi!

That's quite strange. In include/functions_trackbacks.inc.php the function serendipity_trackback_autodiscover() should take care of evaluating a requested response like the URL you mentioned.

The output "echo '<div>&#8226; ' . sprintf(TRACKBACK_FAILED, TRACKBACK_NOT_FOUND) . '</div>';" only can happen, when the "trackback:..." output is not found inside the requested URL. Clearly, in your URL this text *is* existing.

So I can only suppose due to some reason the HTTP request of that file failed. When you create a new article, does the same still occur?

The matching itself is performed through the same file, function serendipity_reference_autodiscover().


Maybe if you can edit line 286 from this:

Code: Select all

$trackback_result = serendipity_trackback_autodiscover($fContent, $parsed_loc, $url, $author, $title, $text, $loc);
to this:

Code: Select all

echo "The response contains " . $fContent . " bytes.<br />\n";
$trackback_result = serendipity_trackback_autodiscover($fContent, $parsed_loc, $url, $author, $title, $text, $loc);
echo nl2br(htmlspecialchars($fContent));
This will show you the URL that was fetched, and how many bytes it contained. With the given HTML, we should be able to see why the regular expression for matching "trackback:ping"... from the file could fail...

Thanks for reporting,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply