I came across unusual error while trying to install the plugins in wordpress development site hosted locally in Wamp server within our company network:
The error said:
“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”
It was few hours search which directed me to change the timeout in httpconfig.php and others as well and I tried all of them and finally I found out the blog to fix it which was:
The main culprit of the issue was the “proxy” being used for the connection within our company.
To get around the proxy we need to enter the proxy information in wp-config.php as below as mentioned in above link.
If the problem is happening when you search plugins or themes its probably because your connected to a proxy and you need to configure it on your wp-config.php
/** EXAMPLE - proxy settings */
define('WP_PROXY_HOST', 'proxy.url.com');
define('WP_PROXY_PORT', '1234');
define('WP_PROXY_USERNAME', '');
define('WP_PROXY_PASSWORD', '');
define('WP_PROXY_BYPASS_HOSTS', 'localhost');
define('WP_PROXY_HOST', 'proxy.url.com');
define('WP_PROXY_PORT', '1234');
define('WP_PROXY_USERNAME', '');
define('WP_PROXY_PASSWORD', '');
define('WP_PROXY_BYPASS_HOSTS', 'localhost');
Thanks to mario.andrade
Read more!