That means something is touching the enclosure when you put it in the box.
The jacks are connected to ground so when you plug them in, whatever it touching the enclosure means s now connected to ground as well.
Is anything touching a potentiometer maybe? Do you have those plastic covers on all...