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 , I received an email from @U014FT0H22Z about a possible update on security issue. When I try
Hi , I received an email from @U014FT0H22Z about a possible update on security issue.
When I try to run on my b2b app:
composer why-not spryker/http 1.7.1
I get the following:
spryker/http 1.7.1 requires php (>=7.4 but 7.3 is installed)
How do i update php to 7.4? Will just updating it in composer.json be fine?
Comments
-
-
composer.json
+deploy.{project}-{env}.yml
.0 -
Hey Valeriia I changed the image in my deploy.dev.yml file from
environment: docker.dev image: tag: spryker/php:7.3-alpine3.12
to
environment: docker.dev image: tag: spryker/php:7.4-alpine3.15
and then in composer.json i changed php
"require": { "php": ">=7.4",
0 -
getting the same issue
0 -
Your requirements could not be resolved to an installable set of packages. Problem 1 - php is present at version 7.4 and cannot be modified by Composer - spryker/rabbit-mq 2.15.0 requires php-amqplib/php-amqplib ^3.1.0 -> satisfiable by php-amqplib/php-amqplib[v3.1.0]. - spryker-feature/spryker-core 202108.0 requires spryker/rabbit-mq ^2.13.0 -> satisfiable by spryker/rabbit-mq[2.15.0]. - php-amqplib/php-amqplib v3.1.0 conflicts with php-amqplib/php-amqplib v3.1.0. - spryker-feature/spryker-core is locked to version 202108.0 and an update of this package was not requested.
0 -
Did you run
docker/sdk boot deploy.dev.yml && docker/sdk up
after your changes?0 -
Also
composer.json
has two php references.
https://github.com/spryker-shop/b2c-demo-shop/blob/master/composer.json#L2350 -
Yes I did Valerii. The second one I also changed to 7.4
0 -
Then this one is the obvious candidate to be updated -
spryker-feature/spryker-core is locked to version 202108.0 and an update of this package was not requested.
0 -
Itβs strange but I have it mentioned as
"spryker-feature/spryker-core": "^202108.0",
0 -
If you won't find a way to update here, please either involve SA or BE dev assigned to a project or submit a support request providing your composer.json and composer.lock file so we will be able to investigate this for you.
0 -
ok i can wait for dev to answer the question first
0 -
@valerii.trots is there any documentation on updating from php 7.3 to 7.4? Are there any frontend libraries that need to be changed somewhere?
0 -
Don't think there is anything like that as every project is individual kind of.
There are general articles about updating Spryker projects like https://docs.spryker.com/docs/scos/dev/updating-a-spryker-based-project.html.0 -
Hi Valerii, I was able to update successfully to php 7.4. But now when I run
docker/sdk up --build --assets --data
I get the following error when the following command is being run;
vendor/bin/console data:import --config=data/import/starboard/setup/minimal_GLOBAL.yml
The error is in
/data/src/Pyz/Zed/DataImport/Business/DataImportBusinessFactory.php
the function
/** * @return \Spryker\Zed\DataImport\Business\Model\DataImportStep\DataImportStepInterface */ public function createAddLocalesStep(): DataImportStepInterface { return new AddLocalesStep($this->getStore()); }
getStore()
is not being recognized0 -
If you are able to reproduce the problem using our public demo shops, please create a support request to fix core issue and our development team will do so.
Unfortunately I'm not a dev and don't have access to the project for debugging the problem you face.0 -
-
this was the issue
0 -
the getStore() was removed and i think no documentation was provided on it
0 -
https://api.release.spryker.com/release-group/3892 - this is the release group where the module was a part of a release.
There you can find a link to project level changes - https://github.com/spryker-shop/suite/pull/945/files.0 -
Thanks Valerii, these are important links indeed.
How do you find the release group? This will be important for future.
0 -
https://api.release.spryker.com/release-history and found by date
Jan 4
and ticket numberTE-10179
from your link.0 -
Also note that officially, no project must run on <7.4 since August 2021
https://docs.spryker.com/docs/scos/user/intro-to-spryker/whats-new/supported-versions-of-php.html0 -
Thanks
0 -
@UQK3ZPJEN
Shouldn't then the Demo repos be updated?
https://github.com/spryker-shop/b2c-demo-shop/blob/master/deploy.dev.yml0 -
They will
Afaik they already should have dev branches according to it
Also official releases and tags are immenent.0 -
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 927 Developer Corner
- 785 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random