-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Stabilize Composer #4359
Comments
+1 |
I was trying to use the path repository feature in Composer but wasn't able to until I manually updated Composer. Would be good if Magento updates Composer for us. |
Stabilizing composer is not yet possible because one of its dependencies, magento/composer 1.0.3, pins the composer version to 1.0.0-beta1. I therefore opened a PR to get magento/composer 1.0.4 with a stabilized composer requirement so to become able to update here. |
Hi guys Another vote for stabilizing composer/composer. We run into an issue on our hosting with Magento 2.1-rc2, because Magento ships with version 1.0.0-beta1 When we try to login to our backend, a PHP warning is thrown:
This happens because in version 1.0.0-beta1 of composer this line fails: In a later version (not exactly sure which one) it was fixed by adding an If we manually add the Please, consider putting a stable composer/composer version in Magento 2.1 GA, so we can actually run it on our hosting. Thanks! |
@piotrekkaminski: can you try to get this change into Magento 2.1 GA? We currently work around it by changing this line in our
to:
Which gets us around the issue, but it feels a bit like a hack. We've been using it for about a week now, and haven't noticed any downsides to it yet. |
It would be tremendously great in our eyes if we could see some traction here. |
Chiming it to get some action on this. Composer was stable ages ago - it would be nice to not have to include alpha software (even if I don't doubt the quality of Composer). |
It is on the roadmap @AydinHassan to upgrade to latest. |
Can we share where on that roadmap? :) I think this is a perfect fit for "developer experience". |
@piotrekkaminski when? where is the product roadmap? |
Hello what is solution this problem but i'm too instal clear Mag 2.1 and see this problem. |
I also have this problem after upgrading from Magento 2.0.7 to Magento 2.1:
Disabling open_basedir works but is not ideal but I am not in any kind of live environment. Will there be a patch for this, or could anyone expand on the fix presented by @hostep or @mombrea ? |
@jaimiedijstra just add |
Thanks @jameshalsall I have done this for the time being, seems the best solution. Hoping a later update will change this. |
I just noticed this ticket is lacking a MAGETWO reference number. @piotrekkaminski: are you guys tracking this request in your internal system? |
@hostep: Good point, I'll escalate this via enterprise gold support after a bag of sleep. |
Ref: magentocommerce.com Ticket #03188454 |
"config": { I used this code to solve a:4:{i:0;s:270:"Warning: is_dir(): open_basedir restriction in effect. File(/etc/pki/tls/certs) is not within the allowed path(s): (/var/www/vhosts/websitename.in/:/tmp/) |
@maddyboy: Disabling TLS is counter-productive and your last comment therefore a flawed example. To deal with the error take the information given in the error message directly. Configure the You don't want such a basedir restriction on certificates (you normally want these certificates read-only but accessible from the PHP process). /r Just in case my comment might sound harsh, it's not meant so. I only address my personal opinion saying what I think is wrong and provide as well what I think is right. If a concrete example is missing or there are any further questions or critique: as open my comment is, as open I'm to feedback. I'm also aware of the good parts, e.g. providing the error message in text-form allows indexing so is identifiable by future users leading to the issue and the solution discussion. So thank you for your contribution. |
Composer version was bumped to stable one, but minimum stability is still alpha: https://github.com/magento/magento2/blob/develop/composer.json#L261 (maybe it's due to Zend Code 3.x or something?). |
Was reduced to alpha in the the past due to earlier required alpha composer lib version. NOTE: This commit removes composer.lock to trigger the CI builds w/o it. It is not intended to be incorporated upstream. Refs: - magento#4359
I see... Planned to check by myself as well. Could you prepare a PR with regenerated |
Stability revert from alpha to stable. In 79c9052 set to alpha due to earlier required composer/composer version which was not yet stable. Composer upgrade was blocked due to changes w/ composer autoloading and a PHP 5.3 regression allowing slash-prefixed class names in the past and the unlucky coincidence that di.xml files made use of such class-names, fixed in 0b243b8. Now composer was updated in 0364bf9 and alpha degradation can be lifted. Refs: - magento#4359 - 79c9052 - 0b243b8 - 0364bf9
Sure I can do that, I have a test build running currently on Travis already and can use the composer.lock from my local install test. |
@ktomk: removing Just a small hint: if you only want to update the composer.lock file's "metadata" (this is probably not the correct term), and not update all the dependencies to the latest versions, you can run: Anyway, very happy this is (finally) happening, thanks to everyone involved! |
@hostep; Thanks for the feedback. You're right |
Hi all, I am install it in shared hosting, and i belive dont have access to /etc/pki/tls/certs. I also try to add the folder open_basedir via custom php ini, but the directory still not included in open_basedir of php status info. I believe this problem is still related to this thread, has it been solved? how do i need to do in order get the error solved without opening other issues, thank you. |
@bunhin: Support requests don't belong into the Github bug tracker but the forums. Search the existing reports there, e.g. https://magento.stackexchange.com/questions/137516/error-on-admin-login-magento-2-1/144254#144254 |
This particular issue can be closed as it is already fixed in @bunhin thanks for searching for an open issue before filling a new one, you really have the same error mentioned in this thread. Please use solution from #4359 (comment) or previous comment. Fix will be available in 2.2 Magento release, I'm not even sure it could be backported to 2.1 due to backward compatibility constraints. |
On shared hosting, it is not easy to upgrade composer because can not login into magento backend, i have tried to change composer version, but the error persist, is it any other way round? such as replacing a file ? |
[Owls] Eliminate @escapeNotVerified in Sales-related Modules
IIRC minimum stability is alpha only because of composer. At 4th of April (or around that day) composer finally went stable and 2.0.5 yet still has the alpha version tagged, doesn't it?
So I think it would be worth to move to ^1.0.0, we did this in magerun as well the last month and it's just straight forward.
The text was updated successfully, but these errors were encountered: