Tagged: enfold, google maps
-
AuthorPosts
-
January 26, 2018 at 8:15 pm #903504
Hi,
up to some time ago my google maps in my site worked fine, a week ago a friend made me aware that “uups, an error accured…” is now shown on grey field instead.
I red and tried all threads I could find on the subject, but I don’t get the maps to work. I did not modify my .php files though as described in some early comments, because I suppose that kriesi fixed the problem in the time since (2016/2017).
I created API project in described way and in all other possibile ways and created unrestricted google maps java APIs.
I then inserted the API (s) into the related google service field in the Enfold child theme. No cache plugin active. I flushed the browser cache and also used different browsers. No change.
A website-building friend of mine put his certainly working API into the field, but no positive result either.
Wordpress is up to date (4.9.2) and Enfold is at newest version. (4.2.2)
I noticed in the java console that there is always a different API key shown in the error message than the ones I entered. Maybe this is a hint for debugging.
I will add access to my website in private content part of thread.THANK YOU for helping, I hope you will find the problem.
Hear you,
HolgerJanuary 27, 2018 at 1:48 pm #903667Hey hoqui,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.Best regards,
NikkoJanuary 30, 2018 at 5:36 pm #905015Hi Nikko,
sorry didn’t get notification of your almost immediate reply.Thank you. I already put the credentials of access in private section of URL in my first request.
But I have good news: Problem resolved!!!
I found this piece of code in function.php of childtheme – no idea who put it there or how it came there. I just cancelled this function and everything works fine.
function ava_googlemaps_apikey() {
$prefix = is_ssl() ? “https” : “http”;
wp_deregister_script(‘avia-google-maps-api’);
wp_register_script( ‘avia-google-maps-api’, $prefix.’://maps.google.com/maps/api/js?key=AIzaSyAidX34J-pkIHmOUFdVrt05MpzDHz-VZUk’, array(‘jquery’), ‘3’, true);
wp_enqueue_script(‘avia-google-maps-api’);
}
add_action(‘init’, ‘ava_googlemaps_apikey’);Thank you anyways for your help.
January 31, 2018 at 5:11 am #905342Hi,
Glad that the problem has been resolved, you can remove the login since it’s already fixed. Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Don't get Google Maps to work (API-problem, no solution in other threads)’ is closed to new replies.