The liver is on the right side of your body. What you have is a major obstruction in the intestines that is irritated, inflamed and maybe even infected. Get a basic physical and see a G.I. specialist, you need to find out just how bad it is. A compromised colon is NOT good, it can be a killer. It's already bad enough to have compromised all of your other paths of elimination, which means you're REALLY backed up.
When there's pain and mucus you should stop all fiber and stick to a liquid diet of mostly bone broths and veggie juices for nutrition, citrus for cleansing, and digestive teas such as ginger to help the body deal with the mucus. Enemas should be okay and are highly recommended to help reshape and cleanse the area so it can start to heal.