Title: Weather API Issue
Last modified: January 14, 2026

---

# Weather API Issue

 *  Resolved [DL](https://wordpress.org/support/users/damon18/)
 * (@damon18)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/weather-api-issue/)
 * I have setup the weather API at WeatherAPI.com and checked that is is valid at
   
   [https://www.weatherapi.com/api-explorer.aspx#forecast](https://www.weatherapi.com/api-explorer.aspx#forecast)
 * However on the event details pages the weather tab is just a broken link.
 * The Map tab using the Google Map API is working on the same page.
 * What can be the problem? Don’t know if it is related, but in the PHP error log
   I see a lot of these related to EventPrime
 * [14-Jan-2026 21:08:44 UTC] PHP Warning: foreach() argument must be of type array
   |object, null given in /wp-content/plugins/eventprime-event-calendar-management/
   public/class-eventprime-event-calendar-management-public.php on line 2015
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fweather-api-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [epsupport1](https://wordpress.org/support/users/epsupport1/)
 * (@epsupport1)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/weather-api-issue/#post-18787023)
 * Thank you for reporting this and for sharing the error log — that’s very helpful.
 * Regarding the PHP warning, we’ve identified this issue and will handle it properly
   in an upcoming release to prevent the warning from being generated.
 * As for the Weather tab showing as a broken link, in most cases this happens when
   the venue geolocation data is missing or incomplete, even though the WeatherAPI
   key itself is valid. Since the weather data is fetched based on the event’s venue
   location, we recommend the following:
 * Go to the Venue linked with the event.
 * Open the venue for editing and re-save the venue details.
 * Make sure the location (address/coordinates) is properly set and saved.
 * Then reload the event details page and check the Weather tab again.
 * The fact that the Map tab is working confirms that the API setup is correct, 
   so this is likely related to how the venue location data was previously saved.
 * Additionally, we checked the browser console and noticed JavaScript errors coming
   from a third-party plugin, specifically Termageddon / Usercentrics. The error(
   uc is not defined) indicates that the plugin’s script is not loading correctly,
   which can interfere with other scripts on the page and lead to unexpected behavior.
 * To help isolate this, could you please try the following:
 * Temporarily deactivate the Termageddon/Usercentrics plugin and check the event
   page again.
 * If you are using any cache or optimization plugin, please temporarily disable
   JS minification or combination and test again, as these features can sometimes
   break script dependencies.
 * Clear the site and browser cache, then test in an incognito/private window.
 * If the issue persists after these steps, please let us know and we’ll be happy
   to investigate further.
 * Thank you for using EventPrime and for bringing this to our attention.
 *  Thread Starter [DL](https://wordpress.org/support/users/damon18/)
 * (@damon18)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/weather-api-issue/#post-18788845)
 * Thanks for your detailed reply on the weather issue.
 * I have tried all of your suggestions and found that while the Google Maps API
   works in all cases, the weather API only works part of the time. Here are two
   examples each of successful and unsuccessful weather display.
 * successful:
 * [/calendar/?event=1377119](https://thebeachcats.com/calendar/?event=1377119)
   
   [/calendar/?event=1385137](https://thebeachcats.com/calendar/?event=1385137)
 * unsuccessful:
 * [/calendar/?event=1377085](https://thebeachcats.com/calendar/?event=1377085)
   
   [/calendar/?event=1377098](http://calendar/?event=1377098)
 * For the unsuccessful venues I tried many versions of the venue address, and in
   some cases the venue actually has a Google Places listing, which worked for the
   map but not the address.
 * If the weatherapi connection is that unreliable I would prefer to disable it 
   and remove from the event display. Will removing the Weather API code at
   Eventprime
   > Settings > General > Third Party remove the display of the Weather button from
   the row of Details | Map | Weather on the event pages or will I need to hide 
   it with CSS?
    -  This reply was modified 4 months, 3 weeks ago by [DL](https://wordpress.org/support/users/damon18/).

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fweather-api-issue%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/eventprime-event-calendar-management/assets/icon-256x256.
   gif?rev=2961582)
 * [EventPrime – Events Calendar, Bookings and Tickets](https://wordpress.org/plugins/eventprime-event-calendar-management/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eventprime-event-calendar-management/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eventprime-event-calendar-management/)
 * [Active Topics](https://wordpress.org/support/plugin/eventprime-event-calendar-management/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eventprime-event-calendar-management/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eventprime-event-calendar-management/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [display](https://wordpress.org/support/topic-tag/display/)

 * 3 replies
 * 2 participants
 * Last reply from: [DL](https://wordpress.org/support/users/damon18/)
 * Last activity: [4 months, 3 weeks ago](https://wordpress.org/support/topic/weather-api-issue/#post-18788845)
 * Status: resolved