I reproduced your problem. Could you please ensure that in the Independent Samples T Test dialogue that Gender is in the grouping variable, and you have set the groups to be 0 and 1 under the Define Groups button.
It is because you have a group (e.g. 'other', or 'prefer not to say'), and in the Define Groups section you have a 2 or a 3, instead of just 0 and 1. The problem is that one of those groups (2 or 3) have no data i.e. nobody preferred not to say, or identified as other. So when SPSS tries to do a t-test, it looks for scores belonging to that group and finds none.