RayProudfoot wrote:Thanks for your help Steve. That file was in the root folder so I moved it to the graphs folder and tried to load just the temp graph:
http://www.cheadlehulmeweather.co.uk/graphs/temp.php
Again, I still got the usual "Empty Data input array" message and in the graphs folder this was in the error_log file.
[28-May-2011 18:12:50] PHP Warning: file(../realtime.log) [<a href='function.file'>function.file</a>]: failed to open stream: No such file or directory in /home/admin4/public_html/graphs/temp.php on line 85
[28-May-2011 18:12:50] PHP Warning: array_reverse() [<a href='function.array-reverse'>function.array-reverse</a>]: The argument should be an array in /home/admin4/public_html/graphs/temp.php on line 85
[28-May-2011 18:12:50] PHP Warning: Invalid argument supplied for foreach() in /home/admin4/public_html/graphs/temp.php on line 100
[28-May-2011 18:12:50] PHP Warning: array_reverse() [<a href='function.array-reverse'>function.array-reverse</a>]: The argument should be an array in /home/admin4/public_html/graphs/temp.php on line 132
[28-May-2011 18:12:50] PHP Warning: array_reverse() [<a href='function.array-reverse'>function.array-reverse</a>]: The argument should be an array in /home/admin4/public_html/graphs/temp.php on line 133
[28-May-2011 18:12:50] PHP Warning: array_reverse() [<a href='function.array-reverse'>function.array-reverse</a>]: The argument should be an array in /home/admin4/public_html/graphs/temp.php on line 134
It does appear realtime.log is the problem but having moved it and still with the same problem I'm struggling to know what to do next.
Hi Ray,
Sorry for not getting back to you sooner.
I've just had a look at my files and tried to source why these error messages are occurring....
It seems they come back to the settings entered in GraphSettings.php
I have attached a modded version of them for you to try...
Basically... within the GraphSettings is the following settings are set...
############################################################################
# CONFIGURATION INFORMATION
############################################################################
$SITE['version'] = "3.1";
$SITE['hloc'] = "./";
$SITE['jpgraphloc'] = "jpgraph/src/";
$SITE['datafile'] = "realtime.log";
$SITE['sitename'] = "Weeley Weather UK";
$SITE['bgncolor'] = "#EFEFEF";
$SITE['txtcolor'] = "#22464F";
$SITE['tz'] = "Europe/London";
#---------------------------------------------------------------------------
$SITE['infopass'] = "";
$SITE['debugpass'] = "";
$SITE['datapass'] = "sce";
$SITE['viewpass'] = "sce";
$SITE['debug'] = 0; # Adjustable via debug
$SITE['info'] = 1; # Adjustable via info
I'm not sure if yours is set correctly?
Jason