Write to or ring the Law Society ,The Law Society Hall, 113, Chancery Lane, London, WC2 1PL.
The phone number they give for enquiries about becoming a solicitor is 0870 606 2555
Their website (obviously designed by a solicitor: you can't get a useful answer from it, if at all, without spending a lot of time with it !) is
http://www.lawsociety.org.uk
It's a fairly straightforward matter.
From experience (not as a bankrupt lawyer! ), I'm prepared to hope that they'll take a kindly view, given the circumstances you describe.
The key question they ask themselves about anyone who seeks to be admitted to the Roll (qualify into practice) is whether the person is of the character and suitability to be admitted.What that means is for them to say.
Good luck!