Since about two days I have error messages about advisory block with wrnWarningEU-ATOM.php:
Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, string given in /home/httpd/vhosts/ender-informatik.ch/wetterstation.enderfamily.ch/pwsWD/wrnWarningEU-ATOM.php:153 Stack trace: #0 /home/httpd/vhosts/ender-informatik.ch/wetterstation.enderfamily.ch/pwsWD/wrnWarningEU.php(39): include() #1 /home/httpd/vhosts/ender-informatik.ch/wetterstation.enderfamily.ch/pwsWD/advisory_c_small.php(83): include(‘/home/httpd/vho…’) #2 /home/httpd/vhosts/ender-informatik.ch/wetterstation.enderfamily.ch/pwsWD/_test.php(17): include(‘/home/httpd/vho…’) #3 {main} thrown in /home/httpd/vhosts/ender-informatik.ch/wetterstation.enderfamily.ch/pwsWD/wrnWarningEU-ATOM.php on line 153
If I use wrnWarningEU-CAP.php there is no error and everything works.
Thank you very much for your fast reply. The change of the line 152 was the solution, no errors anymore with ATOM. Debug test of advisory_c_small.php: no error, Result:
Morgens Gewitter. Tiefsttemperatur 14C. Wind aus SSO und wechselhaft. Regenrisiko 60 %.
Here are the missing informations you need:
Answers on your questions:
The ATOM data for my area worked correctly, without any issue.
I have tested the CAP month before, but the result was not as good as with ATOM for me