Forum

Thread tagged as: Problem, Error, Api

Google Maps API Problem

Hi there,

I've updated my perch core to the latest version, Perch: 2.8.32, and having problem getting API to display.

I've tried 3 google API keys, with no restrictions, and still receiving an error that the API code isn't valid, are there any updates that I may have missed outside the core?

Live page

Andrew Cetnarskyj

Andrew Cetnarskyj 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't see the key in your page. Are you sure you've saved the content since adding the key?

Hi Drew,

I see in the console it says invalid key but in my live site settings I have

Perch: 2.8.32
Production mode: Production (100)
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32), perch_blog (5.0), perch_forms (1.8.3), perch_gallery (2.8.6)

PERCH_GMAPS_API_KEY: AIzaSyDEvfdYFaV8NNvPXE36E0BFqFxheNZF1e4

I also republished the map on the site and regenerated a new API

Any suggestions of what I else I could try?

I have another site on same version and map works fine so now sure what I have missed here.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I still don't see the key in your page. Have you clicked Save on the region containing the map?

Hi Drew,

I finally managed to get it after regenerating api key and saving the template a few times and re adding. Not sure what happened but sorted it now.

Thanks