[pLog-svn] FYI: plog seg fault

Jon Daley plogworld at daley.snurgle.org
Thu Mar 24 15:28:13 GMT 2005


 	I don't know if anyone cares, but here is a message from a guy who 
made a page external to plog contain info from plog.

http://venable.homelinux.org/


---------- Forwarded message ----------
Date: Thu, 24 Mar 2005 10:22:51 -0500
From: Peter Venable
To: 'Jon Daley'
Subject: RE: plog seg fault

The solution was to chdir into the plog directory.  It assumes the current
dir, so setting PLOG_CLASS_PATH is not good enough.  Anyway, it works now.


-----Original Message-----
From: Jon Daley
Sent: Wednesday, March 23, 2005 9:05 AM
To: peter at venable
Subject: Re: plog seg fault

  	You are trying to link stuff from outside of plog, is that the goal?

  	Maybe you need to include more files.  I would start with index.php
or something, and take out stuff you don't need.

  	Also, there are debugging flags that you can turn on.  The logger
was recently turned off by default, but you can enable it, you need to do it
in a couple of places.

logging.properties.php to start.
and then I think object.class.php has a commented out line.

Although, if you a tmp/plog.log is being created, your logging is turned on,
and you can use $this->log->debug("blahblah %s", string) just about
everywhere to show stuff.




On Wed, 23 Mar 2005 peter at venable wrote:
> Jon,
> When I include the following lines in a php file (and load the page) a 
> seg fault occurs (I assume somewhere in plog) and no page is returned.
>
> define( "PLOG_CLASS_PATH", "/var/www/plog/" );
> include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
> //...
>  $articles = new Articles();
>  //$newestArticles = $articles->getBlogArticles( $blogId, -1, 1 );
>  //if ($newestArticles) {
>  //  $newestArticle = $newestArticles[0];
>  //  return $newestArticle->getTopic();
>  //}
>
> If I comment out the "$articles = new Articles();" there's no seg fault.
> Any idea what's going on?
> --Peter




More information about the pLog-svn mailing list