Author Topic: "NOAA ATOM/CAP Advisory PHP" stopped working.  (Read 988 times)

0 Members and 1 Guest are viewing this topic.

Offline xmas111

  • Member
  • *
  • Posts: 49
    • http://www.johnsweather.com
"NOAA ATOM/CAP Advisory PHP" stopped working.
« on: June 04, 2017, 04:35:44 PM »
I've been using the "NOAA ATOM/CAP Advisory PHP" for years without any problems but I've noticed the last couple days it has stopped working.

I've circled in red where the advisory use to show up in the picture below.


Here's how I call the script in my page......
<td class="style56 c3"><?php
$includeOnly = true;
$DefaultZone = 'MAZ019';
$doSummary = true;
$hurlURL = "advdetail.php";
include_once("atom-advisory.php");
?></td>
</tr>


I have no idea what could be causing the issue.
If anyone might be able to point me in the right direction on how to solve this I'd really appreciate it.
And if more information is needed let me know and I'll post it.

And here's the link to my web page:  http://johnsweather.com/

Thanks,
John

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7615
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: "NOAA ATOM/CAP Advisory PHP" stopped working.
« Reply #1 on: June 04, 2017, 04:49:07 PM »
Looks like you're running Version 2.10 - 12-Aug-2015, and the current version is Version 2.12 - 15-Jul-2016.

I suggest you download a fresh copy from here, customize it, and upload to your website .. that should fix the issue.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline xmas111

  • Member
  • *
  • Posts: 49
    • http://www.johnsweather.com
Re: "NOAA ATOM/CAP Advisory PHP" stopped working.
« Reply #2 on: June 04, 2017, 05:03:42 PM »
Ok, I downloaded the file, made the changes and uploaded it to my site. But it's still not working.

Is there anything else I can do on my end to help fix this?

Thanks again for your help.

John

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7615
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: "NOAA ATOM/CAP Advisory PHP" stopped working.
« Reply #3 on: June 04, 2017, 06:59:57 PM »
It's working, there are just not advisories active for your zone at this time.

https://alerts.weather.gov/cap/wwaatmget.php?x=MAZ019&amp;y=0

Also, your home page appears to be index.html .. it needs to be index.php to have the PHP in the page to include atom-advisory.php actually execute.
« Last Edit: June 04, 2017, 07:04:19 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline xmas111

  • Member
  • *
  • Posts: 49
    • http://www.johnsweather.com
Re: "NOAA ATOM/CAP Advisory PHP" stopped working.
« Reply #4 on: June 05, 2017, 05:36:20 AM »
Ok, think I found the problem but not sure how to correct it.

Looks like someone hacked my .htacess file and that's why my site loads as 'html' instead of 'php'.

Is it safe to attach my .htacess file so someone might be able to tell how to clean it up?

Thanks,
  John


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7615
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: "NOAA ATOM/CAP Advisory PHP" stopped working.
« Reply #5 on: June 05, 2017, 11:07:08 AM »
You can PM me or email me the file (webmaster at saratoga-weather.org).. I'll take a look.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline xmas111

  • Member
  • *
  • Posts: 49
    • http://www.johnsweather.com
Re: "NOAA ATOM/CAP Advisory PHP" stopped working.
« Reply #6 on: June 05, 2017, 02:21:34 PM »
A huge thumbs up  =D&gt; to Ken!   He fixed my .htacess file and everything is back to normal.

Thank you very much Ken!

John

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 7615
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: "NOAA ATOM/CAP Advisory PHP" stopped working.
« Reply #7 on: June 05, 2017, 04:55:07 PM »
You're very welcome, John!  Glad I could assist.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP