Hello,
After changing the file and updating the PHP version to 8.1, the website started working again, but it is currently in a mixed-up state where everything seems to be jumbled together.