It needs connectivity to wordpress.org and is timing out. I am behind a corporate firewall. I have never had this issue come up before in previous versions. Why does themes.php need access to wordpress.org and what can I do so it doesn’t (or maybe something that will allow me to use my proxy settings).
Adding in error message:
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
C:inetpubwwwrootticketwp-adminincludestheme.php on line 298
This is definitely new to 3.7. We have 3.6.1 installed 4-5 times and no issues. I would have people chopping off my head if they couldn’t change their theme.
Update: 3.8 fixed a lot of the major issues. However we still cannot find plugins, find themes or get and of the dashboard feeds. If anyone has a solution to these – even if it a suggestion for the proxy server, that would be helpful.
Navigating WP admin in general tends to trigger multiple external requests, such as fetching news feeds and theme/plugin updates (not counting whatever plugin/themes might be doing on their own).
You can put configuration constants into
wp-config.php
to block external requests completely/partially:Or configure external requests to use your proxy settings:
Plus
WP_PROXY_USERNAME
andWP_PROXY_PASSWORD
for authentication.This is a problem with changes in WordPressâ HTTP API. It isnât fully compatible with cURL anymore.
I am not sure, why exactly it happens (there is no context information given, when this error occurs), but you can add a temporary fix.
In a plugin, or at the very end of your
wp-config.php
, add the following lines:This will disable cURL and make the error message go away without affecting other components on the server.
For completeness, here my current cURL details:
I did not have timeouts but the https://api.wordpress.org requests were getting
500 handshakefailed
errors from the corporate firewall. I discovered that on my Ubuntu 12.04 system, I had failed to installphp5-curl
. Once I installed it and restarted apache2, the problem went away.In your case it might be only a network issue. But I’ve had an issue with the same warning (so it may apply, though it may have several possible reasons) and found a solution within WordPress here, though on localhost. They suggested replacing the files referenced in the error message by the same files from fresh install of the same WordPress version (just download the .zip file for that version, unpack and copy the file in question).
In my case it was
(path-to-wordpress)/wp-include/update.php
, in your case it would be(path-to-wordpress)/wp-admin/include/theme.php
. As I understand the issue, some parts of a file where establishing the secure connection is handled went corrupted during an update.