I'm using:

  • GMap block: 6.x-1.0

I am getting the following Javascript error:

Error: a is undefined
Source File: http://maps.gstatic.com/intl/en_us/mapfiles/api-3/4/4/main.js Line: 29

I get this error on every page of my website, even though I only have a GMap Block on the Contact page.

I was originally thinking that this error might reside in the GMap module, but since this module does not rely on it and I disabled it, I still get the error.

Any solutions?

Comments

skilip’s picture

Do you have a live example of the contact page?

ejohnson’s picture

Hi skilip,

I PM'd you a development link that illustrates the problem.

Thanks for assistance.

ejohnson’s picture

This was a somewhat stupid mistake on my part. In my block's settings, I have it set to 'Show on every page except the listed pages.' in the "Page specific visibility settings".

I have multiple Page Templates on this site, so the Javascript was loading, even though the Region that the Gmap Block belongs to, isn't even in the Page Template.

I changed the Block setting to "Show on only the listed pages." and listed the Pages.
Example:
contact
contact/*

This explains why no one else was reporting this problem. Seems like there could be a safe guard in the module somewhere to detect this, but maybe not if the Javascript is loading first.

Probably can mark this as fixed since it's a combination of user error and potential module feature.

oostie’s picture

Status: Active » Closed (works as designed)