Menu

php 8.0.2

Ted Lorenz
2021-02-19
2021-11-10
  • Ted Lorenz

    Ted Lorenz - 2021-02-19

    I just updated xampp to the latest version which include PHP 8.0.2. When I tried to run my line graph i didn't get the graph. When I tried it in a command line I got the following error below. I reloaded xampp that has php 7 and reissued the same command line the output.png was perfect.

    I'm not sure why the failure. Has anyone encountered this problem and is there a work around or fix?

    Thanks

    C:\xampp\htdocs\TS2>php myscript.php > output.png
    PHP Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($function) must be a valid callback, function "imagecreate" not found or invalid function name in C:\xampp\htdocs\TS2\phplot-6.2.0\phplot.php:684
    Stack trace:

    0 C:\xampp\htdocs\TS2\phplot-6.2.0\phplot.php(659): PHPlot->initialize('imagecreate', 800, 600, NULL, NULL)

    1 C:\xampp\htdocs\TS2\myscript.php(16): PHPlot->__construct(800, 600)

    2 {main}

    thrown in C:\xampp\htdocs\TS2\phplot-6.2.0\phplot.php on line 684

     
  • Afan Ottenheimer

    Is gd installed?

     
    • Ted Lorenz

      Ted Lorenz - 2021-02-20

      I checked the php.ini file and the extension gd was commented out. Changed it and restarted and my graphs are now working. I would never have thought of that.

      Thanks for the help!

       
  • Michael Keusch

    Michael Keusch - 2021-11-09

    Hello,
    support phplot release-6.2.0 PHP8?
    Currently I am using release-6.2.0 with PHP7.4.
    Thank you very much for your efforts.
    Greetings Michael

     
  • Afan Ottenheimer

    Hi - I've moved PHPLOT development to https://github.com/ajRepo/phplot .

    Can you open support requests there instead?

     

Log in to post a comment.