Sounds like you have a air leak in the suction side. It will certainly cause hyd overflow out the vent. You will need to check everything from suction screen in tank to and including the hyd pump. The first thing to do, because it is the easiest, is to just tighten all the fittings. You can also take off the elbow at the pump and check that o-ring. If you see any hyd oil on suction line, after it has been sitting, it could point you to the leak. The hard line has been know to get hairline cracks, especially in stressed areas. The cracks can sometimes be small enough not to drip, but they will still be big enough to draw air in.
After the easy checks, start at the screen. Make sure it is not plugged. Clean if neccessary. It would be a good time to flush the tank and check for metal particles.
If it is still an issue, the next choices are replacing the hard line (incase it is a hidden crack) or replacing/rebuilding the pump. If you might have stressed the pump at any time, from having the tractor running with the quick disconnects seperated, I'd replace it.
I had this foaming issue last spring, and after eliminating everything else, it was the pump.