Looks like the type switch condition isn't working in the URL. Edit "CB Gallery - Upload" within CB Auto Actions > System Actions and adjust it as follows.
Links > URL
FROM:
Code:
[cb:config param="live_site" /]/index.php?option=com_comprofiler&view=pluginclass&plugin=cbgallery&action=items&func=show&type=photos&id=[var1_id]
TO:
Code:
[cb:config param="live_site" /]/index.php?option=com_comprofiler&view=pluginclass&plugin=cbgallery&action=items&func=show&type=[var1_type]&id=[var1_id]
Now click "Save as Copy" and unpublish the system action. You'll now have a fixed action in Auto Actions. Re-saving the gallery entry will fix its activity.
forge.joomlapolis.com/issues/5401