---
title: "ACSF staging issues due to incompatible PHP version"
date: "2022-01-28T00:27:55+00:00"
summary:
image:
type: "article"
url: "/site-factory/help/92506-acsf-staging-issues-due-incompatible-php-version"
id: "8477e738-9933-4702-bb76-068b68c2f5b0"
---

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