Thanks everyone for your replies and help. It seems to be a conflict between Yoast and three other plugins: Jetpack Boost, Limited login attempts and Member Press Courses. I’ve deactivated them for now and will try to work out what our next step should be.