A.L.
I have had GB pain,which usually includes the liver.. When your GB begins to hurt, it's pretty certain that your Liver which is right there close by will also be affected.. What works for me.. Laying off the fatty foods and watching my diet. Simply put, losing weight.. I know some doctors will opt for taking it out, but that needn't always happen IF a person can get their diet on point. If you look online, there is a lot of info with regard to fatty diets and GB disease, in turn, I have also read that if you have issues with the GB, it's can in some cases be a predecessor of things to come such as heart disease.. the GB acting as a the warning sign that your diet may not be as healthy as it can be... Since keeping my own diet on point and losing weight, those GB aches (and liver) are much fewer. In fact, it's been a long time since I had an attack.
As for eating. whenever I have had an attack... later on in the day, I ate basic.. no fats/sugars.. kept it clean.. your GB/LIVER are filtering systems, so the less junk you give them to filter, the less problems they will have.. start out slowly and don't overwhelm either.. again, if you look online, you ll see what foods in particular can upset the GB...
good luck to you!