I couldn't get the marker displayed on the Gmap- 7.x-2.6 on fresh Drupal install ver 7.22. After trying all the solutions in the issue queue. I tried downgrading the Gmap version and finally after trying all the versions, was able to get the markers working on Gmap-7.x-2.5-alpha2. So is there an issue with the newer versions on Gmap and anyone else had the same issues with the new version.

Comments

JulienF’s picture

Status: Active » Patch (to be ported)

I had the same problem and solved it by changing the Line 270 in the gmap.module file

from:
$ret['/' . variable_get('file_public_path', conf_path() . '/files') . '/js/gmap_markers.js'] = array(

To:
$base = base_path();
$ret[$base . variable_get('file_public_path', conf_path() . '/files') . '/js/gmap_markers.js'] = array(

It basically take the root path of the website to load the gmap_markers.js file from, in some situations where the website isn't in the Apache root directory the path given is wrong, it can be solved by changing the Public File Path in the configuration of the website but this will then break the Image style and other elements properly setting the path of file.

This small change solved it on my fresh Drupal 7 instance.

Cheers,

seanmrafferty’s picture

Solution #1 from JulienF solved it for me in 7.x-2.6. Problem is fixed in 7.x-2.7-rc1. Thank You!

rantee’s picture

Thanks, JulienF. Fixed the issue for me as well after much frustration and previously successful installations.

JulienF’s picture

You are welcome!

jorgedevillalba’s picture

It´s ok the solution for me. i´ve changed the line 270 in the gmap.module file as you say and It works. Great !!! :)))

podarok’s picture

Version: 7.x-2.6 » 7.x-2.x-dev
Category: bug » support
Status: Patch (to be ported) » Closed (duplicate)

should be fixed in latest dev version and duplicate of #1931138: Fixing all 'single marker' issues