Simple Gallery Module Error: The Controls collection cannot be modified because the control contains code blocks
Posted by Tom on Tuesday, February 13, 2007 to DotNetNuke
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.
Permalink
0 Comments
RSS feeds
Email updates
Comments
No comments so far. Why not kick things off? Add a comment