My ear gets plugged everytime my upper right abdomen hurts. What could cause both these symptoms? My doc thinks it's an ulcer. What else could it be?

Not related . Our current knowledge of anatomy, physiology and disease do not suggest there is a connection between your symptoms. Further, things that are related in time, are not necessarily related in terms of cause and effect. Having said that, there is a lot we don't know.