cloudy cloudy

Author Topic: Wxsim 3in1 Meteogram only showing three days.  (Read 1186 times)

0 Members and 1 Guest are viewing this topic.

Offline rh205

  • Posts: 171
  • Gosport, UK
  • OS/Browser:
  • Win NT 10.0
  • Chrome 46.0.2490.86
    • Gosport Weather
Wxsim 3in1 Meteogram only showing three days.
« on: December 02, 2015, 05:20:09 PM »
Hi,

I am having problems with the meteogram when using the wxsim 3in1 script. The problem is even though I have set wret to seven days and lastret.txt appears to show the full seven days the meteogram only displays three days. I have looked back at the files and just can't work out why it is not working.

The forecast page can be found at: http://www.gosportweather.co.uk/wxforecast.php
The test page is at: http://www.gosportweather.co.uk/sivu2.php
The lastret.txt is at: http://www.gosportweather.co.uk/lastret.txt

I have a couple of errors that repeat several times at the top of the page when error reporting is on and was wondering if this could be stopping the script processing the remainder of the days.

The errors are:

Warning: reset() expects parameter 1 to be array, null given in /home/gosportw/public_html/wxall.lastret.php on line 374
Warning: Invalid argument supplied for foreach() in /home/gosportw/public_html/wxall.lastret.php on line 375

I am unsure how to fix these and have turned error reporting off for the time being.

Any help would be greatly appreciated. If any more info or files are needed then I would be more than happy to provide these.

Thanks in advance,

Ross