I finally found the time to fix the homepage buttons which have been broken for a couple of months already. The problem was a combination of stricter security settings on the server and some old functions I used in the scripts which were deprecated and removed in PHP 7.