-
Notifications
You must be signed in to change notification settings - Fork 20
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
Unable to install packages on Windows and PHP7.3.1 #104
Comments
Running
So this seems related to #4703, #72 and it's resolution #73. Has #73 not been merged into the latest WP-CLI 2.1.0? |
The fix in #73 has been merged into WP-CLI and is part of v2.1.0. My first guess would be that the |
The |
Okay, so the fix we did has a few conditionals, and maybe one if them is failing: https://github.com/wp-cli/package-command/pull/73/files#diff-ca5ded108d7e84b923c359071e50f993R1070 Can you check whether one of these environment variables might be set for you? |
Okay, to be more precise, check whether any of the following exist:
Also, maybe the check to see whether you're in a Phar is failing for you. Please verify the result of the following command:
|
Only |
Okay, so I assume that:
|
|
Okay, so this is in fact an upstream issue with Composer on Windows then. Composer fails to properly validate the provided CA file here: https://github.com/composer/ca-bundle/blob/1.1.0/src/CaBundle.php#L85 This means that there's not much to change at the WP-CLI side of things, but it might make sense to introduce a bug report to the Composer repository instead. |
@schlessera Doing that is unfortunately beyond my knowledge level, so, if you could be bothered to do it instead, it would be great. Regardless, thank you for your time! |
I've created an upstream ticket. I'm not sure this is something that can be solved by Composer, so you shouldn't hold your breath and just remove/adapt the I'm closing the ticket as there's currently no next action for WP-CLI, but we can reopen if needed. |
I will set the |
I was facing the same issue on my windows setup. Quick SOLUTION is:
I notice that the file
For both the above cases, I have followed the below steps:
More Details My old version of WP CLI was
I have update my WP CLI version:
But, After update still getting the same error.
I have execute the
I thought its composer issue so I was update an composer:
After composer update still getting the same error.
After a search on stackoverflow, I found the solution. https://stackoverflow.com/questions/28858351/php-ssl-certificate-error-unable-to-get-local-issuer-certificate After implementing the solution, I have successfully fixed the above issue.
Hope, It helps for you too. |
Here is my WP CLI info:
And here is the response when trying to install a package:
Everything else works, WP CLI is in
D:\dev\wp-cli\
and PHP inD:\dev\xampp\php\
and both are set in PATH.This is the content of
D:\dev\wp-cli\wp.bat
:Thank you!
The text was updated successfully, but these errors were encountered: