I am just restating what others have already said in the comments..
You have two cases. Case 1 is where $a=e$ is the identity in your group. Here the order of $gag^{-1} = gg^{-1} = e$ is $1$.
Case 2 is where $a\
eq e$. Then your calculation above indeed shows that the order is $2$ (because only the identity has order $1$). And, as mentioned below, $gag^{-1}\
eq e$ because if it was: $gag^{-1} = e$, then $a = g^{-1}eg = g^{-1}g = e$ (which is case 1).