I am wondering why my app won´t run with PHP versions 8.x. I uploaded an app with the hooks folder without any custom code and it did not work, I got a 500 error page. When I changed the PHP version to 7.4, the app showed the homepage. So I uploaded the hooks with the custom code and everything was OK.
So, in my case, the custom code was not the issue, but the PHP version. I have tested it in 2 different servers, one with Hostgator and another with Namecheap. In Namecheap I got a blank page, not a 500 error page.
It is strange that it works in some servers and not in others, as Ahmed and other people in other posts have experience no issues with Version 8.x.