Turtle(s) nnnn must be inside window.

You have moved one or more turtles off the screen while in WINDOW mode and then tried to switch to WRAP or FENCE mode. Move all the turtles onto the screen before switching modes.