In researching, this seems to be a common problem for the Gallery if individual settings are not tweaked properly. As there are several different threads and apparent fixes for the error, you will want to take a look at Gallery's forums and find the settings and fixes that will work for your setup.
You can find their forums here: http://gallery.menalto.com/forum
|Email:||support@WebHostingHub.com||Ticket:||Submit a Support Ticket|
|Chat:||Click To Chat Now|