-
AuthorPosts
-
May 27, 2018 at 8:51 am #962661
Hi, I included a Google maps element on my website though its not showing/ working…I found some articles stating tat you had issues with the element but they are dating from 2016. What am I doing wrong and is there an easy way to solve it? Thanks and regards, Marijke
May 27, 2018 at 2:06 pm #962736Hey Marijke82,
We are not typically having issues right now, but Google now requires your payment info, I assume you have an account with them and have a new API with them.
Can you please include a admin login in the private content area so we can take a closer look.Best regards,
MikeMay 27, 2018 at 4:02 pm #962790Hi, I do have the same problems today, but not on every website, just on some.
Two days before, everything was fine.
I’ve got new API keys, in some cases it works and on other websites it still doesn’t work.
I’ve thought that the payment info will be required not before June.Many thanks and best regards,
PetraMay 27, 2018 at 7:27 pm #962868Hi,
I thought so too, but there seems to be too many people with this issue. Yet on our test sites we can’t reproduce the issue.Best regards,
MikeMay 28, 2018 at 12:35 pm #963122Hi Mike,
I found the problem …. the API key is loaded with blank spaces:
avia_framework_globals.gmap_api = ‘ AIzaSyAwMFkkQ1ZIyq4Bd0ab7CFy6aUxdDSDIho’;
It would be glad to know which file I could edit to solve the problem. Would you please help Marijke82 and me?Many thanks,
PetraMay 28, 2018 at 2:46 pm #963245Hi Petra,
Can you try the solution posted on this thread: https://kriesi.at/support/topic/parse-error-when-updating-to-latest-version/#post-963219
Hope this helps :)Best regards,
NikkoMay 28, 2018 at 3:17 pm #963290Hi Nikko,
many thanks for your reply. I’ve just replaced the file but it didn’t help. Do you know in which file I can remove the space in front of the API key (the source code shows a space which is not normal)? This seems to be the solution.
Best regards,
PetraMay 30, 2018 at 5:29 am #964030Hi Petra,
You should see the code in this file: enfold > framework > php > class-gmaps.php (line 345):
avia_framework_globals.gmap_api = '" .$api_key . "';
I don’t really see any spaces within the code, can you give us a link to the page that uses google maps so we can take a closer look.
Best regards,
NikkoMay 30, 2018 at 10:33 am #964084Hi Nikko,
you’re great! I will never forget this file (in my case the code is placed on line 79)! The spaces are deleted and the maps are working like they did before.
Thank you sooooo much! :)
Best regards,
PetraMay 30, 2018 at 5:41 pm #964418Hi Petra,
Glad that we could help. :)
Just remember any modifications done in the parent theme (Enfold) will be removed during theme update, if the issue is still there on the next patch just apply it again.
Thanks also for using Enfold :)Best regards,
NikkoMay 30, 2018 at 5:44 pm #964421Hi Nikko,
yes, I know! No problem!
Many thanks again & best regards,
PetraMay 31, 2018 at 2:23 am #964594Hi,
Glad Nikko could help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
and the video tutorials here
And if there are features that you wish Enfold had, you can request them and vote the requested ones here
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘Google maps element not working’ is closed to new replies.