-
Notifications
You must be signed in to change notification settings - Fork 397
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
http_request_failed cURL error 60 - can't download from wordpress.org #930
Comments
I created a new instance of WordPress. I get a warning (not verbatim) that D:\localserver-Laragon\www\testlaragon20241228\wp-includes\pomo\plural-forms.php has "continue" in line 210 which is equivalent to "break". Did I mean "continue 2"? I tried to update the Hello Dolly plugin and got the curl error again. Also got the above warning again. I edited the PHP file to be "continue 2" I tried updating a theme. I got the following (verbatim): An error occurred while updating Twenty Fifteen: Download failed. cURL error 60: SSL certificate problem: unable to get local issuer certificate Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in D:\localserver-Laragon\www\testlaragon20241228\wp-includes\update.php on line 347 Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in D:\localserver-Laragon\www\testlaragon20241228\wp-includes\update.php on line 529 Edit: I don't know if it is germane, but the WP site in Laragon does not have an SSL or https: |
Check you System Variable path and make sure you don't have the wrong paths to another Laragon version. That will cause massive problems. |
Thank you for responding! |
On the Laragon context menu: Tools >> Path >> Manage Path and it will show you what Laragon will add/remove and what it shows in your User and System file path. Make sure it is for your newest installation and you only have paths to the installation you are running. On Windows this is Control Panel >> System & Security >> Advanced system settings >> Environment Variables |
Thank you again. I saw your first message just as I was considering uninstalling Laragon and starting all over. Here's what the path for Laragon shows in the window that you point to: I did a search (using Everything) for \bin\apache. All the Laragon entries are under: D:\localserver-Laragon\bin, which I take to mean that I am pointing at the right place. There are two other paths found that are for xampp, which I used before I switched to Laragon maybe 6 years ago. |
All of those entries should be under the USER section if it is applied. if you have xampp or any other paths in USER or SYSTEM after the correct laragon entries, you might have a bad time. If C:\A\B\D\httpd.exe is in your path and C:\Z\Y\X\httpd.exe is after it and it is a different version, you are going to have problems. I am not sure if laragon uses the system or user variable paths for configuration files, but that is something to be aware of too. |
I don't think that the xampp entries should be an issue. I don't think I've used xampp since I started using Laragon and Laragon was working fine until very recently. I am pasting the entire contents of the Laragon Tools Path window below, rather than just the Laragon portion as previously. I don't know if that helps or not. --------------- Laragon --------------- --------------- User --------------- --------------- System --------------- |
You have no Laragon related path variables in use. If they are not under USER, they have no effect. It only shows you what Laragon adds/removes in the top part. |
Hmm. I just tested loading a few existing Laragon sites. They loaded fine, except for the waring of: I tried updating the Astra theme in one site that I have been trying and got the error:
I loaded another site that I had not tried since the problem started, although it is fairly new. It's a multi-site installation. I loaded and then logged into the base site. No warnings were issued. I was able to update the Astra theme without problem. However, I could not access the child sites, either under View or under Dashboard. Got "Hmm...can't reach this page". I loaded another, quite old, site that I had done some testing on a couple of months ago (before the problems). It loaded fine and I was able to do updates without issue. I loaded a site a generated on 12/24/24 to test the issues. It loaded fine and I was able to login fine. I did not get the PHP warning about "continue". However, I was not able to update a plugin or a theme and got the cURL error.
This has me thoroughly confused. |
Your Environment Variable PATH for USER and SYSTEM is right there in your post. There is no Largon entries. All you have to do is click the link in the upper right of the window that displays that info to add the Largon path to USER. Then see if problems go away. |
Thanks and Happy New Year. I made that change. Do you have any other suggestions? |
When you use Chrome, it can cause all sorts of problems when trying to line out SSL issues. You may need to reload or press ctrl+F5 to hard reload. You still may need to close Chrome and relaunch it to clear up Chrome saying the site is insecure after fixing SSL problems. It looks like now you only have the plugin update problem with CURL not working because of: An error occurred while updating Twenty Fifteen: Download failed. cURL error 60: SSL certificate problem: unable to get local issuer certificate. Correct? |
While I generally use Chrome for all my day to day work, I am using the portable version. MS Edge is the default browser and that is where the Laragon sites open. |
My php.ini files have this: [curl] [openssl] |
You can do a new install of Largon 7 in another directory and try it. Once you do, Add/Remove programs will only show that version to remove. The other installation will work fine, but you can only run one or the other, not both. |
thanks again! I'm clearly in over my head. I am currently using Laragon 6, which is a recent change. I think I was on 5, but may have been on 4 before all this started. Did you have to generate the contents of the php.ini file manually or did the Laragon installation do it? The comments in the older sample below suggest not, but they are not repeated in the newer one. I have 27 php.ini files in the \localserver-Laragon\ directory, of which 14 have either -devlopment or -production appended to their names - so 13 working copies in different sub-directories. 6 of those are different PHP or x86/x64 versions and the rest are in ...\www_project name_\wp-content\plugins\brizy\vendor... sub-directories. Here's what is in D:\localserver-Laragon\bin\php\php-7.4.33-Win32-vc15-x64\php.ini which is the version I have been loading for Laragon 6: [openssl] ; If openssl.cafile is not specified or if the CA file is not found, the Here's what is in D:\localserver-Laragon\bin\php\php-5.6.9-Win32-VC11-x86\php.ini , which is ~2 years old. I don't remember what version I had been using under an older and working Laragon: [curl] [openssl] ; If openssl.cafile is not specified or if the CA file is not found, the |
If I just use Add/Remove to remove Laragon 6 and then reinstall, will the old work be lost? |
I uninstalled 6 and it leaves all the projects in the www folder. Zip the whole thing up to backup. If needed, just unzip it back, overwriting the new installation and it will be restored.
I just installed 6, checked the SSL box in settings and it worked like a charm. I didn't have to do anything to get SSL to work right. |
Sounds like the best shot would be to uninstall and reinstall. Not sure if I should go with 7 or stay with 6. I'm not prepared to pay for 7 and Leo is entitled to ask for the fee. |
I am not the original poster. I have added a docx file with related errors. I have been using Laragon for years without this occurring, so I am concerned about how to address it. The directions in the error messages point to files like php.ini that do not exist on the previously installed WP websites that work properly.
Jack
Laragon errors in WP 20241215.docx
Discussed in #917
Originally posted by kostritsaalex November 23, 2024
Hi guys,
Can you help me to address this issue:
Array ( [0] => http_request_failed cURL error 60: SSL certificate problem: self signed certificate )
What was done:
`[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
;curl.cainfo =
curl.cainfo = "C:\laragon\bin\php\php-8.1.10-Win32-vs16-x64\extras\ssl\cacert.pem"
[openssl]
; The location of a Certificate Authority (CA) file on the local filesystem
; to use when verifying the identity of SSL/TLS peers. Most users should
; not specify a value for this directive as PHP will attempt to use the
; OS-managed cert stores in its absence. If specified, this value may still
; be overridden on a per-stream basis via the "cafile" SSL stream context
; option.
openssl.cafile = "C:\laragon\bin\php\php-8.1.10-Win32-vs16-x64\extras\ssl\cacert.pem"`
Thanks!
The text was updated successfully, but these errors were encountered: