The following tag has a syntax error:
{exp:gallery:category_name}
Please correct the syntax in your template.