Maps

Has anyone gotten the map part to work?

I get led to the following errors:

MissingKeyMapError Error
The script element that loads the API is missing the required authentication parameter. If you are using the standard Maps JavaScript API, you must use a key parameter with a valid API key. If you are a Premium Plan customer, you must use either a client parameter with your client ID or a key parameter with a valid API key.

SensorNotRequired Warning
The sensor parameter is no longer required for the Google Maps JavaScript API. It won’t prevent the Google Maps JavaScript API from working correctly, but we recommend that you remove the sensor parameter from the script element.

NoApiKeys Warning
The script element that loads the API has no API key. Please make sure you include a valid API key as a key parameter. You can generate a new API key on the Google API Console.

See Obtaining an API key.

See the picture to see the key is entered.

Thanks for any help.
John

There is a solutions here:
Fixed - Error message in display maps. Added Google Maps API Key field. by daniel-samson · Pull Request #2536 · salesagility/SuiteCRM - https://github.com/salesagility/SuiteCRM/pull/2536

1 Like

Greetings,

I appreciate this answer. Unfortunately, I could not find in the Admin area where I would add that field. Is it something that has to be hardcoded into the files? Might this be a change in the next upgrade?

Thanks again. I’m learning alot.

John

This is a fix that requires changing your files.
The link include the changes required.
https://github.com/salesagility/SuiteCRM/pull/2536/commits/59881fba0a4ae05fc1d624a98ab350c49a1ed637

Else you need to wait till this fix is included in the next version

Dumb Question:

Do I use the code shaded in green or pink? There are some prefix difference.

Here is an example

Pink: -

Please consider donating to this project!

Green: +

Thanks again.

John

red (minus signal) = line to be removed
Gree (+ signal) = line to be added

The minus and plus signals are only markers on github, they are not to be placed in your file.
You can also hit the button “Vie2” and then “RAW” to copy all content and paste it to replace the content of your your local file

Note: make copies of each file!

2 Likes

hi

thank you @horus68 it’s ok for me with your folders. But what i write in this field ?? ??

https://www.dropbox.com/s/6pqkjleqr5q4516/Capture%20d'écran%202017-04-17%2022.10.03.png?dl=0

First you need to get a Google Map key
https://developers.google.com/maps/documentation/javascript/get-api-key

Then you need to implement 2 PR fix available here (code skills needed):
https://github.com/salesagility/SuiteCRM/pull/2536

Else you have to wait for those PR to be merged in the next SuiteCRM version