I had this same exact problem. I had three galleries in different folders all on the same server. One worked, the other two did not. I fixed it on my end by adding a .htaccess file with this in it to make sure it was recognizing I had MySQL 5.
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
Also, on my overview page this entry is set to off. I noticed that on the two that did not work, this was set to ON.
PHP Allow URL fopen : Off
When that was set to on – it did not work.
I am also on 1 and 1. Hope that helps.