You have to relog. When someone opens the gate and leaves it open then someone or the same person walks to the gate again like 5 minutes later, it looks like it's open but it's really not. It's a glitch for all doors and gates.