Basic IK breaking Bones

If anybody is familiar with control rigs and Basic IK blueprints, I’d really appreciate some help.

I’m trying to rig some IK for a Synty mesh I purchased a while back and the basic IK node keeps breaking my calf bone rotation. The knee on the left in the picture is the correct orientation but is not hooked up to the Basic IK solver. The one on the right (left knee) is. It seems to apply a 90 degree rotation from the knee down to the foot when IK is attached. The knee bends towards the pole vector but again, at a 90 degree angle.

(The calf bone controls in red at the knees are not connected so they do not exert any control right now. They’re there for fk controlling later)

I’m fearing that the calf bone is misoriented from the original mesh (I am not great at blender so fixing this would be a nightmare) but if anybody knows of a solution I’d greatly appreciate not losing all my hair!

Change the secondary axis to be Y = 1, should fix the problem, if not try the other axis and see which one works.