• Resolved DL

    (@damon18)


    I have setup the weather API at WeatherAPI.com and checked that is is valid at
    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support epsupport1

    (@epsupport1)

    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

    (@damon18)

    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
    /calendar/?event=1385137

    unsuccessful:

    /calendar/?event=1377085
    /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 1 month ago by DL.
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.