Hi
Welcome to the MedHelp forum!
After gall bladder surgery if you are having pain under the right ribs, and liver studies(were they done—if not get them done) are normal, then it could be due to an abscess. A CT scan should be done. Otherwise it can be due to lingering liver infection. It can also be due to acidity and duodenal ulcer. Take a late night snack. Raise head end of bed. Take Omeprazole empty stomach in morning and an antacid gel at bedtime. Refrain from smoking, alcohol, fuzzy drinks and spicy food. Walking around also helps clear gas. It could also be muscle pull that can be treated by applying local analgesic creams. If all these are ruled out, then laparoscopy should be done. Such an undiagnosed pain is usually due to adhesions and cutting the adhesions takes care of the pain. Since a confirmed diagnosis cannot be given on net please discuss with your doctor once. Hope this helps. Take care!
Perhaps this is a ductal problem. Have you had or has anyone suggested an ERCP? This provides a visualization of the bile and pancreatic ducts.