Closed donquixote closed 4 years ago
You used your local composer
to create the project. Since you have PHP 7.2 locally, the dependencies have been calculated for that PHP version.
In this case, it's just a matter to run docker-compose exec web composer update
to fix the composer lock file with the correct dependencies.
Closing as documentation already says to use docker also for the project creation.
Thanks! Almost correct. I used the new command that avoids using local php. The command contains a parameter that specifies the php version as 7.1. Unfortunately this did not work for me and I had to change the parameter to 7.2 to make it work. I will try this again and see.
On Thu, 9 Jan 2020, 10:32 Francesco notifications@github.com wrote:
You used your local composer to create the project. Since you have PHP 7.2 locally, the dependencies have been calculated for that PHP version. In this case, it's just a matter to run docker-compose exec web composer update to fix the composer lock file with the correct dependencies. Closing as documentation already says to use docker also for the image creation.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/openeuropa/drupal-site-template/issues/58?email_source=notifications&email_token=AABEUEE5FAQJMNC5LS4KLA3Q43VJNA5CNFSM4KELHJDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIPT3RY#issuecomment-572472775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEUEF5MNK6NSLPWBGEJJTQ43VJNANCNFSM4KELHJDA .
We'll report to the image maintainers that 7.1 has issues on Linux machines. Thanks for the reply, we can confirm that the PHP version is taken into account for package selection thus the error comes from the change of PHP version between project creation and usage.
I will try this again and see.
I think we should simply use 7.2 instead for this project (EUROFOUND).
Which PHP version is used in projects hosted in the Commission machines is a decision to be taken with the devops of DIGIT.
(version debfcbd1284644faa5fecf2cfcb9ec5af14e7126)
When I try to run
I get this
Changing PHP version to 7.2 fixes this.