When I Install SuiteCRM 7.12.4 getting fatal error .
Please suggest any solution for this
Thanks in advance
pgr
16 February 2022 09:46
#2
Check that your PHP version is within the matrix:
Versions SuiteCRM 7.12.x Platform
Linux, Unix, Mac OS
Any version supporting PHP
Windows
Windows Server 2012+
PHP
7.3, 7.4, 8.0
Web Server
Apache
2.2, 2.4
IIS
8, 8.5, 10
Database
MariaDB
10.2, 10.3, 10.4, 10.5, 10.6
According to your Compatibility Matrix,
My current PHP Version is 8.0 and still having the same error.
pgr
16 February 2022 17:24
#4
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:
salesagility:hotfix
← JanSiero:bugfix_9513
opened 05:30PM - 19 Mar 22 UTC
## Description
This fix fixes a PHP 8.1 compatibility issue for the installer.
…
PHP 8.1 doesn't allow overwriting $GLOBALS directly, see https://github.com/salesagility/SuiteCRM/issues/9513
## Motivation and Context
Solves installation on PHP version 8.1
The rest of SuiteCRM seems to be compatible to this PHP version
## How To Test This
- Place the SuiteCRM code on a PHP 8.1 server
- On the installation screen, click "I accept" for the GPL license, then "Next"
- On the System Environment screen, click "Next"
- Provide the details for Database Configuration and Site Configuration, click "Next"
**Expected result**
- SuiteCRM starts install sequence
**Observed error**
- Empty screen
- in the webserver error log file:
```
PHP message: PHP Fatal error: $GLOBALS can only be modified using the $GLOBALS[$name] = $value syntax in /var/www/html/suite71205d/install/performSetup.php on line 715
```
## Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
### Final checklist
- [x] My code follows the code style of this project found [here](https://docs.suitecrm.com/community/contributing-code/coding-standards/).
- [ ] My change requires a change to the documentation.
- [x] I have read the [**How to Contribute**](https://docs.suitecrm.com/community/contributing-code/) guidelines.
The rest of SuiteCRM seems to work without issues on PHP version 8.1 but requires testing.