Sometimes the refusal to recognise the presence of a cd is caused by a dirty laser.
I would clean the laser with a cotton bud damped in iso propanol. If that doesn't cure it you are looking at £200+ to replace the CD mechanism.
I suspect that the door mechanism problems are unrelated to the above.