[pLog-svn] class/action/addtrackbackaction.class.php

Jon Daley plogworld at jon.limedaley.com
Mon Apr 30 21:19:31 EDT 2007


 	Hrm.  That works fine.   And when I view trackback.php in my 
browser, it works fine as well.  And if I go back to the same other blog 
and post, it also works fine.  Erasing the cache and trying again also 
works.  I don't know what could have caused it.
 	The failed trackbacks POSTed 170 bytes of data, but the 
successful trackbacks POSTed only 83 bytes of data.  This is from a 1.1.6 
blog, with the same post.  The content of the post might have changed 
slightly, but not significantly.

On Tue, 1 May 2007, Oscar Renalias wrote:

> I can't reproduce this behaviour in my local instance but to make
> sure that the problem is in the logging code, can you give the code
> below a try?
>
> <?php
>     if (!defined( "PLOG_CLASS_PATH" )) {
>         define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
>     }
>
>     include_once( PLOG_CLASS_PATH."class/bootstrap.php" );
>     lt_include( PLOG_CLASS_PATH."class/logger/
> loggermanager.class.php" );
>
> 	$log =& LoggerManager::getLogger( "trackback" );
> 	$log->debug( "this is a test" );
>
> 	print("Done.");
> ?>
>
> As you can see it's doing something very simple :-), but I want to
> know if it also crashes your PHP. If it does, we'll have to start
> debugging the logging code...
>
> On 30 Apr 2007, at 21:20, Jon Daley wrote:
>
>>  	Sorry, I must have said it wrong.  Yes, php is crashing because
>> the logging is set to null, so trackbacks aren't received unless
>> logging
>> is turned on.
>>
>> On Mon, 30 Apr 2007, Oscar Renalias wrote:
>>
>>> I find it hard to belive that what you describe is actually a
>>> problem. The logic for adding trackbacks does not depend on whether
>>> we're logging or not... Maybe PHP is crashing if the logger is set to
>>> 'null' and that's why no trackback is added?
>>>
>>> On 30 Apr 2007, at 19:58, Jon Daley wrote:
>>>
>>>> Line 48 has a $logger->debug() call.  I think if the trackback
>>>> logger is
>>>> set to null in the logging.properties.php, trackbacks aren't
>>>> accepted at
>>>> all.  Once I turned on logging for trackbacks, the trackback was
>>>> successfully received.
>>>>
>>>> I am not sure what the right way to fix this is.  It is nice to be
>>>> able to
>>>> simply change "null" to "file" to turn on logging.
>>>>
>>>> --
>>>> Jon Daley
>>>> http://jon.limedaley.com/
>>>>
>>>> It's a recession when your neighbor loses his job;
>>>> it's a depression when you lose yours.
>>>> -- Harry S Truman
>>>> _______________________________________________
>>>> pLog-svn mailing list
>>>> pLog-svn at devel.lifetype.net
>>>> http://limedaley.com/mailman/listinfo/plog-svn
>>>>
>>>
>>> _______________________________________________
>>> pLog-svn mailing list
>>> pLog-svn at devel.lifetype.net
>>> http://limedaley.com/mailman/listinfo/plog-svn
>>>
>>
>> --
>> Jon Daley
>> http://jon.limedaley.com/
>>
>> Everyone talks about apathy, but no one does anything about it.
>> _______________________________________________
>> pLog-svn mailing list
>> pLog-svn at devel.lifetype.net
>> http://limedaley.com/mailman/listinfo/plog-svn
>>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
>

-- 
Jon Daley
http://jon.limedaley.com/

A foolish consistency is the hobgoblin of little minds.
-- Ralph Waldo Emerson


More information about the pLog-svn mailing list