I am puzzled about what I have done top break this
You changed too many things at the same time!
Go back to your original working configuration. Test that it still works, then implement each update one at a time and prove that all still works after each change.
Slowly slowly catchy monkey!