I'm showcasing custom post types on Google Map. It worked till yesterday, now we are getting this error message:
This page can't load Google Maps correctly.
What is the link to your site?
Google API key work, it is tested again
Also, we are getting this error message in browser console
Uncaught TypeError: Cannot read property 'Autocomplete' of undefined
at GeoComplete.initGeocoder (jquery.geocomplete.min.js?ver=1.7.0:8)
at GeoComplete.init (jquery.geocomplete.min.js?ver=1.7.0:8)
at new GeoComplete (jquery.geocomplete.min.js?ver=1.7.0:8)
at HTMLInputElement.<anonymous> (jquery.geocomplete.min.js?ver=1.7.0:8)
at Function.each (jquery.min.js?ver=3.5.1:2)
at s.fn.init.each (jquery.min.js?ver=3.5.1:2)
at s.fn.init.$.fn.geocomplete (jquery.geocomplete.min.js?ver=1.7.0:8)
at WPViews.DistanceFilterFrontend.self.initFormFunctionality (views_filter_distance_frontend.js?ver=2.0.8:123)
at WPViews.DistanceFilterFrontend.self.init (views_filter_distance_frontend.js?ver=2.0.8:72)
at new WPViews.DistanceFilterFrontend (views_filter_distance_frontend.js?ver=2.0.8:221)
I did report this strange behaviour in this thread, but that solution doesn't work in this case.
Can you please advise
Hello, I see an error in the browser console that indicates a problem with the API key:
To test for conflicts, can you try the following troubleshooting steps?
- Temporarily activate a default theme like Twenty Twenty One
- Temporarily deactivate all plugins except Types, Views, and Toolset Maps. If you use Toolset Layouts to design this page, you can keep Toolset Layouts active as well.
- Temporarily deactivate all custom code snippets in Toolset > Settings > Custom Code
Clear your site's cache, then reload the page with the map. Let me know the results of these tests and we can go from there.
You're right, I have an EventOn plugin that also has the ability to integrate with Google Maps and as soon as I entered the existing API key map it started working. Thanks a lot for the advice.
PS: this is resolved, thanks Christian
Thanks for the update, I'll close here.