Support » Localhost Installs » Warnings before and after installing plugins

  • Resolved eschmidtke

    (@eschmidtke)


    I have been googling for hours on this topic and find several people with this issue yet no resolution. I am running WP 4.1. I am working on a theme on 2 different local MAMP installations (one at home and one at work). I have been working on the theme for several months and all of a sudden on one of the installs I get warnings that WP cannot establish a secure connection to wordpress.org.

    At the top of my admin panel I get this warning:

    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/wordpress-GD/wp-includes/update.php on line 295

    Then after installing a plugin I get these:

    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/wordpress-GD/wp-includes/update.php on line 119

    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/wordpress-GD/wp-includes/update.php on line 295

    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/wordpress-GD/wp-includes/update.php on line 457

    I did a fresh complete backup buddy restore from the install that works but I still have the same problem so I guess it has something to do with MAMP but I’m perplexed.

    They all relate to $SSL when I reference the code lines. Im pretty new at this and not quite sure how SSL relates to a local install.

    Any help with this or suggestions would be great. Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    All connections to WordPress.org are done using HTTPS when possible, it sounds like your MAMP setup is missing some key components to making this connection run as intended, this could be caused by various things, but a few common ones to check at first;

    – Is outbound traffic filtered, if so make an exception for WP
    – Have you recently enabled new modules in MAMP, if so one of them might be interfering
    – Do you have cURL enabled, if not enable it

    Thread Starter eschmidtke

    (@eschmidtke)

    Hi Marious.. Thanks for the reply. Just a few more questions…

    -Outbound traffic- is this related to the company firewall and if so what do I need to request from our IT guy to help with this issue?

    – new mamp modules-I haven’t modified mamp since install over a year ago, this issue just recently started. Possibly after 4.1 update but not sure

    -cURL- not familiar with this at all but did some looking around. Does this mean installing this line in Terminal?
    sudo apt-get install php5-curl

    I’m a graphic designer with novice web dev skills with huge fear of the black terminal screen on Mac so would like to know a bit more of what I need to do… Can you please elaborate a bit? Thanks so much for your help.

    Thread Starter eschmidtke

    (@eschmidtke)

    Hi Marius (sorry I spelled your name wrong last post),
    Our company uses Trend Antivirus but I am not blocked form wordpress.org. Is that what you meant by outgoing traffic?

    Thread Starter eschmidtke

    (@eschmidtke)

    Also, I guess it is not plugin related, that was just where I noticed it first (I just learned about debugging display) My Home page says this:

    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/wordpress-GD/wp-includes/update.php on line 295

    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/wordpress-GD/wp-includes/update.php on line 457

    Thread Starter eschmidtke

    (@eschmidtke)

    As for cURL,
    I checked phpinfo and is says its already enabled.

    Not really sure where to go from here…

    Moderator Marius L. J.

    (@clorith)

    Hi,

    No worries about the name, it happens surprisingly often 🙂

    The last error you posted is one that has (so far in my experience) only surfaced during an intermittent period of time when routing has been bad (internet provider issues somewhere along the internet), so just a quick start of the note; is it still happening?

    If it is, could you try visiting both http://api.wordpress.org and https://api.wordpress.org and see if either of them fail?

    Thread Starter eschmidtke

    (@eschmidtke)

    Thanks for the reply Marius, when i try either of those 2 sites I get this:

    WordPress.org API
    Maybe we should fill things out here. (link)

    Not familiar with this, do i need a key or something? Still confused as to who this only is an issue with one of my MAMP/Wordpress installs and not both

    Moderator Marius L. J.

    (@clorith)

    No worries, if you got that content that means you’re able to reach the WordPress API normally, this helps us in troubleshooting 🙂

    It lets us know that you aren’t having connection issues, so that means it is most likely a configuration problem with your webserver/php setup causing it.

    Could you compare the configurations of the two MAMP installs, it’s most likely a missing setting on one of them (I’m not familiar with the MAMP settings page, but there should be a section for enabling/disabling modules which you’ll probably want to check)

    Thread Starter eschmidtke

    (@eschmidtke)

    The php build on my home computer was more recent than the one that was not working so I reinstalled MAMP and migrated the working site over and everything seems fine now. Thanks for trying to help me out! Have a great night

    Moderator Marius L. J.

    (@clorith)

    Sounds like it might’ve been an out of date cURL install then, glad you got it working!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Warnings before and after installing plugins’ is closed to new replies.