While trying to upgrade an existing XenForo 1.4.8 board I kept receiving Undefined use_tfa, there are no error stacks available but commenting out the content of the function _assertTfaRequirement under XenForo_ControllerPublic_Abstract fixed the issue for a time.