Strange that I've never seen it give an error like that. $filenamecache should be set as an array before everything anyways though, so for anyone experiencing a problem you can look in your vba_gallery_admin.php file for this:
Code:
Content visible to verified customers only.
And add this right above it:
Code:
Content visible to verified customers only.