Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 01:58 pm EDT

Geeklog Forums

Trackback Comments


Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
I've just started using trackback comments for the few posts that I think warrant it.

Half the time I usually get this response back from geeklog

Error when sending trackback comment:
Response not understood.


I assumed either the url I used wasn't right (usually the url to the post) or something else happened.

A google blog gave me this same error so I assumed it didn't work but the next day I noticed I was receiving traffic from this blog and I checked it out and saw the trackback link.

Is there any way to get more information and the response to a trackback comment to see what is going on here?

Thanks
One of the Geeklog Core Developers.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: Laugh

Error when sending trackback comment:
Response not understood.


The receiving site is supposed to respond with a specific piece of XML. Geeklog will then parse that XML and try to figure out if the Trackback was sent successfully or not.

If you get "Response not understood", then whatever the other site sent back either wasn't XML at all or it did at least not contain an <error> tag.

So Geeklog doesn't know what to make of the response. It is therefore possible that the other site received the Trackback just fine (as seems to have happened in your case). Geeklog just couldn't tell what happened from the response.

If you want to debug things, find this piece of code in system/lib-trackback.php:
Text Formatted Code
    fclose($sock);

    // firing up the XML parser for this would be overkill ...
    $r1 = strpos ($res, '<error>');

and add a
Text Formatted Code
COM_errorLog($res);
after the fclose($sock);

The next time you get a "response not understood", check your error.log and see what the other site really sent back.

A proper response in case of a successfull Trackback would look like this:
Text Formatted Code
<?xml version="1.0" encoding="utf-8"?>
<response>
<error>0</error>
</response>

bye, Dirk
 Quote

Status: offline

Laugh

Site Admin
Admin
Registered: 09/27/05
Posts: 1468
Location:Canada
Thanks Dirk,

I will do that.

Tom
One of the Geeklog Core Developers.
 Quote

Status: offline

Verais

Forum User
Newbie
Registered: 06/02/08
Posts: 3
Tom, canit be due to the codding issues y ou brpwser send?
 Quote

All times are EDT. The time is now 01:58 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content