Here's a possible solution: Seek an annulment if you believe the marriage never validly existed.  If you do believe the marriage validly existed, OR you cannot obtain an annulment (for whatever reason) continue to attend mass AND receive communion, IF you sincerely desire to receive the Lord.  If your parish priest (or some nosy parishioners) would frown on your receiving, go to another parish.  Love God and God's children, do your best, and trust in God's judgment.  In other words, follow your own (well-formed) conscience.