Seeming randomly when I go to walk it glitches out. I walk forward, and then jump back to where I was before I started before I walked. The only way to fix this is relogging. The glitch is kind of like when you jump from water to a sheer cliff. I'm aware I provided a fix for this, but I was wondering if anyone knew why it happened?
I've experienced the same glitch. It seems to be some sort of lag glitch. Another way to negate the effect is to sneak.
If you're sneaking when you warp between worlds and unsneak on the switching worlds screen the server will still think you are sneaking while your client does not. As iceyy said, sneaking then unsneaking will make the client and server see your player in the same way.