Hello All JpGraph FANS!
I have a page that calls a few generated graphics directly from a include("jpgraph_tb_inte.php"); instead of a <img src='jpgraph_tb_inte.php'> since the graphic are clickable with link generated from a $graph->StrokeCSIM. Everything works fine until I get an error on a MySqli request where i get a Jpgraph generated message that says nothing to help me find my error :
Fatal error: Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() must be an instance of Exception, instance of Error given in C:\MesProjets\Profileur2\siteweb\jpgraph\src\jpgraph_errhandler.inc.php:158 Stack trace: #0 [internal function]: JpGraphException::defaultHandler(Object(Error)) #1 {main} thrown in C:\MesProjets\Profileur2\siteweb\jpgraph\src\jpgraph_errhandler.inc.php on line 158
I think that when calling directly the jpgraph_tb_inte.php with an include, some local variables are set to thrown some error in a JpGraph format or some sort. Before I throw my computer by the windows, can somebody give me a solution on what do to and how to shut down this "defaultHandler" or errors!
Claude :-)