Stuart, appreciate all your work on this new version.
Put it up the other day and have found a bump in the road on my http://tiggrweather.net/wxastronomy.php. Down the page a bit the sun path graph is missing, replaced by the error message, “Unable to find graphslang.php” (called out at line 151 in graphsconf.php). That file is in /wxgraphs/.
I am a little puzzled by this one as sunposa.php is not one of my graphs which is the image which is failing. The only sun graphs of mine all start solar.
I’ve been doing some testing with the other S/W clientraw files I’ve been able to get. Basically the only one where all my graphs seem to work is consoleWD which lets face it is not a surprise since it is Brian’s code. The other two Meteohub and WSWIN both have problems and the data for all the graphs is simply not there or not in a valid format.
So for Meteohub and WSWIN the easiest thing is to run my sample HTML file which tests all the graphs against the clientraw files for these programs and pick the ones which work. The other graphs for now will not work unless the relevant S/W is updated to include the relevant data in the same format as used in the WD files.
If anyone has any other software which creates clientraw files please let me know and I’ll do some checking to see if they can work.
Understood. The only reason I tossed it your way was because all I’ve done is to add your 4.0.1 package - that’s when the failure started. Now I’m unable to fine the graphslang.php file anywhere.
More like my brain is incomplete, niko. Have about 6 things failing right now and messed up my post - my apology for that. The graphslang.php file is in /wxgraphs/ on my server. The problem is why it apparently can’t be found. Line 151 in graphsconf.php is what is looking for that file and also what posts the error. Stuart’s http://tiggrweather.net/wxgraphs/wxgraphs_test.html appears to be working fine (don’t know if it uses the graphslang.php file). Nothing else has been changed.
The fact the the wxgraphs_test.html is working (and I just tested it here) means that the graphslang.php file is there since the graphsconf.php calls it on line 158. It does look like you have other issues.
It seems that the JPgraphs site is down. I have been getting a 504 gateway time-out error on the site yesterday and today. Is there another place that this JPgraph package can be downloaded from?
Just as a side note, there are still two JpGraph scripts (v4.0.1) that do not meet the PHP7 code guidelines: ‘jpgraph_bar.php’ and ‘jpgraph_line.php’ - both will display warnings.
I am trying to update my graphs from your script. I have followed your readme file and have uploaded all files to graphs directory on my webserver. I also uploaded jpgraph-4.0.2 to the web server. I have edited graphsconf.php, the only changes I made was timezone and changed jpgraph-4.0.1 to “2”. I tested in the graphs directory and graphs worked, but when I upload wxgraphs.php to my root directory graphs don’t display… http://www.mangawhaiweather.co.nz/wxgraphs.php
Tony that code provided is expecting to run from the directory you uploaded the graphs to, not the root directory. If you want to run it from there you need to edit all the graph calls to include the correct directory for each one.