Hi All
I'm looking at the error log my web site is generating (it's a massive 8.5Mb for only a month worth of log entries), and I was hoping someone could help out with some of the errors (
www.moodyweather.ca).
The following three are generated, on average, approximately every 30 seconds (can range from every 15-40 seconds):
PHP Notice: Undefined property: stdClass::$windspdmph_avg10m in .../public_html/AWNtags.php on line 1108
- line is: $WX['wind10Avg'] = AWN_convertWind((string)$json->windspdmph_avg10m,'mph',$uomWind); /* 10 Minute Average Wind Speed* */
PHP Notice: Undefined property: stdClass::$yearlyrainin in .../public_html/AWNtags.php on line 1144
- line is: $WX['totalRain'] = AWN_convertRain((string)$json->yearlyrainin,'in',$uomRain); /* Yearly Rain */
PHP Warning: A non-numeric value encountered in .../public_html/AWNtags.php on line 444
- line is: $return = round($out*$amount,1);
The following four lines only show up about 4 times in the entire month:
PHP Warning: reset() expects parameter 1 to be array, null given in .../public_html/get-metar-conditions-inc.php on line 651
- line is: reset($Conditions); // Do search in load order
PHP Warning: Invalid argument supplied for foreach() in .../public_html/get-metar-conditions-inc.php on line 656
- line is: foreach($Conditions as $cond => $condrec) { // look for matching condition
PHP Notice: Undefined variable: metarGMT in .../public_html/get-metar-conditions-inc.php on line 172
- line is: $metarGMT
PHP Notice: Undefined index: RAW-METAR in .../public_html/include-metar-display.php on line 243
- line is: print " <td class=\"data1\" colspan=\"2\"><small>".$mtr['RAW-METAR']."</small></td>\n";
Now, my web site is in metric, so I can understand the first 2 being a problem about Imperial measurements, and I guess I'm more looking on how to stop these errors from being generated since they constitute, by far, the biggest part of the entire error log. Would simply commenting out the lines be sufficient or could that cause problems elsewhere? As for the 3rd line, I'm at a loss on how it could be complaining about a 'non-numeric' value.
As for the last 4 lines, since they are generated so rarely I'm not
as concerned about them, but it would still be nice to get them resolved. Honestly, I have no idea what they are referring to. The only thing I see on the Almanac/Nearby METAR Reports that could be an issue is the one status for the White Rock station doesn't update like the rest do.
Thanks.