Support » Localhost Installs » Could not establish a secure connection to WordPress.org.

  • Resolved loiruca

    (@loiruca)


    Hey all, I need some help here. I just installed MAMP and WP on my Mac. The install went perfect and I’m able to login into the website and all. However, when I try to install a plugin or a theme it gives me this message:

    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.

    Then if I click on the ‘Add New” button again, the message goes away and it will show me the browser button to get the theme or plugin and I am able to install it fine. Then, when I try to activate the theme, it goes to a page that says:

    This page isn’t working localhost didn’t send any data.
    ERR_EMPTY_RESPONSE

    Also, worth mentioning that while this is happening, the site is loading REALLY slow… it takes like 10 seconds to load a page.

    I’m very new to installing all this in my localhost but I managed to find the php error log, but I have no idea what to do with it.

    Here is the php error log:

    [05-Sep-2017 22:09:09 UTC] PHP 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 /Applications/MAMP/htdocs/sites/wordpress/JEP/wp-admin/includes/translation-install.php on line 65
    [05-Sep-2017 22:09:59 UTC] PHP 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 /Applications/MAMP/htdocs/sites/wordpress/JEP/wp-admin/includes/theme.php on line 471
    [05-Sep-2017 22:11:28 UTC] PHP 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 /Applications/MAMP/htdocs/sites/wordpress/JEP/wp-admin/includes/theme.php on line 471
    [05-Sep-2017 22:15:55 UTC] PHP 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 /Applications/MAMP/htdocs/sites/wordpress/JEP/wp-admin/includes/theme.php on line 471
    [05-Sep-2017 22:17:51 UTC] PHP 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 /Applications/MAMP/htdocs/sites/wordpress/JEP/wp-includes/update.php on line 131
    [05-Sep-2017 22:17:57 UTC] PHP 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 /Applications/MAMP/htdocs/sites/wordpress/JEP/wp-includes/update.php on line 323
    [05-Sep-2017 22:18:03 UTC] PHP 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 /Applications/MAMP/htdocs/sites/wordpress/JEP/wp-includes/update.php on line 501

    PLease, please, can someone please shed a light here and help me?

    Thanks!

    • This topic was modified 9 months, 2 weeks ago by  loiruca.
Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s right in this line:

    WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.

    This happens a lot to me when working in localhost with a wonky internet connection. It’s basically saying that WordPress (on your local machine, that is) is reaching out to wordpress.org, but can’t connect securely. (HTTPS takes up a bit more bandwidth than plain HTTP.)

    The only solution I’ve found is to get a better internet connection. Sometimes bad weather causes this for me, and it’s just a matter of waiting.

    As for the ERR_EMPTY_RESPONSE error, I’m not entirely sure. I haven’t run into that one yet. But I bet a stronger internet connection may make that go away as well.

    • This reply was modified 9 months, 2 weeks ago by  kjodle.

    @kjodle thanks much for your response. Yep, you’re absolutely right. The wifi here is crappy. I used my iPhone hotspot and the theme activated in 3 seconds and plugins got installed.

    Thanks!

    Glad that you got it sorted! Happy I could help. Cheers.

    I’m having the same issue, NOT on a local server. It’s my server, in that I’m not shared on GoDaddy or something. This is the only site out of dozens that is having the issue. WP 4.9.1, tried turning off all plugins, reverting to default WP theme, etc. Host says connection is fine, newest SQL, etc.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Could not establish a secure connection to WordPress.org.’ is closed to new replies.