When lightbox plus is enabled an error is caused in the google maps module:

Line: 129
Char: 5
Error: '0' is null or not an object
Code:0

When lightbox is disabled this problem disappears and the map is displayed correctly.

Comments

stella’s picture

Assigned: Unassigned » stella

I'll take a look. In the meantime try the patch from #166461. This will allow you to disable the lightbox on certain pages on your site. Just enter in the path to the node containing the gmap that you don't want lightbox loaded on. You can use % as a wildcard.

Cheers,
Stella

bdragon’s picture

The following code from lightbox.js causes jQuery to malfunction when enumerating arrays. Extending the Array builtin (or any other core object) in this fashion is a VERY BAD idea, because it breaks language level assumptions.

// -----------------------------------------------------------------------------------

//
//	Extending built-in Array object
//	- array.removeDuplicates()
//	- array.empty()
//
Array.prototype.removeDuplicates = function () {
	for(i = 1; i < this.length; i++){
		if(this[i][0] == this[i-1][0]){
			this.splice(i,1);
		}
	}
}

// -----------------------------------------------------------------------------------

Array.prototype.empty = function () {
	for(i = 0; i <= this.length; i++){
		this.shift();
	}
}
stella’s picture

Status: Active » Fixed

This should no longer be in an issue with the new version of lightbox2 which now uses jQuery, removing the need for prototype/scriptaculous libraries. This has been released in 5.x-2.0 and 6.x-1.0.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)