Looks like it may be a problem with a category having sub-categories, but the user's not having permission to view them. Try looking in your forum/includes/functions_gallery.php file for this bit of code:
Code:
Content visible to verified customers only.
Replace with this:
Code:
Content visible to verified customers only.
And that should take care of the problem.