[phpOpenTracker-User] all_paths API error:

Jean-Christian Imbeault <[email protected]>
Newsgroups gmane.comp.web.phpopentracker.general
Message-ID <[email protected]>
Using the all_paths APU I get an "Incomplete Class" error.

<?php
require 'phpOpenTracker.php';

$graph = phpOpenTracker::get(
   array(
     'api_call'      => 'all_paths',
     'result_format' => 'graphviz_object',
     'range'         => 'yesterday'
   )
);

//print_r($graph);
$graph->image('png');
?>

Printing the graph gives:

Fatal error: Unknown(): The script tried to execute a method or access a 
property of an incomplete object. Please ensure that the class 
definition <b>image_graphviz</b> of the object you are trying to operate 
on was loaded _before_ the session was started in /www/htdocs/t.php on 
line 16

Printing the array gives:


__PHP_Incomplete_Class Object
(
     [__PHP_Incomplete_Class_Name] => image_graphviz

[...]


I believe this is do to a corrupt database. I tried dumping and 
reloading my database and found that the pot_documents table contained 
two identical entries. I don't know how that happened. I delete one 
thinking that should fix things since the data_id is the PK and they 
both had the same data_id. I cannot say for a fact that that is what is 
causing the error though.

I just want to report that fact that this strange error can occur.


Jean-Christian Imbeault



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.