There are some organisations that help people pay bankruptcy fees through ‘trust funds’ which you can apply for.
If you’re on a low income you can apply to have court fees reduced or cancelled. In England and Wales you can apply online. In Scotland and Northern Ireland, you can apply by completing a court form.