New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 7.0.4 is not supported by 2.1-RC3 #5131
Comments
Was just about to report this. Having the same issue here also on Xenial 16.04 PHP 7.0.4 Workaround is of course to install some third party repo and force the latest/untested zend php pckg. Unfortunately that just won't work for us here :/ Hoping for 2.1 to support the official Ubuntu bundle |
@orlangur @vkublytskyi It would appear that the version constraints added in the scope of MAGETWO-53293 (commit 01ab812 as example) were incorrect. The PHP version constraint should be Can this be fixed in the next RC? |
@oserediuk We are also experiencing this issue. The 2.1-RC3 is not working under Xenial with php 7.0.4. This is definitely a bug for us. Error message: |
Hello! Please, read this release note for 2.1-RC3 http://devdocs.magento.com/guides/v2.0/release-notes/ReleaseNotes2.1_RC3CE.html.You can use just 7.0.2, and 7.0.6 |
@oserediuk yes, it also says
So this still does not answer my question: Why PHP 7.0.4 is not supported by Magento 2.1? Is there a technical reason for this? |
@boldhedgehog yes - there were some issues specific to this version of PHP 7 that were later corrected. |
Might be related to https://bugs.php.net/bug.php?id=71914. We were getting this/similar errors on 7.0.4 and 7.0.5. I will update this ticket if i get more information. |
@boldhedgehog, you may install latest PHP 7.0.x from 3rd party library. |
@maksek Thanks for the update, closing issue. |
Situation is that at this time Magento 2.1 is not compatible with current Ubuntu LTS version until they upgrade their php (or by using an external ppa with all related security and management implications). I think that for the Magento ecosystem is vital that it works with Ubuntu server. This should be an absolute priority at the cost to write an ugly workaround to the problem. Magento just can't afford to drop Ubuntu server compatibility. Also I just tried the test case provided in https://bugs.php.net/bug.php?id=71914 and it works correctly in php 7.0.4. |
@giacmir, we are going to revalidate our test scenarios against 7.0.4, if not issues, we may include it back. |
Can somebody please confirm what exact PHP 7 versions are actually supported, because it's really confusing.
While over here it says:
Somebody really has to clean up the docs because it's really really confusing. |
@hostep , we will get the docs cleared up ASAP, apologies for the confusion, and thanks for pointing it out! |
Sorry about the confusion, it's fixed now. Be sure to refer to the 2.1 system requirements. |
My workaround: Edit app/bootstrap.php for those running php v7.0.4, change
to
and run this:
|
@ignaciomella worked like a charm, thx for sharing and much appreciated sir Top class individuals here |
@ignaciomella This won't help with Composer dependencies. |
Changing the app/bootstrap.php works around not being able to run it. After than you can use the magento setup:install to install and it'll just work. That being said, it really should be update to be 7.0.2-7.0.4,7.0.6. Considering a patched version of 7.0.4 is provided with Xenial, it should not be excluded by magento. Also in terms of long term supportability, requiring a PPA may not be ideal. |
@maksek any news regarding tests against 7.0.4? |
Although Tech requirement is PHP 5.6.x Our servers are cloud containers with PHP 7.0
We still have to Error in both Archive and Composer download
|
7.0.4 with Xenial must be in the list of supported PHP versions. |
Testing in progress... |
Ok, we finished excessive testing and 7.0.4 works fine on 2.1 branch. We are going to update composer with upcoming patch release. Thanks everyone for help. |
I have changed on my own both bootstrap and composer.json in order to run on Ubuntu Xenial with PHP 7.0.4. Magento 2.1.0 works w/o issues then. |
I used @ignaciomella method to modify the Bootstrap to get it to magento2.1 to install on php7.0.4 on ubuntu 16.04LTS and then updated using 3d party PPA to 7.0.8. But i started having random issues so I decided to start over and I was hoping by now there would be a patch. Can anyone comfirm use on php7.1? |
Why did you upgrade from 7.0.4 which is well maintained LTS release? It seems that latest PHP 7.0.8 is a code breaker for Magento. |
@stamster I only upgraded to 7.0.8 for development and stability testing. I have been pushing through to see what are the do's & don'ts before sending my e-commerce to a production server. My most recent dev server is Ubuntu 16.04 with php7.0.4 zero issues. |
Any idea by when the fix for the composer installation (for php 7.0.4) will be published? |
Hello @maksek, |
I see the fix has been done 9 days ago MAGETWO-54737: PHP 7.0.4 Support Looks like we'll never see it in 2.1. |
M2.2? Not supporting major LTS GNU/Linux PHP distro is a recipe for disaster, with so much basic issues M2 is just not production ready. |
Hello, So what do you think is the best, upgrade php 7.0.4 to php 7.0.6 ? |
i expected to see a 2.1.1 hotfix release, maybe i was too optimistic 😞 |
@Web-Wave Why would you upgrade your entire application environment, only because someone in the core of the project was lazy to change a few lines? We don't ask for a miracle but just two lines. What I did - changed bootstrap and composer checks for PHP7 on my own and M2.1 working fine (apart from other unrelated issues xD). And Magento does not follow SemVer specification anymore, why v. 2.2 when we are on 2.1 stack? Release 2.1.1 etc. |
@stamster, @slackerzz, @Web-Wave, @kitsor and others. This is not only one problem what we want to fix in 2.1.1 And it takes time to define such scope, fix/change implementation, validate that changes actually fixed the problem, no new regressions found and finally roll-out everything to all of you. We are not lazy, really ))) So, 2.1.1 is coming soon and this problem will be a part of this release for sure. |
@vzaporozhets Well, that's good, thanks for clarification that there will be actually 2.1.1 release! That's more logical, then to wait for 2.2. |
deleted - unnecessary comments |
I know it's not ideal, but I am simply using: --repository-url=https://repo.magento.com/ magento/project-community-edition=2.0.7 for now, it's not the end of the world. |
Canonical has updated php package in Ubuntu 16.04 to 7.0.8. |
@slackerzz So Canonical has been faster to upgrade the Operating System than Magento to change a single file? lol! |
@giacmir - yeah, hah, lol, but... a) ubuntu's not made in PHP I swear, every time I see a "lol"... |
Closed as the issue was already fixed for 2.1. |
Steps to reproduce
develop
branch on Ubuntu 16.04 Xenial.Expected result
Actual result
In 2.1-RC3 Composer and PHP code check both require PHP version 7.0.2 or 7.0.6+, but Ubuntu 16.04 package repository has only PHP 7.0.4 at this moment. Why PHP 7.0.4 is not supported by Magento 2.1 ?
The text was updated successfully, but these errors were encountered: