Archived blog with a focus on DotNetNuke news, tips and tricks, DNN SEO, and insights and opinions about the DNN community at large.

First time here? You may want to check out the blog archive, subscribe to the RSS feed, sign up for free email updates, or follow me on Twitter. Thanks for visiting!

Simple Gallery Module Error: The Controls collection cannot be modified because the control contains code blocks 

I've come across this issue twice lately on two seperate DNN installs so I thought I make a note here for anyone googling it.

As it turns out, the Simple Gallery module does not play nice with DNN's module cache time. Starting with DNN 4.4.x (it might have been introduced earlier ... does anyone remember?), any given module has a cache time of 1200 seconds to improve performance.

The cache time is set in Module Settings | Page Settings | Advanced Settings. Since caching is disabled when logged in as host or admin, you will be able to set the cache time to zero on your Simple Gallery module without a problem. After making that change the page containing the gallery will load just fine for any user.




Comments

Comments are closed

Subscribe to our Feeds Follow on Twitter