Update templates 12 to 41

Update includes compatibility with PHP 8