wxgraphs issue

I used to have JPGraphs and WXGraphs working just fine. However I had to migrate to a new server and I cannot get these to show the graphs.

I have double checked all the settings and pointers to the relevant directories but to no avail. I have been through the well written instructions here too http://www.weather-watch.com/smf/index.php?topic=27489.0

Any idea what may be wrong?

www.it-temp.com
http://it-temp.com/wxgraphs/wxgraphs_test.html

If you browse directly to one of the graph url’s like http://it-temp.com/wxgraphs/rain_yesterday.php there are errors reported. No GD is a total showstopper :frowning:

Notice: Use of undefined constant IMG_PNG - assumed 'IMG_PNG' in /home/tmuscat0188/public_html/jpgraph-4.0.2/src/jpgraph_errhandler.inc.php on line 282 JpGraph Error: 25001 This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)

Thank you for your help. My Godaddy hosting showed that GD libraries was enabled but after a long conversation they admitted that it actually was not. So that sorted the problem…nearly…

www.it-temp.com

If you see my site using Chrome it looks like I want it with the graphs and colours. But when I use anything Microsoft like Edge or IE, the graphs do not work and in fact it does not pick up the changes I made to the gauges. I have cleared my cache several times.

Any ideas please?

I’m 100% Chrome so I can’t be much help. If you use the MS browser directly to a graph url like http://it-temp.com/wxgraphs/rain_yesterday.php what do you see?

The test page http://it-temp.com/wxgraphs/wxgraphs_test.html works OK for me, except where there is a font file missing.

On the home page I don’t see the graphs on mouseover, and I would guess that’s because you do not have the path to them set correctly in the gauge setup. It appears to be looking for them in the homepage directory, not wxgraphs.

You are addressing the graphs in your gauges page http://www.it-temp.com/ as:
http://www.it-temp.com/images/temp+hum_24hr.php

They are not there so you get a:
Failed to load resource: the server responded with a status of 404 (Not Found)

The graphs seem to be at:
http://it-temp.com/wxgraphs/temp+hum_24hr.php

Check your scripts/gauges.js settings at line 38 to point to the correct location, it is now:

           imgPathURL         : './images/',            // *** Change this to the relative path for your 'Trend' graph images

change to

           imgPathURL         : './wxgraphs/',            // *** Change this to the relative path for your 'Trend' graph images

Wim

Thank you Niko and wvdkuil, that fixed it.

On IE / edge too?