I had the same problem when I was copying and pasting the code {gallery}somefolder{/gallery}. When I typed it instead of pasting the code it worked finaly! Hope this will help someone, I signed up just to give this solution so I hope it will help. Have a good day!