Cannot start application 'Bootstrap function in admin failed'

This is usually caused by a broken relation (relation exists on one side but not on the other) in the model settings. Typically caused by either manual editing of a model file or manually deleting a model or it’s folder without cleaning up the other side.