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

podarok’s picture

Version: 7.x-2.4 » 7.x-2.x-dev
Category: bug » support
Status: Active » Closed (duplicate)