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.
Hi,
just updated from the 7.1 branch to 7.2.4 and all my markers vanished. The error log was showing that
http://'domain'/'page-name'/sites/default/files/js/gmap_markers.js
was not there [404].
Quick check in the http://'domain'/sites/default/files/js/ directory showed that gmap_marker.js was there.
In gmap.module, line 352, I have changed the orignal code:
$ret[variable_get('file_public_path', conf_path() . '/files') . '/js/gmap_marker.js'] = array(
to:
$ret[base_path() . variable_get('file_public_path', conf_path() . '/files') . '/js/gmap_markers.js'] = array(
The gmap_markers.js file looks to be created on line 624:
$file = file_save_data($contents, 'public://js/gmap_markers.js', FILE_EXISTS_REPLACE);
and now my markers are now showing up.
Have I misunderstood this and not set something up correctly and edited the module to fix my error?
Thank you for your help,
ice70
Comments
Comment #1
podarok#1931138: Fixing all 'single marker' issues duplicate