check engine light,fail safe mode on 1997 Audi A8 Quattro

car ran fine then check engine light came on .then the car went into fail safe mode[when put into gear all gear selector lights illuminate]if i move it it runs like in low gear

Asked by for the 1997 Audi A8 Quattro
car went into safe mode after chk engine light came on gear selector illuminates