Hi There,
I am running the wxhotdays script by Wildwood Weather, and I have noticed that today the 1st of the month, the script errors out at line 122 in its include file.
I checked online and there are a lot of websites with the same problem in their scripts, although the script is working at Wildwood Weather.
I expect it may be something to do when files are uploaded, because it was fine yesterday and I expect it will work tomorrow.
Dave
I just wanted to post about this but you beat me to it.
Mine isn’t working as well.(Showing frostdays by wxfreeze.php that is)
I too did search on wxfreeze and found a lot of sites not working but also a lot of sites that were working.
Dave,
Isn’t your page showing now?
I can see the page but not all data is present.
I did a sneaky modification in the wxhotdays.php, tested for the first of the month and took one day off the date() calls.
I expect the problem is that the month file is not created until after midnight tonight.
I do have missing weather data for a number of years.
Dave
Old post but I am experiencing this error today on the first of march.
It is not a big deal I am expecting this to work tomorrow.
When searching on wxhotdays I see a lot of websites having this “problem”.
Others do work.
Fatal error: Uncaught Error: Cannot use string offset as an array in /public_html/vantagevue/ws/wxhotdays-include.php:30 Stack trace: #0 public_html/vantagevue/ws/wxhotdays.php(129): include() #1 {main} thrown in /public_html/vantagevue/ws/wxhotdays-include.php on line 30
Is there a fix for this maybe but like I said it is not a big deal, expecting to work again tomorrow.
$noaadata[$m][0][0][0] = '01'; // assign day
Part of…
$current_month = (($year == $stop_year) AND (($m+1) == $month));
$current_month = (($year == $this_year) AND (($m+1) == $month));
if (($current_month) AND ($today == 1)){ // if first day of current month, ignore noaa report
$noaadata[$m][0] = '';
$noaadata[$m][0][0][0] = '01'; // assign day
$noaadata[$m][0][0][2] = strip_units($maxtemp); // assign maxtemp from testtags.php
} else {
$filename = get_noaa_filename($year,($m),$SITE['WXsoftware'],$current_month);
$noaadata[$m][0] = array_values(getnoaafile($path_dailynoaa . $filename,$year,$m));
}
if (($current_month) AND ($today != 1)){ // get data for today from testtags.php
$noaadata[$m][0][(date('j'))-1][0] = date('j'); // assign day
$noaadata[$m][0][(date('j'))-1][2] = strip_units($maxtemp); // assign maxintemp from testtags.php
}