Home › Forums › Calendar Products › Events Calendar PRO › Fresh WordPress install and can't see any events on the map
- This topic has 5 replies, 2 voices, and was last updated 7 years, 9 months ago by
luclessard.
-
AuthorPosts
-
July 4, 2018 at 2:04 pm #1567830
luclessard
ParticipantHi, i just installed a new WordPress site updated to the latest version, NO plugins except for event calendar standard and the PRO plugin i purchased. I added 5 new events with venues, and NONE are appearing on the map above… But when i change the view to list, they appear as liste items.
I checked my Google Maps API, everything is allright (Maps Javascript API, Geolocation API, Domain approved, API restriction to my domain with wildcard, paiement is enabled, i don’t see any errors about my key not being enabled in the javascript console.
So here I am, as a last resort. As i said, it’s a fresh installation, nothing else except events calendar standard and Pro.
Thanks for your helpLuc
July 5, 2018 at 6:48 am #1568191Jeremy
KeymasterHi Luc,
Thanks for reaching out to us! I’d be happy to help you 🙂
It happens, sometimes, that the map displays no event and is centered on the coast of Africa.
In order to troubleshoot this issue, you should have a look at our documentation.
Basically, there are a few steps to follow:
- did you add your API key under Events –> Settings –> APIs?
- could you try to “Fix venues data” by clicking on that button in Events → Settings→ Map Settings?
- if that doesn’t change anything, could you use coordinates in Events → Venues? (edit one of the venues – you will find an option to use latitude and longitude coordinates)
Please let me know how it goes,
Cheers,
JeremyJuly 5, 2018 at 7:48 am #1568241luclessard
ParticipantHi Jeremy, thanks for the support
So here are my answers :
did you add your API key under Events –> Settings –> APIs?
Response: Sure did, checked and re checked, and no errors in the javascript console.could you try to “Fix venues data” by clicking on that button in Events → Settings→ Map Settings?
Response: I can’t see this option nowhere…. take a look at the screenshot i attached.if that doesn’t change anything, could you use coordinates in Events → Venues? (edit one of the venues – you will find an option to use latitude and longitude coordinates)
Response: I use the coordinates on one of the venues and the pointer appears on the map, but i can’t use the coordinates option since the venues will be manage by someone else (techno noob) and it needs to be as easy as possible like using the address and zipcode. Strange that the address in the venue options don’t work but works directly on maps.google.com ?Thanks again.
Luc
July 5, 2018 at 10:20 am #1568455luclessard
ParticipantAny news?
The button you told me to press “Fix venues data” doesn’t exist or it’s somewhere else ? (maybe a change in the ui)
I hope it’s the answer, my projet is stalled because of this problem and the deadline is arriving soon.
Thanks for the help
Luc
July 5, 2018 at 1:15 pm #1568641luclessard
ParticipantI found the problem and it’s somewhere in your code. Well it’s only missing a dedicated serverside API key soo the server can call the google API directly.
You see, when we create the API key in the google console, we have to protect it and assign an “Application Restriction” in most case a typical user should use the setting: “HTTP referrers (web sites)” and that’s what my api was setup for to prevent anybody from abusing from it.
But in our case, when Events Calendar Pro goes to fetch the geolocation of the address in the Venues, its the “SERVER” that calls the Google Maps API so thats where it halts with an “ACCESS DENIED”, because Google’s API expects the call to come from a Browser… Not a server.
To Correct it, i had to “Remove” the Application Restriction in the Google API key setup and set that to none… Which is UNsecure and kinda scary.
Can your developers check that urgently please ?
It’s in the file events-calendar-pro > src > Tribe > Geo_Loc.php
On line 575, it uses the API for the end user when it should use a key dedicated for server to google api calls.In the mean time, I hard coded another API key on the server side and set its “Application restrictions” to IP Address so the server can call google without any trouble
Luc
July 6, 2018 at 1:46 am #1568891Jeremy
KeymasterHi Luc,
Thank you very much for your feedback and that detailed explanation on the solution you found!
I’m going to pass this to our developers so they could investigate further.
I’ll let you know when I have more information to share.
Cheers,
JeremyJuly 28, 2018 at 9:35 am #1585169Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Fresh WordPress install and can't see any events on the map’ is closed to new replies.
