Author Topic: Environment Canada Data Missing - Resolved  (Read 841 times)

0 Members and 1 Guest are viewing this topic.

Offline Stryder87

  • Senior Member
  • **
  • Posts: 70
    • Moody Weather
Environment Canada Data Missing - Resolved
« on: October 21, 2019, 12:25:21 PM »
Hi All

I've noticed that all of the Environment Canada information on my site has been missing for the past week.  I gave it some time thinking it would just be a problem on their end and it would be resolved, but it doesn't look like it's coming back.  Oddly enough, the radars still work fine, but all of the forecast data is missing.  I'm wondering if anyone could help me figure this out?

Here is a wall of text from the error log that I think may point to the issue, but I don't know what to do with it.  It's been repeating every day since the 16th which is about when I noticed the data was missing on the site:

----------------------------------------------
PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Space required after the Public Identifier in /home/d6bsim7o954q/public_html/ec-forecast.php on line 714
PHP Warning:  simplexml_load_string(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/d6bsim7o954q/public_html/ec-forecast.php on line 714
PHP Warning:  simplexml_load_string():                                                  ^ in /home/d6bsim7o954q/public_html/ec-forecast.php on line 714
PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : SystemLiteral " or ' expected in /home/d6bsim7o954q/public_html/ec-forecast.php on line 714
PHP Warning:  simplexml_load_string(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/d6bsim7o954q/public_html/ec-forecast.php on line 714
PHP Warning:  simplexml_load_string():                                                  ^ in /home/d6bsim7o954q/public_html/ec-forecast.php on line 714
PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing in /home/d6bsim7o954q/public_html/ec-forecast.php on line 714
PHP Warning:  simplexml_load_string(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/d6bsim7o954q/public_html/ec-forecast.php on line 714
PHP Warning:  simplexml_load_string():                                                  ^ in /home/d6bsim7o954q/public_html/ec-forecast.php on line 714
PHP Warning:  Invalid argument supplied for foreach() in /home/d6bsim7o954q/public_html/ec-forecast.php on line 1135
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/d6bsim7o954q/public_html/ec-forecast.php on line 1221
PHP Warning:  Division by zero in /home/d6bsim7o954q/public_html/ec-forecast.php on line 1591
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/d6bsim7o954q/public_html/ec-forecast.php on line 1740
PHP Notice:  Undefined variable: forecastdetail in /home/d6bsim7o954q/public_html/ajax-dashboard.php on line 206
PHP Notice:  Undefined variable: forecastdays in /home/d6bsim7o954q/public_html/ajax-dashboard.php on line 207
PHP Warning:  Invalid argument supplied for foreach() in /home/d6bsim7o954q/public_html/ajax-dashboard.php on line 207
PHP Notice:  Undefined variable: forecasticons in /home/d6bsim7o954q/public_html/ajax-dashboard.php on line 697
PHP Notice:  Undefined offset: 0 in /home/d6bsim7o954q/public_html/ajax-dashboard.php on line 983
PHP Notice:  Undefined offset: 1 in /home/d6bsim7o954q/public_html/ajax-dashboard.php on line 983
PHP Notice:  Undefined variable: forecasticons in /home/d6bsim7o954q/public_html/ajax-dashboard.php on line 989
PHP Notice:  Undefined offset: 0 in /home/d6bsim7o954q/public_html/ajax-dashboard.php on line 989
PHP Notice:  Undefined variable: forecasticons in /home/d6bsim7o954q/public_html/ajax-dashboard.php on line 1000
PHP Notice:  Undefined offset: 1 in /home/d6bsim7o954q/public_html/ajax-dashboard.php on line 1000
--------------------------------------------

Line 714 in the 'ec-forecast.php' file is this:
----------
$xml = simplexml_load_string($content);
----------

Thanks for the help.
Ray

« Last Edit: October 21, 2019, 12:54:37 PM by Stryder87 »

Online saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9280
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Environment Canada Data Missing
« Reply #1 on: October 21, 2019, 12:32:27 PM »
When scripts go wonky, it's always a good idea to do (for your site) http://www.moodyweather.ca/check-fetch-times.php?show=versions and see if updates are needed/available.  In your case, both ec-forecast.php and ec-radar.php have updates to fix those issues :)
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Stryder87

  • Senior Member
  • **
  • Posts: 70
    • Moody Weather
Re: Environment Canada Data Missing
« Reply #2 on: October 21, 2019, 12:35:43 PM »
I'm just looking at the new files right now!  I typed before I checked.  Funny how Oct 16 is the exact date of your updated file.  You must sit there at home just waiting for this kind of thing!  haha


Offline Stryder87

  • Senior Member
  • **
  • Posts: 70
    • Moody Weather
Re: Environment Canada Data Missing
« Reply #3 on: October 21, 2019, 12:54:11 PM »
Well, looks like everything is backup and running.

I should have checked for the updates before posting.   ](*,)

Thanks for the reminder!

Ray