If the purchaser of real property sold on execution, or his successor in interest, fails to recover possession as a result of irregularities in the proceedings concerning the sale that could make such sale null, or because the property sold was not subject to execution and sale, the court having jurisdiction thereof must, after due notice and on motion of such interested party, or his attorney, revive the original judgment in the name of the petitioner for the amount paid by the purchaser at the judicial sale, with interest thereon from the time of payment at the same rate appearing in the original judgment; and the judgment so revived shall have the same force and effect as the original judgment from, and not before, the date of revival.