Jump to:
| Project: | GMap Module |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I read very different reason about the "js"-message but could not find a solution for this by now.
case a) a node with the [map]-tag in a field -> which is working on all tested browsers
case b) a node which embeds an advanced teaser-display with tabs, created with field group -> js-message on all browsers
case b1) like case b, but with an additional [map]-tag in the body-text which leads to different results in the browsers, see attached image.
In Firefox now both maps are displayed and in chrome/safari there´s still only the js-message.
Any suggestions what could Chrome/Safari prevent from loading the js-script?
Int the reports-log I got this error:
The file permissions could not be set on public://js/gmap_markers.js.
But event with "777"-permission the behavior in Chrome/Safari is the same.
The JS-Errors from Safari:
sites/mori.drupal7.dev/files/js/js_3N5PThufzpvketuFM1tu2n0fHdRB8WVQl9SvnA1ykco.js:2145TypeError: Result of expression 'Drupal.gmap' [undefined] is not an object.
sites/mori.drupal7.dev/files/js/js_AbCp48-ZIeBRb6GtQNFKRpVJ1OL8_uj1fnhvrNAu-Dw.js:10TypeError: Result of expression 'Drupal.gmap.map' [undefined] is not an object.
| Attachment | Size |
|---|---|
| 20101205_gmaps-ff-saf.jpg | 127.36 KB |
Comments
#1
With Aggregation off for js I got these errors:
sites/mori.drupal7.dev/modules/locationbasedservices/gmap/js/icon.js?lczicy:70TypeError: Result of expression 'Drupal.gmap' [undefined] is not an object.
sites/mori.drupal7.dev/modules/locationbasedservices/gmap/js/marker.js?lczicy:10TypeError: Result of expression 'Drupal.gmap' [undefined] is not an object.
sites/mori.drupal7.dev/files/js/gmap_markers.jsFailed to load resource: the server responded with a status of 404 (Not Found)
#2
Really weird.
I deleted all files in the "/files/js"-folder, which also resulted the 404-error from above.
Then I placed the "gmap_markers.js" back and reloaded the page in Safari and now it WORKS !!!!
Finally this issue can be closed if noone has additional comments.
#3
Besides these 2 errors still exist:
TypeError: Result of expression 'Drupal.gmap' [undefined] is not an object.
sites/.../gmap/js/icon.js?lczicy:70
TypeError: Result of expression 'Drupal.gmap' [undefined] is not an object.
sites/.../gmap/js/marker.js?lczicy:10
#4
And I still don´t know which js-file is missing if I don´t embed the additional [map]-tag in the body-text.
#5
#6
When I activate "Aggregate JavaScript files." again it stops working with Chrome/Safari.
Bug of Drupal Core?
#7
Sometimes I get the message "Java script is required...", but it is not reproducable. Refreshing the page helps me.
I do get the error "The file permissions could not be set on public://js/gmap_markers.js.".
From the code in gmap.module, it seems I have to provide a directory or file with that name.
#8
I get the "The file permissions could not be set on public://js/gmap_markers.js" error when I clear the cache in drush.
#9
@dafeder I ran into the same issue. I found that if I removed the gmap_markers.js file and tried again it was being generated as the user calling drush rather than as apache. I don't think it will cause any issues unless you have your crontab configured to use drush instead of wget, and if so just delete the file and let drush cron regenerate it - it won't generate the error on subsequent drush cron runs.
#10
@drasgardian, did you delete the gmap_marker.js file from gmap/js/gmap_marker.js?
thanks
#11
@socialnicheguru, thats not the one.(see also the lacking s in the filename) . The correct one is in sites/all/files.
#12
I had this problem in Chrome and after reading the posts above I deleted the gmap_markers.js file in sites/default/files/js, cleared the caches and runned the cron.
Before clearing the caches the owner of the file was my webroot user and the group apache and after it was regenerated both owner and group were apache. I think that was the actual problem.
#13
Confirming that #12 worked for me also - thanks.