Teething causes diarrhea.

If you think the dog has food allergies, though it seems a bit young, I would make sure you aren't feeding any chicken first.