by Adam Barker.
I managed to solve this on my install.
I manage a version of Moodle that has been updated and modified a lot across the years, so was created a long time ago and upgraded a fair few times.
The issue in my case was a knock on of have the database reference to an old disabled theme. Deleting these themes through the plugin manager resolved this issue.