Trying to survive on energy gels/bars is a recipe for disaster, they really upset your digestion. As Jonathan said, it often takes a while to work out dietary requirements for 12 and 24hr enduros. You can't really get by without energy products but you really need to minimise their use as much as possible.
I mix and match brands for drinks, gels, bars etc. No one supplier does everything right. Torq gels and recovery stuff is lovely but I don't like their energy drink, I use High5 for that.
I find fruit helps a lot with settling the stomach and cleaning out the nasty sticky "flavour" in my mouth.
Try drinking lots of milk and water, take some Rennie or similar. Get well soon!