HI, I am having a similar issue – just updated all content in a nagallery while keeping the link from the gallery to the page intact, or so I thought…new thumbnails are showing correctly, but when clicking on them the pictures dont display and the same Not a valid template error message appaears.
The shortcode I have in the page is:

thanks for any comments, Rein