The media gallery attribute works fine for me in the preview and also a short time after publishing it, but after some time it only produces an empty div with class=gallery. On a post on the understandinge forum someone said he solved it by quadrupling the php memory limit. But I would like to know what setting you are using exactly to make it work. Mine is currently 768M and it is not working.