Internal Server Error on Upgrade page

There was a recently fixed big relating to the new version numbering system. I can’t find it, but doing a command line upgrade should fix it.