Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

Itโ€™s a history of our time together in the Slack Community! Thereโ€™s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you wonโ€™t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

HI Team , I am receiving the follwing error while accessing Yves & Zed layer Fatal error: Comp

U04K0HBB7FW
U04K0HBB7FW Posts: 4 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

HI Team ,

I am receiving the follwing error while accessing Yves & Zed layer

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.3.28 located at: /usr/local/sbin/php-fpm in /data/vendor/composer/platform_check.php on line 24

In Composer Json file entries

"require": {
"php": ">=8.1",

"platform": {
"php": "8.1"
},


Deploy.yml file entries

environment: docker

image: spryker/php:8.1

Deploy.dev.yml file entries

environment: docker
image:
tag: spryker/php:8.1


Deploy.dev-local.yml file entries

environment: docker
image:

tag: spryker/php:8.1

While running php -v in command prompt showing

PHP 8.1.17 (cli) (built: Mar 16 2023 14:38:37) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.17, Copyright (c) Zend Technologies
with Zend OPcache v8.1.17, Copyright (c), by Zend Technologies

Do we need to check any other files ?

Thanks
Ravi

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,005 โš–๏ธ - Guardians (admin)
    edited March 2023

    can you do the following:
    docker/sdk cli and then in there do php -v

  • U03FNK5A87J
    U03FNK5A87J Posts: 26 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    Your deploy..yml should contain the image: image:
    tag: spryker/php:8.1-debian

  • U04K0HBB7FW
    U04K0HBB7FW Posts: 4 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    โ”€$ php -v
    PHP 7.3.28 (cli) (built: Apr 29 2021 20:00:40) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.3.28, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.28, Copyright (c) 1999-2018, by Zend Technologies

  • U04K0HBB7FW
    U04K0HBB7FW Posts: 4 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    How to change this version to php 8.1 ?

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,005 โš–๏ธ - Guardians (admin)

    whenever you change something in your deploy-files you need to run docker/sdk bootstrap <your-deploy-file> again. and then docker/sdk up

  • U04K0HBB7FW
    U04K0HBB7FW Posts: 4 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    Thanks Florian for your help.