It works, thanks!
The only issue left is that my website is now amazingly slow..... as if it has to generate the complete page everytime
Thats probably because you ran composer install, which caused your generation folder to be cleared, which removed generated/metadata/global.php which causes M2 to fall back to developer mode which means it will be slow.
Production mode will only work if generated/metadata/global.php exists.