Twig errors on v3.1.19 Running Craft 3.1.19 and have started getting twig error in the control panel.  When I click on the utilities link I get this error:

Declaration of craft\web\twig\Environment::compileSource(Twig\Source $source) should be compatible with Twig_Environment::compileSource(Twig_Source $source)


And when I try to create a new field I get this error: 

Key "defaultUploadLocationSubpath" in object with ArrayAccess of class "craft\fields\Assets" does not exist.


Any idea what is going on?

Thanks!
I also got the second error when trying to create a new field and the solution for me was running 

./craft clear-caches/all


after a refresh it started working again