There is no $g2_album_id here

I assume this should be $g2_album->getId() instead
valid::url() only takes 1 arg
How did this ever work? :)
Christen 3.0.8 'Seine' to continue the Parisian theme