There's a chance that the terminals inside the footswitch have been oxidized. If it's not severe, you can save them by pressing the switch a couple of dozen times to clean themselves.
Also, install a fresh new battery and make sure to have good guitar cables. Test it by itself and see if it is indeed the unit causing the problem. Make sure you are not using a stereo cable.