Error using PHP 8.2.12

29 views
Skip to first unread message

Jean-Marc Evrard

unread,
Oct 21, 2025, 11:50:43 AMOct 21
to JpGraph
Hello, 
I upgraded the PHP version from 7.4.33 to PHP 8.2.12
I get the message error undefined constant "IMG_PNG"  \jpgraph\src\jpgraph_errhandler.inc.php in line 282
Previously I was running  jpgraph v4.4.0 with PHP7.4.33
I upgraded  jpgraph v4.4.0 to jpgraph v4.4.2 
Is it OK?
Is this version compatible with PHP 8.2.12?
What can I do to solve the problem?
Thanks for your answer.

Mikhail Oleynik

unread,
Oct 21, 2025, 1:57:47 PMOct 21
to JpGraph
There is jpgraph version compatible with latest PHP versions: https://packagist.org/packages/mitoteam/jpgraph

Unfortunately original JpGraph library is not compatible with php8.2 (even if they say so on official website).

Jean-Marc Evrard

unread,
Oct 22, 2025, 5:36:48 AMOct 22
to JpGraph

Thank you very much for your help.
Reply all
Reply to author
Forward
0 new messages