Loïc what pro features are you unable to use without being unable to insert the license code, other than the ability update remotely? I do not have this issue.
ACF’s servers are in Denver.
OVH is multinational, all outside of US.
The data center with Rackspace Cloud Sites that I use is in Chicago.
It definitely has something to do with the hosting configurations, but these things can be bypassed, changed, or patched in most cases…once we know what it is. We need to figure out what it is.
// connect
$request = wp_remote_post( $url, array(
'timeout' => 45,
'body' => $post
));
print_r($request);
results in
WP_Error Object ( [errors:WP_Error:private] => Array ( [http_request_failed] => Array ( [0] => couldn't connect to host ) ) [error_data:WP_Error:private] => Array ( ) )
I have tested wp_remote_post and wp_remote_get with the url “http://codex.wordpress.org/Function_Reference/wp_remote_post” and it works.
I have tested wp_remote_post and wp_remote_get with the url “http://connect.advancedcustomfields.com/index.php?a=get-info&p=pro” and it does not work either time, returning the message I pasted earlier.
I also tested the url “http://assets.advancedcustomfields.com/add-ons/add-ons.json”, and “http://www.advancedcustomfields.com/” and they fail the same.
default_socket_timeout is 60
I have installed woo commerce on this site and others on this same host…included in woo commerce system status it tests cURL, wp_remote_post…both of those are working.
The host supports cURL.
Inside acf_pro_get_remote_response(), it makes a call to wp_remote_post and passes it a valid url but passes it an empty array for the [‘body’] argument via the $post variable.
The return from wp_remote_post in acf_pro_get_remote_response():
WP_Error Object ( [errors:WP_Error:private] => Array ( [http_request_failed] => Array ( [0] => connect() timed out! ) ) [error_data:WP_Error:private] => Array ( ) )
I got ya, if I didn’t know I could totally see it being a thing where everyone copies it with an extra space, and then when pasting that results in an extra character at the beginning and/or one missing at the end.
Some more details:
PHP 5.4.10
MySQL 5.1.61
Any more info available if needed.
As jsites said, this is not user error. It isn’t even an error with the activation code itself, as the error shows before even being able to enter in the code. This was established early on in the conversation.
It is an issue that has something to do with the hosting environment and the plugin, and the issue is common across at least 2 different hosting environments I see listed here. This is something that needs to be fixed in the plugin. I plan on looking into it more when I get a chance.
I have also attempted to get it to work on a fresh install and it did not work.
Hube are you using Cloud Sites or Cloud Servers on Rackspace?
Same issue here.
Simply going to the Updates page gives me “Error. Could not connect to update server.”
Other plugins that use self-hosted updates work fine.
I am using Rackspace Cloud Sites for hosting.
Using ACF Pro 5.1.0 (seen the problem for quite a few versions though)
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.