I have developed a website (www.rookeries.uk) incorporating pchart. This have been live now for 18-months. A recent upgrade of PHP (from 7.0 to 7.2) has resulted in the pcharts not being rendered and a blank page being displayed. If i remove the pchart from a page, the page is correctly displayed (minus the chart).
I used Netbeans to develop the website and the charts are still displayed in this environment.
What do I need to change to get pchart to work with PHP 7.2.
Thanks
Roger Hicks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have developed a website (www.rookeries.uk) incorporating pchart. This have been live now for 18-months. A recent upgrade of PHP (from 7.0 to 7.2) has resulted in the pcharts not being rendered and a blank page being displayed. If i remove the pchart from a page, the page is correctly displayed (minus the chart).
I used Netbeans to develop the website and the charts are still displayed in this environment.
What do I need to change to get pchart to work with PHP 7.2.
Thanks
Roger Hicks
I ran into issues going from PHP 5.6 to 7.1 and was sad to see there's no update to fix this.
However I used XDebug to step through the code and see what the hangup was. In my case I was able to fix it by changing just 2 lines:
pData.class before:
pData.class after:
Hope this helps in your case as well