Cramp like pain right side. Back & front. Not constant, ruled out kidney & appendix. Aside from diet what can this be? Been a very long time.

Gallbladder pain. You could have your doctor check your gallbladder by doing a biliary scan with cck stimulation and measure gallbladder ejection. (sounds comlicated but it may help determine if the gallbladder is working properly.