Now the site loads very very slow. I think it has something to do with the PHP version. It runs (slowly) on PHP 7.2 and 7.3. With version 7.4 and 8.0 the website breaks.
That’s Kirby 2, right? Have you ensured that Kirby is fully up to date? I think the final release version of Kirby 2 supported PHP 7.4 at the most, and wont receive any further updates. I would suggest at least upgrading your installation to the newest Kirby 2 and consider upgrading the site to Kirby 3 in the near future.
Ah… Upgrade your installation to the latest version of Kirby. 3.1.0 is fairly old now. The latest is 3.5.7. Hopefully that will solve it.
Its possible that it breaks with 7.4 and 8 PHP due to missing php extensions. You may need to enable these through your hosting control panel.Refer to this list