Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anthony 6 posts 76 karma points
    Aug 07, 2018 @ 14:34
    Anthony
    0

    Change Google API Key?

    How do you change the API key being used? Cannot find the source.

    Recent google data/quota usage changes means maps are not functioning based on original api key.

    website: www.redkangaroo.co.uk

    Console error: You have exceeded your request quota for this API.

    Key being parsed in source:

    "https://maps.googleapis.com/maps/api/js?v=3&libraries=places&callback=TerratypeGoogleMapsV3CallbackRender&key=AIzaSyBHNCz5l9xxAZq3vYtYt-IhWSGFvnbMKUU&language=en"

    Unsure where this is being specified. Have a key to replace it.

  • Jonathan Richards 288 posts 1742 karma points MVP
    Aug 07, 2018 @ 16:22
    Jonathan Richards
    0

    Hi Anthony,

    You define the API Key when you first create the Terratype. Its in the Developer section under Data Types. Enter your new key, click retry to test your key and wait a few seconds to see results.

    Terratype config

    Cheers

    Jonathan

  • Anthony 6 posts 76 karma points
    Aug 08, 2018 @ 10:05
    Anthony
    0

    Hi Jonathan,

    Thanks for the reply.

    Unfortunately I do not see that in the view, see below.

    Screengrab

    I have no other references to Terra in here.

    Thanks

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Aug 08, 2018 @ 10:39
    Nik
    0

    Hi Anthony,

    It looks like the providers aren't loading properly for you in the back office. Hence why you are seeing all the settings missing. What version of TerraType are you using?

    If you desperately need to fix it, I believe you could change the value directly in the database, but it is risky. The value will be stored somewhere in the following table: cmsDataTypePreValues but you'll need to find the right entry. CAUTION THIS IS RISKY

    Cheers,

    Nik

  • Anthony 6 posts 76 karma points
    Aug 08, 2018 @ 10:41
    Anthony
    0

    It's version 1.0.13.

    Would an uninstall/re-install be an option i.e will the local settings be retained and maps unaffected?

    Thanks

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Aug 08, 2018 @ 10:57
    Nik
    1

    I would look to do an update of TerraType. I would not uninstall and re-install.

    It's bug that sometimes the providers don't load in time and I know Jonathan has released various updates some of which were aimed at resolving this. TerraType is now on version 1.0.19.

  • Anthony 6 posts 76 karma points
    Aug 08, 2018 @ 10:58
    Anthony
    0

    OK - are there any guidelines relating to performing an upgrade? Thanks.

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Aug 08, 2018 @ 11:02
    Nik
    0

    I'm not sure, you'd have to check the package page, and the release notes on github :-) I don't "think" there are any issues with just upgrading.

    How have you installed the package? Have you used NuGet?

  • Anthony 6 posts 76 karma points
    Aug 08, 2018 @ 11:03
    Anthony
    0

    I didn't - it's wholly inherited and the issue with maps not displaying (linked to api key data usage) is what's caused me to look at the plugin - for the very time.

    Guidance is certainly appreciated.

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Aug 08, 2018 @ 11:06
    Nik
    0

    Okay, so if you aren't sure how the package was installed I'd check the following:

    1) Check in the packages.config to see if it was installed via nuget. (Assuming you are looking at the complete source of the website) 2) Check in the "installedpackages.config" located in the App_Data/Packages/Installed path to see if it is listed there.

    If neither of these tell you that the package is installed, I would take a full backup of the website and database and then try installing the package via nuget.

  • Anthony 6 posts 76 karma points
    Aug 08, 2018 @ 13:21
    Anthony
    0

    Hi Nik,

    Checked and nothing there.

    Installing the package via nuget will update the current build or will it cause a conflict?

    Thanks

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Aug 08, 2018 @ 13:30
    Nik
    0

    Hi Anthony,

    I can't say for 100%, but I think it should update the current build. You'd have to test it just to make sure.

    Cheers

    Nik

Please Sign in or register to post replies

Write your reply to:

Draft