I had this about ten years ago. I cured it by taking Diflucan for a few weeks, followed by probiotics for several months.
I think a deficiency of potassium or calcium can contribute to it. People with excess vitamin d have more calcium in urine and less in the intestine.