Foaming is usually the result of adding a cheap algaecide. Have you added anything like that lately?