Turn OFF the seo
in global options does your gallery now work?
If so then its a matter of MOD REWRITE AND HTACCESS. Has the photopost HTACCESS file been renamed to .htaccess? For that matter does your server allow htaccess and mod rewrite as it would need to for you to use SEO