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.
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
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