Note: Due to the amount of SPAM received in the forums and to better serve our customers, support is now done by sending a message using the "Contact" link above . This forum is set to read-only, but you can still search the forum.

Welcome, Guest
Username: Password: Remember me
Zap Weather Questions and Comments

TOPIC: Failed Loading XML File - Weather Alerts

Failed Loading XML File - Weather Alerts 2 years 7 months ago #5926

  • TupeloWx
  • TupeloWx's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Karma: 0
Zap Weather is working well since the URL fix except for alerts.
Modules show that alerts exist but when clicking the following occurs:

Warning: file_get_contents(alerts.weather.gov/cap/wwacapget.php?x=M...847531987c559d965eb9): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /home/stormy7/public_html/components/com_zweather/views/location/view.html.php on line 333

Any ideas? Is anyone experiencing this issue?

Thanks.
The administrator has disabled public write access.

Failed Loading XML File - Weather Alerts 2 years 7 months ago #5927

  • cogliano
  • cogliano's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1854
  • Thank you received: 57
  • Karma: 29
Could be a similar issue. Try this: on line 333, change this:
$content = file_get_contents($url);
to this:
$content = ZapWeatherHelper::getURL($url);

The file_get_contents call was replaced with the getURL function in most places in the last release, I missed it in this file.
The administrator has disabled public write access.
The following user(s) said Thank You: TupeloWx

Failed Loading XML File - Weather Alerts 2 years 7 months ago #5935

  • TupeloWx
  • TupeloWx's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Karma: 0
Thanks, Dan. That immediately fixed the problem.
The administrator has disabled public write access.
Time to create page: 0.033 seconds
Powered by Kunena Forum