I just uploaded my website (www.bredobrothers.de) to a new host, and the gallery script stopped working in lightbox mode (loading-icon, prev/next, etc.. missing).
Cause of the error:
addInitEvent(function() {
var lightbox = new LightBox({
loadingimg:DOKU_BASE+'/lib/plugins/gallery/images/loading.gif',
expandimg:DOKU_BASE+'/lib/plugins/gallery/images/expand.gif',
shrinkimg:DOKU_BASE+'/lib/plugins/gallery/images/shrink.gif',
closeimg:DOKU_BASE+'/lib/plugins/gallery/images/close.gif',
nextimg:DOKU_BASE+'/lib/plugins/gallery/images/next.gif',
previmg:DOKU_BASE+'/lib/plugins/gallery/images/prev.gif'
});
});
DOKU_BASE+'/lib/plugins/ga ... must be changed to ... DOKU_BASE+'lib/plugins/ga
to make it work. Otherwise there'll be a double slash in the paths, which confuses the browser. (seems to be no problem iff the website resides in a subpath like
http://test/wiki//lin/plugins .., so this is why it may have gone unnoticed until now).