Assigning parent category to a category that already has subcategory produces error

Thanks for the help @simon

The site is self hosted and seems to be the latest version.

Here are the version details. Does that help?