Forum

Thread tagged as: Question, Field-Types

I mean the map field which shows the map is now replaced by a grey window and the text 'Oops something went wrong' - and if I inspect the console, I'm getting an error saying API Key missing message.

MissingKeyMapError is the error

Drew McLellan

Drew McLellan 2638 points
Perch Support

I can't reproduce that.

OK,

Can I hard code the API key into the core somehow, for now?

I could just add it to the string in the add_foot_content() method. Line 1658 of PerchFieldTypes.class.php ??

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, download 2.8.30 and set the key in your config.php file.

define('PERCH_GMAPS_API_KEY', 'abc123');

Thanks Drew!