Help - Search - Members - Calendar
Full Version: Problem - Go Daddy?
Movable Type Community Forum > Using Movable Type > TrackBacks and Pings
Milohoss
My box is supposedly Linux - it's go daddy which I know is notoriously sucky. But dig this. I get 404 errors when I send a normal ping to the blog from elsewhere. I read on this board that hacking in td_id would help... but -->

If I hack the: ?td_id= thing in, then I get the following activity log error:

Ping 'http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi?tb_id=5' failed: Need a TrackBack ID (tb_id).

Likewise, this is no good:
http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi/5

But this,
http://www.sustainabilitydictionary.com/cg...-tb.cgi?td_id=5


Gives a peculiar XML error:

CODE

This XML file does not appear to have any style information associated with it. The document tree is shown below.


<response>
<error>1</error>
<message>Trackback pings must use HTTP POST</message>
</response>


Clues?
lisa
QUOTE (Milohoss @ Dec 8 2005, 12:20 AM)
My box is supposedly Linux - it's go daddy which I know is notoriously sucky. But dig this.  I get 404 errors when I send a normal ping to the blog from elsewhere.  I read on this board that hacking in td_id would help... but  -->

If I hack the: ?td_id= thing in, then I get the following activity log error:

Ping 'http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi?tb_id=5' failed: Need a TrackBack ID (tb_id).

Likewise, this is no good:
http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi/5

But this,
http://www.sustainabilitydictionary.com/cg...-tb.cgi?td_id=5


Gives a peculiar XML error:

CODE

      This XML file does not appear to have any style information associated with it. The document tree is shown below.
   

<response>
<error>1</error>
<message>Trackback pings must use HTTP POST</message>
</response>


Clues?
*

Did you rename your trackback script and possibly not update mt-config.cgi? It looks like mt-tb.cgi isn't on your server.
Milohoss
QUOTE (lisa @ Dec 8 2005, 04:44 PM)
Did you rename your trackback script and possibly not update mt-config.cgi? It looks like mt-tb.cgi isn't on your server.
*



Nah... it's here: http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi

Didn't change anything... yet
lisa
QUOTE (Milohoss @ Dec 12 2005, 06:12 PM)
QUOTE (lisa @ Dec 8 2005, 04:44 PM)
Did you rename your trackback script and possibly not update mt-config.cgi? It looks like mt-tb.cgi isn't on your server.
*



Nah... it's here: http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi

Didn't change anything... yet
*


Weird. I got a 404 when I tried to ping you.

Is it possible that you're on a Windows box? (The answer is no - you're definitely on Linux because I peeked at you mt-check.cgi.) It still might be a similar problem though.
404 on Trackbacks
Milohoss
Right - it's linux. When I follow these instructions (link here) then I no longer get a 404 error, but I do get the weird XML error quoted above... it's maddening.
lisa
QUOTE (Milohoss @ Dec 13 2005, 03:05 PM)
Right - it's linux.    When I follow these instructions (link here) then I no longer get a 404 error, but I do get the weird XML error quoted above... it's maddening.
*


Could I have you do an experiment? Could you edit lib/MT/App/Trackback.pm (make a backup first) and change line 152 from:
$app->translate("Need a TrackBack ID (tb_id)."))

to:
$app->translate("Need a TrackBack ID ($tb_id, $pass)."))

And see what your error says when you ping
http://www.sustainabilitydictionary.com/cg...-tb.cgi?tb_id=5
Milohoss
hmmm ok... did it. Seems to do nothing:

I did a post on another blog referring to both:

http://www.sustainabilitydictionary.com/cg...b.cgi?tb_id=214
http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi/214

The error log says:

CODE
Less than 1 minute ago  69.228.234.26  Ping 'http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi/214' failed: HTTP error: 404 Not Found
Less than 1 minute ago  69.228.234.26  Ping 'http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi?tb_id=214' failed: Need a TrackBack ID (, ).
lisa
QUOTE (Milohoss @ Dec 14 2005, 03:47 AM)
hmmm ok... did it.  Seems to do nothing:

I did a post on another blog referring to both:

http://www.sustainabilitydictionary.com/cg...b.cgi?tb_id=214
http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi/214

The error log says:

CODE
Less than 1 minute ago  69.228.234.26  Ping 'http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi/214' failed: HTTP error: 404 Not Found
Less than 1 minute ago  69.228.234.26  Ping 'http://www.sustainabilitydictionary.com/cgi/mt/mt-tb.cgi?tb_id=214' failed: Need a TrackBack ID (, ).

*

Well, it's right. It's definitely not seeing your tb_id even though it's right there. Hopefully someone else who has spent more time in the code will read this thread and help us. mellow.gif
Milohoss
bummeriffic... thanks so much for looking at it!

Yeah, hope there's a way... trackbacks are a key part of this projcet. Ah well... i'll keep tinkering.
h_lina_k
Here is how i solved it. In lib/App/Trackback.pm there is a function called _get_params. It is set up to not search the query string for the params so I changed it from this:

sub _get_params {
my $app = shift;
my($tb_id, $pass);
if ($tb_id = $app->param('tb_id')) {
$pass = $app->param('pass');
} else {
if (my $pi = $app->path_info) {
$pi =~ s!^/!!;
$pi =~ s!^\D*!!;
($tb_id, $pass) = split /\//, $pi;
}
}
($tb_id, $pass);
}


to this:


sub _get_params {
my $app = shift;
my($tb_id, $pass);
if ($tb_id = $app->param('tb_id')) {
$pass = $app->param('pass');
} else {
if ($tb_id = $app->query->param('tb_id')) {
$pass = $app->query->param('pass');
} else {
if (my $pi = $app->path_info) {
$pi =~ s!^/!!;
$pi =~ s!^\D*!!;
($tb_id, $pass) = split /\//, $pi;
}
}
}
($tb_id, $pass);
}


Seems to have worked fine. I don't know if you actually need the code

if ($tb_id = $app->param('tb_id')) {
$pass = $app->param('pass');
}

but I left it in anyway just in case.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.