Cannot download or update plugins

I have looked at this thread: Warning: An unexpected error occurred and this also: Help! My Local site cannot establish a connection to WordPress.org and none of them have solved the issue.

Please help.

Hi Raph,

Some questions.

  1. can you post a screenshot of your error?
  2. What version of local are you on?
  3. What OS are you on?

Thanks
Dieter

This is what i’ve been getting.

i updated to 2.2.1 but this randomly started when i was on 2.2.0

im running OS Sierra 10.13

Hmm strange.
Is there a possibility to send a export zip file?
Then i can test on my setup.

its happening for all my sites, i cant access wordpress.org server. Im unable to download themes and plugins even when i create a new site

Please see Help! My Local site cannot establish a connection to WordPress.org

Sorry about that!

Hi @clay I’ve tried this already, it still doesn’t work. I noticed it works after resfreshing a number of times and then stops working again.

Any other solutions I could try? Really need to get this working

Whoops, I read your initial post too quickly. Sorry!

Can you please check the logs folder for the site in question? logs is adjacent to the app folder.

[03-Jan-2018 11:56:49 UTC] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /app/public/wp-admin/includes/update.php on line 121
[03-Jan-2018 11:59:28 UTC] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /app/public/wp-admin/includes/plugin-install.php on line 164
[03-Jan-2018 16:51:42 UTC] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /app/public/wp-admin/includes/plugin-install.php on line 164
[03-Jan-2018 16:52:39 UTC] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /app/public/wp-admin/includes/plugin-install.php on line 164
[03-Jan-2018 17:15:26 UTC] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /app/public/wp-admin/includes/plugin-install.php on line 164
[03-Jan-2018 17:16:02 UTC] PHP Warning:  An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /app/public/wp-admin/includes/plugin-install.php on line 164

This is what i found in php/error.log

@raph,

Thanks!

Are you behind a VPN or proxy by chance?

Hi, no I’m not but I am behind a firewall. I have also tried other networks that are not behind a firewall and i still get the same issue

Got it.

One more thing that may be worth trying after switching networks is going to Help » Restart Local’s Machine. This is sometimes helpful since it’ll reinitialize the VM’s network device.

Hi, tried that its still not working. Getting the same issue on another computer also. Any other ideas ?

It sounds like a networking issue to me. Usually the NAT change does the trick.

would appreciate a bit of guidance on how to change it?

The NAT change instructions are in Help! My Local site cannot establish a connection to WordPress.org

Can you provide screenshots of the output of those commands in Terminal after running them?

Hi i have attached it

@clay is it weird that nothing shows in the terminal when i run the command ?

@raph,

Thanks for the screenshot!

Nope, it shouldn’t have any output as long as the VM is shut down.

What pages are you seeing the error on?

On the plugin page mostly and I also checked the theme download page, same issue

Got it. Are there any other applications that may be blocking/reshaping internet traffic such as Little Sniffer?

Also, does your ISP block public nameservers such as those from Google? The Docker Machine uses 8.8.8.8 and 8.8.4.4 as DNS servers by default.

Can please you try the following?

  1. Right-click on the site having trouble in Local
  2. Go to “Open Site SSH”
  3. Enter ping google.com and provide the output after 5 seconds or so.