Home › Forums › Calendar Products › Events Calendar PRO › Google Maps API and Location Search – 2 Bugs
- This topic has 19 replies, 3 voices, and was last updated 8 years, 3 months ago by
David Marchand.
-
AuthorPosts
-
May 8, 2017 at 3:36 pm #1280511
David Marchand
ParticipantHello
I just bought the plugin events calendar pro.
After installation I have 2 bugs to fix.1 / I can not determine lat and long.
Because Google Maps API daily query limit
I have this message when I create a new place.
Or when I click on “fix venue data”
(similar post forum :
https://theeventscalendar.com/support/forums/topic/location-not-working/
https://theeventscalendar.com/support/forums/topic/the-google-maps-api-daily-query-limit-has-been-reached-3/2 / I have a theme conflict with LISTABLE
the search location don’t work when theme is activate.Please how to correct this ?
Thank you for your helpMay 9, 2017 at 10:21 pm #1281440Victor
MemberHello David!
Thanks for getting in touch and for going Pro! 🙂
I’m sorry your are experiencing those issues. Let me try to help you with that.
We are aware of an issue with the Google Maps API showing that “daily query limit” message in the venue edit page. I don’t think they are related to the threads you mention because they seem a bit old, but they are very similar.
I will link this thread to the bug report and set this as “Pending fix” so the team will let you know as soon as a bugfix is released.
As a workaround, you could try creating and setting up a new Google Maps API and see if it solves the issue in the meantime. If that doesn’t work, then you should copy and paste the following snippet of code into your theme’s functions.php file:
https://gist.github.com/cliffordp/9d6c25feb389f98e8ae09a41273a3488
After pasting the code, remember to enter your API key in the $api_key variable like this:
$api_key = 'your_api_key';Regarding the search location issue, it seems there is a JavaScript conflict with the Google Maps API as well, so could you see if after trying the above fixes the issue?
Let me know how that goes.
Thanks,
VictorMay 10, 2017 at 10:07 pm #1282170David Marchand
ParticipantHello Victor
Thank you for your reply.
I do not understand why once the theme sixteen turn on and all extensions disable why the geocoding does not work. There should be no more conflict!? (Like on a new installation ??)
So. Thanks for opening a bug report.
The workarounds do not work.
Not a brand new api key.
Not modified function.php (the website is no longer accessible)Do you have another idea?
How long do you think I can hope for a resolution by the development team?
May 11, 2017 at 8:05 am #1282293Victor
MemberHi David!
I’m sorry this is still not working for you. 🙁
I do not understand why once the theme sixteen turn on and all extensions disable why the geocoding does not work. There should be no more conflict!? (Like on a new installation ??)
In this case, it’s not a theme or plugin conflict, so having a default theme or uninstalling all other plugins won’t be of much help here. The issue resides with the Google Maps API not being loaded in the edit venue page.
When you say “Not modified function.php (the website is no longer accessible)”, do you mean you tried the gist code I sent you and didn’t work? or after pasting the code in functions.php file your site was no longer accesible?
I didn’t mention before that when copying and pasting the gist code you should avoid pasting the “<?php” opening tag. Could you check that and see if the code snippet solves your issue? Let me know how that goes.
Another workaround would be to check the “Use latitude + longitude:” option and input the values manually by searching them in https://google-developers.appspot.com/maps/documentation/utils/geocoder/. While it’s not idea, it will at least allow you to input the location for the venue.
I’ve seen some activity from the dev team regarding the fix, but I cannot state how long will it take to have a fix for it. Rest assured the team is actively working to address this, and we do take all of the issues seriously.
Best,
VictorMay 11, 2017 at 4:19 pm #1282636David Marchand
ParticipantHello Victor.
Yes it’s better without “<? Php”
The site is now displayed.
But the geocoder does not work.And now that I have reactivated the theme and the extension, the map calendar no longer appears …
And it is not possible to geocode manually because there is too much data.
I will wait for a correction or news from you hoping that this happens as soon as possible.
Thank you in advance!
May 11, 2017 at 4:25 pm #1282637David Marchand
Participant(The map calendar reappeared
I forgot to activate a plugin.)May 17, 2017 at 12:34 pm #1285116David Marchand
ParticipantHello
Do you have any news for the resolution of the bug?
thanks!May 20, 2017 at 3:46 pm #1286801David Marchand
ParticipantHello
more 10 days since first demand.
no news ??May 22, 2017 at 6:25 am #1287054Victor
MemberHi David!
I’m sorry for the delay in my response. Somehow this thread got sent to the bottom of my list so I missed your last questions.
At the moment, we don’t have any updates regarding this bug, but rest assured that the team will take it into account whenever’s possible, as we do take all issues seriously. So, we only ask for a bit of patience.
I know how annoying this issue might be for you, so let me help you in finding a workaround for this in the meantime.
You said you couldn’t make the code snippet work. And having a closer look at your site, I can also see there is console error that the Google Maps API is embedded multiple times in your site. This could be due to another plugin embedding the Google Maps API.
Are you aware of any of your active plugins making use of the Goggle Maps API? If so, try disabling them and see if there’s any difference.
I also know you have tried the following:
- Deactivated all other plugins? Yes
- Switched to a default theme? Yes
Did you happen to notice a difference when deactivating all other plugins or switching to a default WordPress theme, like Twenty Seventeen? What happens if you try deactivating all plugins and switching to the Twenty Seventeen theme together? Do you notice a difference then?
If you see no difference in those conditions, then we’ll need to do some deeper troubleshooting.
Let me know about it and if you have any other questions.
Thanks,
VictorJune 15, 2017 at 11:07 am #1298648David Marchand
ParticipantHello
I retry to test with :
Deactivated all other plugins? Yes
Switched to a default theme? YesIt’s strange, there are no change, always bug : geocoding API limit
if I define manualy lat/long : the map disappear (no show)
At begin, I thinks that problem it was cause by Listable Theme (whose use API gmaps)
“If you see no difference in those conditions, then we’ll need to do some deeper troubleshooting”
what would you say ?In this condition, which solution can you give me ?
Do you have, paid service to give me to fix this bug?thanks a lot
David
June 16, 2017 at 6:53 am #1299081Victor
MemberHello David!
Thanks for following up on this and letting us know about your findings.
Unfortunately, we don’t provide custom services to fix issues neither to make customizations.
For the moment, we have identified the source of the problem to the Google Maps API not being used when editing/saving venues and this is mostly affecting users that are using shared hosting.
Just to confirm, could you please let me know if you are on a shared hosting?
Since the Google Map API is IP based when it’s not going through our key, it will exceed its limits systematically. In other words, not all the Google Maps API calls from our code are going through your Google Maps API key. This in turn prevents you from fixing geolocation on venues.
if I define manualy lat/long : the map disappear (no show)
This seems likely to be a different issue. Is the map not showing in the single event page, the venue page or both? Could you please check the “Show Google Map” setting for the event/venue and make sure it is checked?
Could you please share with us a link to the page where you are not seeing the map in? We’ll take a closer inspection and see if we can find anything.
Thanks,
VictorJune 16, 2017 at 7:27 am #1299091David Marchand
ParticipantHello
I confirm that I am on a shared hosting.After a new test, the manually set marker appears on the map.
So no display problem at the moment.But a problem in the search “near …” but probably using API to coordinate the place entered (so the same problem as the first one)
Now that you have identified the problem, do you have a resolution schedule?
Thanks
June 19, 2017 at 10:48 am #1300060Victor
MemberHi David,
Thanks for confirming your hosting type.
Good to hear you can now see the markers in the map.
As for the search “near” issue, this is a different issue. I can see you have set up a Google Maps API, but it throws the following console error: You have included the Google Maps API multiple times on this page.
There might another plugin, or even your theme, that is including a Google Maps API so this could be the conflict.
Could you please try deactivating all other plugins and see if it clears that console error and make it work? Let me know how it goes.
Regarding the fix for the venue issue, we unfortunately can’t state a date for it yet. The team must first come up with a fix, then go through review, QA and a few more steps before going into a maintenance release. Rest assured it will be addressed, but sometimes other issues with higher priority come before.
Best,
VictorJune 29, 2017 at 7:38 am #1311910David Marchand
ParticipantHello,
If I put the website on a dedicated IP
Do you think this fixes the first problem?thank you
June 30, 2017 at 8:21 am #1314428Victor
MemberHello David!
It is not 100% guaranteed it will work but is definitely worth a try.
If you happen to try it out, please let us know how it works for you.
We have just raised the priority of this ticket so it gets a higher chance of getting into a future release and be available sooner.
Thanks,
Victor -
AuthorPosts
- The topic ‘Google Maps API and Location Search – 2 Bugs’ is closed to new replies.
