Can you try a fix for the gantry plugin that Andy suggested:
Actually quick fix is to edit line 276 in the gantry system plugin and replace with this:
$link = pq('td > input[value=' . $gantry['id'] . ']')->parent()->next()->find('a[href*="com_templates"');