Okay
  Public Ticket #813007
Google Map
Closed

Comments

  • Andrew started the conversation

    Since the most recent salient update, we have been experiencing an issue with the google map element not displaying correctly. Please let us know if the issue is something on our end that is easily fixable. Before the most recent salient update we have not experienced this issue. "Oops something went wrong. This page is nt displaying google maps correctly. Please refer to javascript console for details." Checked javascript console and it has 2 messages about API key. Thank you for your time.

  •  8,406
    Tahir replied

    Hey ,

    The issue only applies to new domains where the maps script hasn’t been prior to June 22 of this year. This article explains it: https://www.latecnosfera.com/2016/06/google-maps-api-error-missing-keymap-error-solved.html

    If you’re on a current version of Salient you can add the key into the map.js file in the js folder. The line to mod should be near line 589 of the file -

    $.getScript('https://maps.google.com/maps/api/js?sensor=false&callback=mapAPI_Loaded');

    will become

    $.getScript('https://maps.google.com/maps/api/js?sensor=false&key=APIKEYHERE&callback=mapAPI_Loaded');

    Cheers


    ThemeNectar Support Team 

  • Michele replied

    Thanks for the info, it worked!

  • Marc replied

    Dear Support Team, 


    this hack didn't work out for me. I still get the error message after deploying the new map.js. 

    Do you have any indication when the theme update will handle the maps key?

    Thanks

    Marc

  •  8,406
    Tahir replied

    @Marc 

    Salient 7.5.01 is now available for Download on the Themeforest Download Page , Visual Composer has also been Updated to Version 4.12

    If you're upgrading from Salient VC 4.9.2, you'll need to delete the plugin from your plugins section in the WordPress admin panel before installing the current version (4.12) in Appearance > Install Plugins - This is necessary due to a bug in the Salient VC 4.9.2 which prevents regular updating.

    To get a list of Bug Fixes and new Feature addons in the Latest Theme update,  the changelog can be viewed here : http://themenectar.com/changelogs/salient.html .

    Update the theme by following this guide: https://themenectar.ticksy.com/article/3218/ . Visual Composer update instructions can be viewed here : https://themenectar.ticksy.com/article/5182/ .


    Best.


    ThemeNectar Support Team 

  • Alex replied

    I have a fresh install of 7.5.02 and I'm getting the same error. I have tried the fix below and still get the same outcome.

  • David replied

    Same issue:

    http://www.nijsje.nl/

    Map at the bottom of the page.

    I've tried modifying the script but still getting the same error.

    Any advice please


  • Marc replied

    Dear Tahir, 

    same problem reamins. 

    Have updated the  salient options with the mapkey and also allowed the url to be a referrer within google api settings. 

    Still the same problem.


    Happy for any hint to a solution,

    Cheers

  • [deleted] replied

    Thanks @Tahir

    Followed the steps you explained about the google API and it worked perfectly for me !

    :D

  •  8,406
    Tahir replied

    Salient 7.5.xx has a new Google Maps API Key Option Field in Salient Theme Options Panel -> General Settings where you can add the API KEy : http://prntscr.com/c2n1p5 . Therefore manually changing the line in map.js is no longer needed.  

    In order to use Google maps you need to generate an API key and enter it here - please see the official documentation for more information and steps to troubleshoot .

    Also be sure clear your cache using this guide: https://themenectar.ticksy.com/article/6226/ where applicable

    Best.


    ThemeNectar Support Team