Web Weather > Weather Web Site Help

NWS Alerts errors

(1/3) > >>

mkutche:
Not sure why this popped up.. it hasnít in the past see quote..


--- Quote --- Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 726

Warning: array_merge(): Expected parameter 1 to be an array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 731
--- End quote ---

saratogaWX:
I'd not seen that before, either.

Try changing nws-alerts.php
--- Code: ---if(!isset($log_folder))    {$logAlerts = false;}

--- End code ---
to
--- Code: ---if(!isset($log_folder))    {$logAlerts = false;}
if(!isset($daily_log[0]))    {$daily_log = array();}

--- End code ---

mkutche:

--- Quote from: saratogaWX on March 23, 2023, 02:28:49 PM ---I'd not seen that before, either.

Try changing nws-alerts.php
--- Code: ---if(!isset($log_folder))    {$logAlerts = false;}

--- End code ---
to
--- Code: ---if(!isset($log_folder))    {$logAlerts = false;}
if(!isset($daily_log[0]))    {$daily_log = array();}

--- End code ---

--- End quote ---

still getting it.


--- Quote ---Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: array_merge(): Expected parameter 1 to be an array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 732
--- End quote ---

mkutche:

--- Quote from: mkutche on March 23, 2023, 04:13:16 PM ---
--- Quote from: saratogaWX on March 23, 2023, 02:28:49 PM ---I'd not seen that before, either.

Try changing nws-alerts.php
--- Code: ---if(!isset($log_folder))    {$logAlerts = false;}

--- End code ---
to
--- Code: ---if(!isset($log_folder))    {$logAlerts = false;}
if(!isset($daily_log[0]))    {$daily_log = array();}

--- End code ---

--- End quote ---

still getting it.


--- Quote ---Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: in_array() expects parameter 2 to be array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 727

Warning: array_merge(): Expected parameter 1 to be an array, null given in /hermes/walnacweb03/walnacweb03/walnacweb03aa/b1007/moo.cyrptoworldnet/Gosportwx/nws-alerts.php on line 732
--- End quote ---

--- End quote ---

this is line 727 :         if(!in_array($dlv, $daily_log)) {                                  //     IF alert is not in the cache file

saratogaWX:
It's likely because you've enabled
--- Code: ---$logAlerts     = true;         // true=log alerts    false=don't log alerts
--- End code ---
in nws-alerts-config.php and the current copy of ./alertlog/NWSalertLog20230323.txt contains
--- Code: ---<?php 
 
$daily_log = NULL;

?>

--- End code ---
which is not an array, but NULL and Curly's code doesn't handle that in PHP over 5.6.

Change nws-alerts-config.php to
--- Code: ---$logAlerts     = false;         // true=log alerts    false=don't log alerts

--- End code ---
and the warnings should disappear.

I see logs with data on the 21st and 22nd, with a lot of Hydrologic Alerts, but the 23rd has no alerts.

The default for the template set was to NOT use alert logging, so I'd not adapted the Curly script to handle the $daily_log = NULL; issue.. turning it off is your best course for now.

Navigation

[0] Message Index

[#] Next page

Go to full version