Check all your settings re NextGen Gallery and Thickbox.
i have no idea what im doing, really. someone set it up years ago and i need to fix it, but dont want to pull the whole thing down…
here is the bit of code i get when i run with error checking
Uncaught TypeError: Cannot call method ‘match’ of undefined
TB_show thickbox.js:80
(anonymous function)thickbox.js:28
f.event.dispatchjquery.js:3
f.event.add.h.handle.ijquery.js:3
2
thickbox.js:346Uncaught ReferenceError: TB_WIDTH is not defined
TB_positionthickbox.js:346
f.event.dispatch jquery.js:3
f.event.add.h.handle.i
I think it’s in the thickbox.js but i have no idea where to edit this at or how to fix it…
i think it’s in this code… (where the uncaught typeerror is)
// find the anchors that point to the group
var imageGroup = jQuery(“a[rel=”+rel+”]”).get();
var foundSelf = false;
var imageTitle = ‘Gallery’; //default to something sane
// loop through the anchors, looking for ourself, saving information about previous and next image
for (var i = 0; i < imageGroup.length; i++) {
var image = imageGroup[i];
var urlTypeTemp = image.href.match(imageURL);
Uncaught TypeError: Cannot call method ‘match’ of undefined
// look for ourself
if ( image.href == url ) {
foundSelf = true;
imageCount = “Image ” + (i + 1) + ” of “+ (imageGroup.length);
if(image.rel != null) {
imageTitle = image.rel.replace(/_/, ” “);
}
} else {
// when we found ourself, the current is the next image
if ( foundSelf ) {
next = getInfo(image, “next”, “Next >”);
// stop searching
break;
} else {
// didn’t find ourself yet, so this may be the one before ourself
prev = getInfo(image, “prev”, “< Prev”);
}
}
}