Fatal Error after installing SuiteCRM 7.12.4

When I Install SuiteCRM 7.12.4 getting fatal error .

Please suggest any solution for this

Thanks in advance

Check that your PHP version is within the matrix:

According to your Compatibility Matrix,

My current PHP Version is 8.0 and still having the same error.

Are you sure? That is a PHP 8.1 error, it should work with PHP 8.0.

That line hasn’t been changed in the past 7 years, as far as I can see this is really just a new PHP restriction, which hasn’t been supported yet because no PHP 8.1 work has been done yet.

I have created a pull request for this:

The rest of SuiteCRM seems to work without issues on PHP version 8.1 but requires testing.