Duplicate map detected! GMap does not support multiplexing maps onto one MapID! GMap MapID: map109
I only have one map one the page..
Any one have any hints...
---
J.
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | gmap-id.jpg | 251.15 KB | Freakachoo |
Duplicate map detected! GMap does not support multiplexing maps onto one MapID! GMap MapID: map109
I only have one map one the page..
Any one have any hints...
---
J.
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | gmap-id.jpg | 251.15 KB | Freakachoo |
Comments
Comment #1
computer_jin commentedAny idea how to solve this duplicate error ?
Comment #2
keesee commentedsorry, I usually post fixes as I find them. It turned out that I was using contemplate for both the teaser and node displays. The duplicate map error is because the node was loading both the teaser and the node. Several modules do this. In my case it was nodewords. hope this help you trouble shoot your problem.
--
J.
Comment #3
yngvewb commentedAny progress on this error? I get this error message in D5.
Comment #4
brisath commentedSubscribing.
I had to deactivate nodewords to get my map to display.
Comment #5
autoberater commentedYes I have the same problem, when I turn off nodeword everything works.
Is there any soloution to solve this problem, without turning off nodewords module?
Comment #6
Mika Heineken commentedDrupal 6.14
Same problem here! Only with a different module - Page Title 6.x-2.2
Posted a new issue : http://drupal.org/node/604484
Comment #7
Mika Heineken commentedPage Title and Nodewords modules are important for SEO. It's really difficult to make a choice between having a search engine friendly website or working Google Maps. Can someone please take a look at this issue?
Comment #8
szy commentedTrackfield module got it too.
Szy.
Comment #9
keesee commentedFor Nodeword, there's a setting that that asks if you want to load the node teaser. Disable it. Should work as it won't be load 2 maps with the same ID.
Off the top of my head this might be a FIX ALL....
For the node type that has a map, over ride both the teaser and node templates (using contemplate or hard-disk node.[node-type].tpl templates).
Make sure they both have different ids.... example (first line of each array).
NODE ---
TEASER---
You'll obviously have to add all the other field for that content type if you haven't already.
Let me know if this works. Curious. But, it should fix the duplicate id error for any module that loads both teaser and node...
Comment #10
Mika Heineken commentedCorpX,
Thank you for posting this. Unfortunately, my PHP skills do not allow me to try your solution. Hope it works for someone else. Will keep waiting for a new Gmap version, hopefully it is not far away (the last time I checked they rolled back to v.1.0).
Comment #11
summit commentedSubscribing, having same issue using contemplate..greetings, Martijn
Comment #12
boabjohn commentedGreetings: not sure where the problem is coming from, but it just popped up for me when I installed and ran the first linkchecker (http://drupal.org/project/linkchecker) scan on a D6.15 site:
The site does make extensive use of GMaps, but I'm not sure what the reference to "nodemap" actually means.
Comment #13
keesee commentedHey folks. take a look at #9. What I've noticed is that - especially using contemplate, most of us tend to just copy and past code into the node and teaser areas and hope that it works. it well unless you have a module installed that needs to load the teaser in addition to the node that you are viewing. In this case, since you've copied the same code drupal is essential tring to load 2 maps to the same map ID.
If you look at the first element in the arrays above you'll see that they've been changed so that the ids are different.
otherwise is the same snippet. now if the teaser and node are loaded they have 2 different IDs. Hope this helps. This also impacts those using files for themeing and its essentially the same as using contemplate.
Comment #14
gavin_o commentedYou might often want a Gmap on the same node as a URL which uses the Link module: http://drupal.org/project/link (like a "Contact" page!).
The trouble is, if a Link field is present you get this Duplicate Map error again. So it's quite a problem.
Going by the multiple reports it certainly does seem to lie with Gmap rather than with other modules...
Comment #15
summit commentedSubscribing, having the same..
EDIT: Working solution is adding
to the Gmap ID as stated above!
greetings, Martijn
Comment #16
askibinski commentedsubscribing, having the same using trackfield module (not using page title or nodewords by the way).
I don't see anything wrong with the code in the trackfield module:
Also tried the latest -dev of gmap, same results.
Comment #17
fabiavmz commentedI faced this problem to. What I have is a node and in it you can reference various nodes containing a Gmap. If you reference twice the same node, it appears the error
I am using a template to draw the nodes that contains a Gmap and debbuging the code I saw the problem is taht when calling to ther function to get the map, you have to pass a parameter as the map ID, so if you use the node ID it will be duplicated.
To fix it, I have used PHP rand() function to get a random ID to generate the map:
Code needed in node-CT.tpl.php is:
Code needed in template.php:
Comment #18
ehikr commentedAnyone figured this one out yet?
I'm using trackfield with no problems, but get this error when i add a cck link.
Tried giving different id's to node and teaser versions in node-CT.tpl,php (see #9 above), but that didn't work.
Tried latest dev version, but that didn't work
Surely someone is using gmap and links on the same node - so how'd you do it?
Comment #19
ice5nake commentedHaving the same issue with a custom module I wrote. This is really weird. I get the error 5 times:
Duplicate map detected! GMap does not support multiplexing maps onto one MapID! GMap MapID: gmap-1897-a7c37d8c590f903b4b30185fe7e3cd56
Here's part of the code
If I comment out the function call to venued_events_get_map_output the error goes away. The really weird thing that's not event the code segment being executed on the page. The page is executing the else portion. This makes me insane.
Here's the code that makes the map
Comment #20
Freakachoo commentedGuys!!! Awesome! I think i find the solution (or maybe just one of the solutions).
In settings of block of Location there is "Map Macro" field (see screenshot).
There is id=usermap setting.
Need to DELETE this.
WRONG:
[gmap |id=usermap|center=40,0|control=none|zoom=12|width=100%|height=300px]
NEED:
[gmap |center=40,0|control=none|zoom=12|width=100%|height=300px]
I think in this case id will generated automaticaly and all is ok.
Comment #21
hanspln commentedFound the same solution as #20, but I was using an attachment and cck location.
Delete id from the macro in Attachment>Style:GMap>Macro
Comment #22
brisath commentedI'm still getting this error message on my site, and I checked the set-up from #20 and that doesn't seem to be the issue, as id=usermap is not there. Instead, it reads
[gmap |width=100% |height=200px |control=None |behavior=+autozoom +notype]
My exact error message reads:
Duplicate map detected! GMap does not support multiplexing maps onto one MapID! GMap MapID: trackfield_map_145_default
Any suggestions on how to resolve this error from coming up?
Comment #23
brisath commentedAt the very least, I would like the error to stop showing up for users on their page. I have write errors to screen turned off, but the "Duplicate map detected" is still showing up on the screen periodically for anonymous user.
My exact error message reads:
"Duplicate map detected! GMap does not support multiplexing maps onto one MapID! GMap MapID: trackfield_map_151"
Comment #24
sunchaser commentedsolution #20 seemed to work for me ... I had two GMAPS on one page ... and removed both id's in Site Configuration > Gmap Location > ...
Comment #25
Carlos Miranda Levy commented#20 also does it for views in 7.x. I had been using unique id's for the map views I was creating and was getting the same error when the views were embedded in nodes and the nodes displayed on teaser lists.
Removing the id= part of the macro fixed it and it had no other impact on displaying the maps (I'm only doing one map per page though, so I haven't tested if multiple maps will fail).
Comment #26
Frederic wbase commented#20 also worked for me! Thanks for the tip. I think the problem at my site has started by activiting the fusion starter theme
Comment #27
askibinski commentedIn my case, I had to remove the id from a custom made view, but #20 works nevertheless.
Comment #28
brisath commented#20 did not solve my problem. I'm still getting the error message consistently on my site. At the very least, I would like a way to hide this message from anonymous users, because it shows for them too.
Comment #29
couloir007 commentedThis seems to work.
Comment #30
Gessle commentedI get "Duplicate map detected! GMap does not support multiplexing maps onto one MapID! GMap MapID: nodemap" when I have a map showing all the nodes on the frontpage.
This happens ONLY when I have NOT logged in AND the "language" parameter is set in the url.
I have only created block to show the map
No solution has yet been found...
Comment #31
Frederic wbase commented@brisath for drupal 7 go to admin/config, than chose error reporting and select the options to not show any errors ;-).
grts
fre
Comment #32
hillaryneaf commented#9 worked for me! Custom template node-yourtypehere.tpl.php and the code mentioned in #9 that adds the nid to the id to keep it unique.