I just switched web hosting from Hostway over to 1and1.. For the most part, the move went smoothly.. I had to make some changes because on Hostway, my site was using PHP 5.2, and on 1and1, I'm using PHP 7.0.12. I think I have just about everything working again, but one thing that seems to have broken is the mouse-over line graphs using in the Steel Gauges at
http://www.indigopc.com/wxssgauges.php .. One of the other graphs do work -- the average wind direction one. PHP is throwing this on the line graphs though:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; LinePlot has a deprecated constructor in /homepages/xx/xxxxxxxx/htdocs/jpgraph/src/jpgraph_line.php on line 24I also updated jpgraph to 4.0.1 so that would be compatible with PHP 7. In jpgraph_line.php in its downloaded form, Line 38 defines the method "LinePlot", which is the same name as the class:
function LinePlot($datay,$datax=false) {
To fix this, I changed this line to:
public function __construct($datay,$datax=false) {
That lets the line graphs work again.. Just wanted to know if this is correct for this particular situation.. I'm guessing the jpgraph author may have missed something with PHP 7 compatibility?
Thanks,
Rick
http://www.indigopc.com