map shows up, then disappears, emptying the cache makes it reappear
Ian Ward - February 8, 2007 - 19:57
| Project: | GMap Module |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I made a gmap by just sticking a macro on a page to test if it is working. It works initially, like right after submitting the node, but then when I refresh the page again, the map disappears.
When I then go down to the devel module's block, and hit "Empty cache" and the page refreshes the map reappears. Upon refresh again, it disappears. This repeats consistently. Though, the map on the build macro page seems to work ok.
There is one javascript error that repeats twice -
too much recursion
[Break on this error] Drupal.extend.apply(this[i], [obj[i]]);
I know 5.0 is still under development. Let me know if there is anything else I can do to test.
Thanks,
Ian

#1
I think you pulled at a bad moment. I was probabaly in the middle of changing the attach method around that time. Please try again with a newer revision.
Thanks,
--Brandon
#2
Sorry I did not get back to this until now. I discovered this was because the filtered HTML was set to cache, this was set somehow, and so the gmap filter was not getting run through check_markup. I cleared the cache_filter table and this fixed it. I am not sure if there is a problem w/ the code itself or this was a coincidence w/ something i did in particular on my site. Anyone know? In any case, I got it working.
#3
I just had the same problem using the 4.7 version of the module. On refresh the map would disapear and I would get a javascript error in my Firebug debugger. My guess is that the javascript files needed are not getting loaded on refresh. By changing the setting for "Google Map method" to static rather than dynamic the problem was solved (but the bug remains).
I hope this helps towards a fix.
Rick
#4
Although the interface for setting the google map method still exists, it is not currently honored by the code.
The problem on 4.7 is likely to be the google map method. The 5.x version just makes the filter uncacheable (which needs a cache_filter clear to pick up.)
The 5.x method is basically "Dynamic," with a few filter modifications to make it work more reliably.
#5
I'm also having the same problem with the map disappearing on a drupal 5.1 site. I believe I have the the lastest version of the gmap module installed.
/* $Id: gmap.module,v 1.51.2.68 2007/03/14 18:11:00 bdragon Exp $ */
Is there still a bug being worked out or is there a different version of gmap that I should be using?
Roger
#6
I'm having the same problem, using the latest version:
/* $Id: gmap.module,v 1.51.2.71 2007/04/28 15:58:23 bdragon Exp $ */
Getting the same drupal.js error described above:
too much recursion[Break on this error] Drupal.extend.apply(this[i], [obj[i]]);
#7
I only see a map after a node is saved and when it is loaded for the first time. After a page refresch or another second page request (from another host for example) the map disappears. The reason for that is that the script tags for the gmap are not rendered. Probably a cache issue...
I use Drupal 5.2 with GMap-5.x-1.x-dev
#8
Stol: Please try again with the next snapshot, I had broken macros a couple days ago and just fixed them.
#9
Hi bdragon
I tried today with version 1.51.2.93 but no succes. If I clear the cache the map will appear once but that's all.
I cleared out that the private function _gmap_doheader() is only passed one time, so once cached this function isn't called anymore.
Can you replicate this or is it a kind of interdepency with other contributed modules ?
Regards
Stol
#10
Stol: OK, how about this, then:
Go to your input formats, and edit and save your filter or filters that have the gmap filter enabled.
#11
Hi bdragon
I figured out that the first reinstallation I did was not correct. After I reinstalled the latest snapshot a second time but now right my gmap worked again. So your first suggestion was right. Thank you very much and my apologies for the confusion.
Regards
Stol
#12
#13
#14
i added new key words to my 9 listings in top 10 google map. a week ago they all disappeared- nowhere to be found. i downsized my listings to 4 and eliminated all the key words i had added, i only left google built in key words; still my listings do not appear in google map.
what is my alternative? how long will it take for my remaining 4 listings to appear again in google map?