Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hal Gatewood

    (@halgatewood)

    Do you have a URL to the site where it’s not working? Most likely your free host doesn’t allow remote calls to external websites using (wp_get_remote). Maybe this is something they could turn on for you.

    Mostly like because it’s free hosting they have it turned off to prevent stuff.

    FYI: With me, the widget wasn’t working either.

    Seems that the following line of code, was the problem when using location like ‘London,UK’:
    awesome-weather.php – line 99
    $city_name_slug = sanitize_title( $location );

    sanitize_title seemed to remove the comma from the location, thus passing londonuk in the querystring when calling the openweather api.
    When passing london,uk in the querystring it worked for me.

    Hope this helps.

    Best,
    Richard

    Plugin Author Hal Gatewood

    (@halgatewood)

    @storkontheroof Interesting, I just did a few tests and it appears you are right! Excellent find. I’ll work on a fix and get that out quickly.

    Plugin Author Hal Gatewood

    (@halgatewood)

    For others who are having problems you can find the City ID and bypass the location lookup process. Here are the steps:

    https://halgatewood.com/docs/plugins/awesome-weather-widget/finding-city-id/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘widget no working’ is closed to new replies.