They can have impactions/blockages and still poop. But that is neither here nor there. They can get parasites from feeders is just one example. I have had CBB animals that have got parasites.
The biggest question.... was this a quick onset of issues or was this a gradual onset. Meaning did you come in one day and he was lethargic with eyes closed or did you notice him slowly declining? I think you are jumping the gun just a bit. When chameleons are sick they just shut down. You would be amazed at how long they can go like that too. It is really quite awful to watch them linger in a state such as this. If he defecates again, bag it up and throw it in the fridge for the vet.