Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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!

    #1419088
    #1419116

    Hi,

    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,
    Ismael

    #1419181

    btw: 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_script

    #1419216

    Hi,

    Thank you, @Guenni007! Your suggestion to exclude assets seems like a very good idea.

    Best regards,
    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.