Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1099413
    eajuwon
    Participant

    So I tried this on our school site: http://rccgmountzion.com

    I added this code:

    `wp_register_script( ‘vendor-google-maps’, ‘https://maps.googleapis.com/maps/api/js?key=MY KEY HERE’ );

    to the end of the file, and got an error which was this:

    Fatal error: Call to undefined method WPaaS\Cache::flush() in /home/content/n3pnexwpnas01_data02/33/3462933/html/wp-content/mu-plugins/gd-system-plugin/includes/admin/class-file-editor.php on line 124
    Would appreciate any help you guys could offer…

    Thanks!

    #1099608
    Rad
    Moderator

    Hi there,

    What file? The error is from your mu-plugins.

    And you don’t have to do that, in cornerstone 1.3.0, you can just add API Key as map element’s option.

    Thanks!

    #1166979
    Guillermo
    Participant

    Hello,

    I am trying to fix the map problem following the instructions in this post. When I add the suggested code to my functions.php, the site get a fatal error.

    Added code in the last part of Functions.php of my child x theme:

    function my_add_frontend_scripts() {
    wp_register_script( ‘cs-google-maps’, ‘https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY’);
    wp_enqueue_script( ‘cs-google-maps’ );
    }
    add_action(‘wp_enqueue_scripts’, ‘my_add_frontend_scripts’, 100);

    I want to fix the problem of the maps not showing.

    Thanks

    #1167528
    Rupok
    Member

    Hi @guillermo-ahliggmail-com

    You don’t need to do so as you can provide the API Key on Cornerstone elements directly. Let’s update your Cornerstone to latest version.

    Cheers!

    #1222816
    Luke F
    Participant

    Hi folks,

    I’m getting the “MissingKeyMapError”. The API is correct and active (it seems) and I’ve got it placed in the Map Element. Is Cornerstone not passing the ‘key=’ component?

    You can see it yourself here: http://fitzgeraldsstpaul.com/testing/

    Thanks.

    #1222832
    Joao
    Moderator

    Hi Luke,

    Please watch this 2 minutes video to make sure you have setup your API correctly.

    Thanks

    Joao

    #1222884
    Luke F
    Participant

    Thanks Joao. I created a new API, but received the same error message.

    The new API is being used at http://fitzgeraldsstpaul.com/testing/

    Any ideas?

    #1223344
    Rad
    Moderator

    Hi there,

    I checked your site and I don’t see any key either. It could be due to cache, please clear your cache and disable it then test it again.

    Thanks!

    #1233610
    VERTENT
    Participant

    “You don’t need to do so as you can provide the API Key on Cornerstone elements directly.”

    What do you mean by this? Is there an easy way to input our API Key from google without creating child themes or editing files?

    EDIT: After deciding to move on, I found the place to input the API key in cornerstone. Thanks 🙂

    #1233644
    Joao
    Moderator

    Hi There,

    If you are using Cornerstone you have a field on the Google Maps Element where you can insert your API Key.

    Hope that helps

    Joao

    #1340372
    petertheosbg7
    Participant
    This reply has been marked as private.
    #1340678
    Rad
    Moderator

    Hi Peter,

    Please start a new thread and provide your login credentials in private reply 🙂

    It’s behind a coming soon page, we could only check it by logging in.

    Thanks!

    #1399754
    kingdom
    Participant
    This reply has been marked as private.
    #1400118
    Rad
    Moderator

    Hi @kingdom,

    Please provide your site’s URL as well.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1058318 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>