Please upgrade php 8.0.2 for my account because my forum doesn’t works without it. I use the latest flarum version. I installed composer on my own computer and then uploaded the files on the server.
Forum URL: My Flarum
Account Username: epiz_30876775
Whatever you are trying to install NEEDS PHP 8 to run, if you don’t give it PHP 8, it is not going to run correctly, or run without severe vulnerabilities.
As I already stated, you cannot do that. The application is setup for PHP 8. The server is setup for PHP 7. Even if you override composer, it will not work properly because the plugin needs PHP 8, and the server does not have it.
You will still be at risk. Cloudflare does not prevent XSS, SQL-inqection, ect.
Do you have PHP 8.0 or higher on your own computer? Because if so, that’s likely the problem.
If you run Composer with PHP 7.4, then Composer will try to fetch older versions of software that do support PHP 7.4. As long as Flarum itself, and the dependencies, don’t require minimum versions of software that require PHP 8, you can still run it on PHP 8 this way.
Our hosting doesn’t have PHP 8 yet at this time. PHP 7.4 will likely be replaced at some point with the then-latest version of PHP 8. However, not all software supports PHP 8 yet. For example, IonCube loaders for PHP 8 are still a work in progress, which means all software with IonCube encryption cannot be used on PHP 8 yet.