Encoder Problems

I’m trying to use an the Kit GTS with the encoder code. I took out the Phase B from my code and upload it to the robot. It runs 2-3 loops and then I get a code error. When I try to upload the default encoder code it gives me a code error without running any loops. Please help

It’s impossible to help without seeing your code.

Its OK I fixed the problem thanks!