ACSF staging issues due to incompatible PHP version | Acquia Product Documentation
Site Factory
ACSF staging issues due to incompatible PHP version
ACSF staging issues due to incompatible PHP version
Date Published: January 28, 2022
Issue
When staging from a Site Factory production environment to a non production environment, if the lower environment has a different PHP version than production, staging may fail due to incompatible code, even if the current code on non production is compatible.
Example error:
Deprecated: Array and string offset access syntax with curly braces is deprecated in /mnt/www/html/factorycustomer.01testup/path/to/file.php on line 21
Resolution
The code on production needs to be compatible with the PHP version on the non production environment that you are staging down to. The solution is to do the following:
Switch to the PHP version on non production to match production
Stage down from production to non production
Switch the PHP version on non production back to the desired version