To dream of something being rotten represents wasted potential or failure to make use of the opportunities. Stagnation. Feeling that you've wasted time. Jealousy of having lost or wasted an opportunity.
Alternatively, something rotting in a dream may reflect the feelings about the first hint that something is wrong with your beliefs about a person or situation. Initial feelings that something is starting to not feel feel as honest or genuine as you first thought.