I use Geofield Gmap as Field in a Content Type. When I want to Add Node The -MAP- field display Error message

"Oops! Something went wrong this page didn't load google maps correctly. See the javascript console for technical details."

enter image description here

How can I solve it?

BS: I already create API key For google map


I try to apply a patch, I go to DIR sites/all/modules/geofield/modules/geofield_map

Then I applied Like this

patch -p1 < https://www.drupal.org/files/issues/fix-api-key-not-being-used-2746209-5.patch

I see this message:

No such file or directory

  • You either download the patch locally or manually apply the changes yourself. – Kevin Mar 8 '17 at 16:22
  • @Kevin but nothing wrong with my Command? – a.alshamiri Mar 8 '17 at 16:26
  • You can also use an IDE to apply a patch, such as PHPStorm, if CLI is giving you trouble. – Kevin Mar 8 '17 at 16:27
  • see my update in the answer – Adrian Cid Almaguer Mar 8 '17 at 16:41

Usually you see this message when you don't have in the Geolocation module the Google API Key or the Google API Key is not working well. For this you need to go to:


Write your working Google API Key and save the Configuration.


To apply the patch you need download the file to:


then go to the dir and run:

patch -p1 < fix-api-key-not-being-used-2746209-5.patch
  • I just update my post – a.alshamiri Mar 8 '17 at 16:17

You can possibly solve it by looking at the JavaScript console for technical details. Click on F12 and view the JavaScript error.

EDIT: If you got a missing key map error, then it is probably misconfigured and you should find a solution here.

  • 2
    Please not that your answer showed up in the "low quality posts" review queue. Can you think of a way to somehow improve it? That would reduce the risk it gets deleted via moderation. Good luck! PS: why not at least some "possible causes" (even if they are only guesses) what might be causing it)? – Pierre.Vriens Mar 7 '17 at 16:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.