Tagged: Google Maps API
-
AuthorPosts
-
September 13, 2023 at 8:36 pm #1419087
We have over 20 sites that use Enfold and the Google Maps function has stopped working on all of them. We’ve updated to the newest version of Enfold and had Google tech support confirm that the API keys are set up properly (with unique projects and billing accounts). But when we enter the Google Maps API key “to use all map related theme functions” we get this error message “Could not connect to Google Maps with this API key”.
Google tech support tells us that the theme is using an outdated version of JavaScript, and that version 3.52 is the minimum required, with versions 3.53 or 3.54 recommended. Can you please investigate and provide a fix?
Thank you!
September 13, 2023 at 8:53 pm #1419088September 14, 2023 at 4:31 am #1419116Hi,
Thank you for the inquiry.
We’ve found the following error in the console when we visited the site.
avia-footer-scripts-30bb9e63cf52c72335ca16cee6f2e435—6500d6df91d12.js:1 Failed to load resource: the server responded with a status of 404 ()
We temporarily disabled the Enfold > Performance > File Compression settings to get rid of the error above and this seems to have fixed the issue with the Google maps.
Best regards,
IsmaelSeptember 14, 2023 at 5:48 pm #1419181btw: I had a similar experience last week. Everything that was working fine was suddenly showing up as broken on the pages. What I had not considered was that I had changed my bank details in the meantime, but had not updated them on Google. Trivial – but with a big effect.
next: you can exclude some scripts (or css) from merging by:
function avia_exclude_files_from_compression($excluded_files){ // exclude css $exclude_css = array( 'layerslider', 'abc', 'xyz'); // comma separated list of enqueue names $excluded_files['css'] = array_merge($excluded_files['css'], $exclude_css); // exclude js files $exclude_js = array( 'avia_google_recaptcha_front_script', 'abc_script'); // comma separated list of enqueue names $excluded_files['js'] = array_merge($excluded_files['js'], $exclude_js); return $excluded_files; } add_filter('avf_exclude_assets', 'avia_exclude_files_from_compression', 10, 1);
f.e. in combination with my borlabs cookie plugin – i had to exclude the recaptcha script of google to work fine:
avia_google_recaptcha_front_scriptSeptember 15, 2023 at 3:07 am #1419216Hi,
Thank you, @Guenni007! Your suggestion to exclude assets seems like a very good idea.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.