Problems while installation of jpgraph on php 5.6 wir´th error-handling

108 views
Skip to first unread message

Lars Fiffafo

unread,
Feb 14, 2023, 3:01:42 AM2/14/23
to JpGraph

i try to add the libary jpggraph to my Debian Linux System with PHP 5.6.40 installed. I followed the installation manual from jpgrpah.net but get still the following error-message in the browser when starting a test program:

Catchable fatal error: Argument 1 passed to JpGraphException::defaultHandler() must be an instance of Throwable, instance of JpGraphExceptionL given in /usr/share/php/jpgraph/jpgraph_errhandler.inc.php on line 158

Does anyone have an idea what to do? If you need further information like the php.ini or other coniguration files please tell me. Best regards Lars

Until now i tried:

I copied the extracted archive in /usr/share/jpgraph/

I followed the manual an made the changes in php.ini I made changes recommended in the manual in the jpgraph-config.ini.php I started an example program from jpgraph.net

I got the error message.

 I checked all changes, if they match with the recommended changes in the manual.


w1djm...@gmail.com

unread,
Feb 14, 2023, 6:04:35 AM2/14/23
to JpGraph
The first thing you need to do is install a current version of PHP, namely 8.2.2. PHP 5 went end of life more than 4 years ago. I would not spend any more time trying to get JPGraph to work with that extremely old version of PHP.

w1djm...@gmail.com

unread,
Feb 14, 2023, 6:06:52 AM2/14/23
to JpGraph
Please don't even consider PHP 7.x either as the latest version of PHP 7 went end of life a couple of months ago.

https://www.php.net/eol.php

Claude Deslandes

unread,
Feb 20, 2023, 3:07:15 PM2/20/23
to JpGraph
Good day!
    Any idea when jpgraph pro version will be working on php 8.2.x ?

    Claude

w1djm...@gmail.com

unread,
Feb 20, 2023, 3:11:04 PM2/20/23
to JpGraph
There's a version on packagist that should work with 8.2.x.
Reply all
Reply to author
Forward
0 new messages