by Steve Glover.
I finally transferred the moodle which importing the courses properly into the domain where the moodle 3.11.2 wasn't importing properly and this solved it for me although I realise it doen't solve the original issue.