This article provides a solution for the error that occurs during deployment when upgrading to a version that supports PHP 8.1.
Adobe Commerce on cloud infrastructure 2.4.4. and later
Extension or technology (Fastly, New Relic, etc.) version PHP 8.1
The following error occurs during deployment when upgrading to a version that supports PHP 8.1.
{{E: Error parsing configuration files:
applications: Uncaught exception: The "json" extension is not supported for php:8.1
at <script>:109:12
throw("The \"" + unsupported_extensions[0] + "\" extension is not supported for " + service.type);
^
E: Error: Invalid configuration files, aborting build}}
PHP 8.1 already includes JSON support and doesn’t require the extension to be installed separately.
Remove JSON from the Runtime > Extensions section in .magento.app.yaml
and redeploy.
PHP application in our developer documentation.