It seems that the GMap module creates a file at sites/default/files/js/gmap_markers.js, but then it calls for a file called sites/default/files/js/gmap_marker.js (note the difference in pluralism in the file name). I had this same problem as these guys, but none of us could find the solution:

http://drupal.org/node/1932288

GMap spits out errors all day long that read:

"Page not found: sites/default/files/js/gmap_marker.js"

If I flush the js directory and regenerate the GMap marker cache then I get a message that indicates everything will be fine, but then the file is still not named correctly. I have also checked that the directory and file permissions are correct, and they are.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jlemmon’s picture

It seems that this has been fixed in at least the most recent development version. However, in Version 7.x-2.4 you might take a look at line 352 of the gmap.module file, where it reads:

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

Try changing this to:

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

ggarry’s picture

ggarry’s picture

Pretty sure its no leading slash that is causing it.

"Page not found: sites/default/files/js/gmap_marker.js" should be "Page not found: /sites/default/files/js/gmap_marker.js"

http://drupal.org/node/1944692

johnv’s picture

Please try -dev version. Most probably it will fix your problem.

podarok’s picture

Version: 7.x-2.4 » 7.x-2.5-beta1
Status: Active » Closed (works as designed)

tag beta release

reeller_sk’s picture

Actually in dev version is still bug. Here is a patch. Problem is missing base_path at url start.

podarok’s picture

Version: 7.x-2.5-beta1 » 7.x-2.x-dev
Status: Closed (works as designed) » Needs review

bot?

Status: Needs review » Needs work

The last submitted patch, gmap-marker_js_fix.diff, failed testing.

podarok’s picture

patch introduces a Undefined index bug

reeller_sk’s picture

If you see the file bugs are there already, in patch is only change the beginning slash changed to base_path function.

johnv’s picture

@podarok, the test errors in "Location Gmap Find Address button checks" are a general error. They exist in every patch the last few weeks.

podarok’s picture

#11 any patch can fix the bug with ternary operator for undefined index in
Undefined index: user_latitude Notice location.module line 692 location_locationapi()
We shouldn`t commit any changes and bug fixes without fixing that
Tests developed for quality and fixing bugs , not for skipping errors introduced by any previous developers
Better do not commit bug fixes, than ignore tests

johnv’s picture

@#12, hmm, IMO a patch should only address the issue at hand. We should open separate issue for this other test error.

podarok’s picture

#13 right

seaneffel’s picture

#3 The leading slash was copy/pasted poorly from the original error log, so the sample error message shouldn't be taken literally. I believe the problem is the call to the name of the file, from plural "markers" to singular "marker".

I've tried the dev version and it no longer throws the error for incorrect file path, but it also no longer displays the markers on the map.

johnv’s picture

Status: Needs work » Needs review

#6: gmap-marker_js_fix.diff queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, gmap-marker_js_fix.diff, failed testing.

podarok’s picture

#6 needs reroll

reeller_sk’s picture

Status: Needs work » Needs review

#6: gmap-marker_js_fix.diff queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, gmap-marker_js_fix.diff, failed testing.

johnv’s picture

Status: Needs work » Fixed

IMO we should close this issue. The original error (marker.js vs. markers.js) is resolved.
The remaining error is equal to #1218870: Marker managers give wrong path to marker icon when Drupal is not installed at root
That should handle the subdirectory-issue in 2 or 3 locations.
Then all these duplicate issues should be closed.
Let's continue at #1218870: Marker managers give wrong path to marker icon when Drupal is not installed at root

reeller_sk’s picture

Status: Fixed » Needs work
FileSize
476 bytes

Here is the patch from #6 on new codebase.

reeller_sk’s picture

Ok, so I will post the new patch in that thread also.

podarok’s picture

Status: Needs work » Needs review

You should set needs review for bot`s tests

podarok’s picture

Category: bug » support
Status: Needs review » Closed (duplicate)