Loading...


Related Products


What should I do when encountering a PHP version error during code build?

Description

Build stageJobError messageCategoryResponsibility
Build DrupalBuild Code

Your lock file does not contain a compatible set of packages. Please run composer update.

symfony/string vx.x.x requires php >=8.2 -> your php version (8.1) does not satisfy that requirement.

ApplicationCustomer

Potential cause

The PHP version of the project is not set correctly.

Solution

Add the PHP_VERSION environment variable to your project through the UI, and set its value to the PHP version that your project uses. This value accepts major and minor versions only, for example, 8.2. For more information, see Modifying environment variables.

The composer.json file in your project, Cloud IDE, Code Studio, and Cloud Platform must use the same PHP version.

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation