Please enable Debugging (all the way to Developer and tick display errors). Recreate the error and you should get the full trace. Copy and paste here.
Howard Miller
Posts made by Howard Miller
You can use git for the Moodle code AND the Docker config files 
There are indeed reputable 3rd party PHP sources.
Concrete example... https://launchpad.net/~ondrej/+archive/ubuntu/php
Or, as I mentioned, you can explore Docker. Then the fun really starts
But I would probably build a Docker image using a base Linux plus the ondrej repo above, anyway. Bit more advanced but super flexible when you've got your head around it. I'd do a docs page but I'm reluctant because the point is to have a setup that suits your own requirements, not to slavishly follow somebody else's recipe. That's just Softaculous in disguise 
Concrete example... https://launchpad.net/~ondrej/+archive/ubuntu/php
Or, as I mentioned, you can explore Docker. Then the fun really starts
And, indeed, saying "it used to work" is as fruitless as saying "I used to be young and thin" 
I could be wrong... but I seem to recall this is a very long-running bug on the Safari browser. Nothing to do with Moodle.
...but... if that part of the upgrade went wrong, what else might have gone wrong?