Usually there are only a few culprits here.
1 - Infection
2 - Too much priming sugar. If there is too much it will over carbonate and cause this foaming, or worse bottle bombs.
3 - Beer wasn't finished fermenting and continued to do so in the bottle which can also cause the gushing bottles.