Author Topic: Wunderground widgets not displaying on website with ssl  (Read 242 times)

0 Members and 1 Guest are viewing this topic.

Offline RHYC-web

  • Member
  • *
  • Posts: 5
    • Rock Hall Yacht Club
Wunderground widgets not displaying on website with ssl
« on: December 11, 2018, 10:54:46 PM »
Our site, rockhallyachtclub.org, started using ssl cert this year. Since we transitioned to https: our wunderground widgets have not worked and are shown as broken links, see right column: https://rockhallyachtclub.org/weather/. I suspect this has something to do with our site's use of ssl. I have tried modifying the widget code, but https: does not seem to work with the wunderground widgets.

Here's the widget code from the site
<a href="http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KMDROCKH11"><img src="http://banners.wunderground.com/cgi-bin/banner/ban/wxBanner?bannertype=wxstnsticker&weatherstationcount=KMDROCKH11" height="160" width="160" border="0" alt="Weather Underground PWS KMDROCKH11" /></a>

I've tried many options with no success, hoping for some direction from those more experienced! Many thanks ahead of time!

Online Jasiu

  • Forecaster
  • *****
  • Posts: 363
    • LexMAWeather
Re: Wunderground widgets not displaying on website with ssl
« Reply #1 on: December 12, 2018, 11:18:56 AM »
The source attribute shown if you do a "view-source" is missing the "http://":

Code: [Select]
<img src="banners.wunderground.com/cgi-bin/banner/ban/wxBanner?bannertype=wxstnsticker&weatherstationcount=KMDROCKH11" height="160" width="160" border="0" alt="Click for conditions KMDROCKH11" />
If I go in under "Inspect Element" with Firefox and add the "http://", it appears. So something is stripping that off.

Offline RHYC-web

  • Member
  • *
  • Posts: 5
    • Rock Hall Yacht Club
Re: Wunderground widgets not displaying on website with ssl
« Reply #2 on: December 12, 2018, 11:26:29 AM »
Yes, I've tried putting nothing (as you see in view source), http://, and https://
None of them work.
Thank you for looking into it, though!

Online Jasiu

  • Forecaster
  • *****
  • Posts: 363
    • LexMAWeather
Re: Wunderground widgets not displaying on website with ssl
« Reply #3 on: December 12, 2018, 11:52:41 AM »
Pop http:// back in and let me take a look.

Offline RHYC-web

  • Member
  • *
  • Posts: 5
    • Rock Hall Yacht Club
Re: Wunderground widgets not displaying on website with ssl
« Reply #4 on: December 12, 2018, 12:11:16 PM »
ok, done. thanks!

Online Jasiu

  • Forecaster
  • *****
  • Posts: 363
    • LexMAWeather
Re: Wunderground widgets not displaying on website with ssl
« Reply #5 on: December 12, 2018, 12:28:59 PM »
It's https now. Just use http. WU doesn't support https for the stickers.

Offline RHYC-web

  • Member
  • *
  • Posts: 5
    • Rock Hall Yacht Club
Re: Wunderground widgets not displaying on website with ssl
« Reply #6 on: December 12, 2018, 12:36:30 PM »
I think what's happening is the WordPress plugin Really Simple SSL is changing the URL so that our site is "secure".

Are there any workarounds for this?

Online Jasiu

  • Forecaster
  • *****
  • Posts: 363
    • LexMAWeather
Re: Wunderground widgets not displaying on website with ssl
« Reply #7 on: December 12, 2018, 12:40:24 PM »
I'd contact the plugin authors. They've had to run into this before.


Offline RHYC-web

  • Member
  • *
  • Posts: 5
    • Rock Hall Yacht Club
Re: Wunderground widgets not displaying on website with ssl
« Reply #8 on: December 12, 2018, 03:24:55 PM »
Well, it was the "Really Simple SSL" plugin that was converting Wunderground's weather widget links. Put code in functions.php to filter wunderground URLs and it now works. Thank you to Jasiu for assistance!