Code: Select all
[Sun Apr 20 11:42:39 2008] [error] [client 10.10.10.10] PHP Fatal error: Call to undefined method DisplayValue::ApplyFont() in /home/.sites/28/site1/web/divelog2.1/includes/jpgraph2/src/jpgraph_pie.php on line 717, referer: http://www.timelordz.com/divelog2.1/divestats.php/list
The weird thing is that jpgraph itself appears to work fine:
http://www.timelordz.com/divelog2.1/inc ... stsuit.php
(I just copied over the Examples directory from a parallel install of jpgrap2.3 into the jpgraph2/src directory included in the phpdivinglog 2.1 install to verify the environment was working and have these to test with.)
So I am a bit confused on where the undefined method DisplayValue::ApplyFont() is breaking down. The error says line 717 in jpgraph_pie.php which is:
Code: Select all
//-----------------------------------------------------------------------
// Step 2 of the algorithm is use the clusters and draw the labels
// and guidelines
//-----------------------------------------------------------------------
// We use the font height as the base factor for how far we need to
// spread the labels in the Y-direction.
$this->value->ApplyFont($img); ### This is line 717
$fh = $img->GetFontHeight();
$origvstep=$fh*$this->iGuideVFactor;
$this->value->SetMargin(0);
I though it might be due to wrong paths in jpg-config.inc.php or permissions issue, but clearly this seems to be a failed call, I am just having trouble tracking down why.
Although I don't think this is relevant, the paths I have set in jpg-config.inc.php are:
Code: Select all
DEFINE("CACHE_DIR","/tmp/jpgraph_cache/");
DEFINE("TTF_DIR","includes/jpgraph/fonts/");
DEFINE("MBTTF_DIR","includes/jpgraph/fonts/");
I would like to get the pie graph working and if someone could point me in the right direction I would appreciate it.
Thank you,
ScubaPete