hi

gmaplocation works on firefox and chrome but not on IE8.

in IE8 (winxp) we get the following error description

Meldung: Das Objekt unterstützt diese Eigenschaft oder Methode nicht.
Zeile: 12
Zeichen: 5
Code: 0
URI: http://www.DOMAIN.com/sites/all/modules/gmaplocation/gmaplocation.js?r

the error points to this line in the JS file:

description = Drupal.settings.gmaplocation.info;

thanks

CommentFileSizeAuthor
#3 description.patch1.66 KByaslama

Comments

babbage’s picture

Translation:
Message: Object does not support this property or method.
Row: 12
Character: 5

Have yet to confirm this issue on another install.

babbage’s picture

Status: Active » Closed (cannot reproduce)

Cannot reproduce this problem on Internet Explorer 8 on Windows XP. I only have an English install, so I suppose it is possible that there could be an issue somehow with a german language install, but that's getting pretty specific at that point and without someone else able to reproduce it a far more likely problem is there is something wrong with your system/IE8 configuration I'm afraid.

If you are continuing to have this difficulty, please ensure you can reproduce it on a fresh Drupal install with only core modules and gmaplocation installed, and list specific step-by-step instructions to reproduce the error you observed. Until that is available, closing this issue as unable to reproduce.

yaslama’s picture

Status: Closed (cannot reproduce) » Active
StatusFileSize
new1.66 KB

Hello,

It seems that it's quite easy to reproduce the bug. Add the module nodewords in order to add meta-tags and put a non-empty string in the meta-tag "description".
Then IE will define the js variable description (see http://www.phpied.com/browser-implied-globals/) and this will conflict with the code in gmaplocation.js which also uses a variable called "description".

My patch simply rename description to descr.

tregeagle’s picture

I'm getting a similar error in that delightful browser IE8:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Timestamp: Tue, 7 Feb 2012 21:41:22 UTC


Message: 'Drupal.settings.gmaplocation' is null or not an object
Line: 3
Char: 5
Code: 0
URI: http://staging.awebsite.com/sites/all/modules/gmaplocation/gmaplocation.js?k

I applied yaslama's patch successfully but am still getting the error.
Will keep tweaking and let you know how it goes...