Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Both the dev and latest beta2 branches still have the following code present. This causes gmap to fail at the first hurdle.
The following was reported by fizk @ http://drupal.org/node/1459606#comment-7229306
<?php
function theme_gmap($element) {
// Usability: Prevent js errors on first visit to settings page, etc.
// Of course it will still error if the *wrong* key is on file.
if (gmap_get_key() == '') {
//return t('Unable to render map: Google Maps API key is missing.');
}
?>
And solved with the patch posted by hutch @ http://drupal.org/node/1459606#comment-7252646 but it seemed to have got swallowed up in the large issue so I am reposting.
Patch: http://drupal.org/files/gmap_missing_key_bug-1459606.patch
Comment | File | Size | Author |
---|---|---|---|
#1 | gmap_missing_key_bug-1459606.patch | 552 bytes | podarok |
Comments
Comment #1
podarokbot testing
Comment #2
hutch CreditAttribution: hutch commentedpatch in #1 tested and it works. This needs to be commited as it is preventing sites from working now.
Comment #3
podarok#1 commited pushed to 6.x-2.x-dev
thanks!!!