Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Image Gallery init issue


Go to End


1458 Views

Avatar
dkm

Community Member, 4 Posts

4 November 2009 at 8:25am

I just thought I would pass this along in case anyone else runs into this problem. I don't think this is a bug with the Image Gallery module but just a unfortunate set of circumstances.

I had the Image Gallery module up and running on a clients site an then I got a email from the client stating that their gallery page had stopped showing photos. After investigating it turns out that they had commented out their Google Analytics code. This code is located right before the closing body tag. The Image Gallery module inserts its script tag code in the same location. It turns out that if there's a commented out script tag block in this location the Image Gallery initialization script tag code will get inserted into the this commented out block. Thus, none of the gallery photos will be shown (actually they are there but just hidden and don't get displayed until the init script is run).