I would like to install WPML on a localhost website (I use MAMP 6.8). I registered the website in my account, but when I try to enter the key, I get the following error:
Connection error: Unable to get data from service. Detailed error: cURL error 7: Failed to connect to api.wpml.org port 443: Bad file descriptor
I don't really care about automatic updates, but without registering the key, the plugin won't work at all, I cannot go further in the setup process.
I've had this problem with localhost websites for years and never managed to find a solution.
When I go to the support tab, in the configuration journal I found the following message:
code: http_request_failed
message: cURL error 7: Failed to connect to cdn.wpml.org port 80: Bad file descriptor
I'm sorry that you ran into trouble with this. With the latest versions of WPML, you should use the site key to activate it. This is how the plugin works. Your local machine probably cannot connect to our servers, api.wpml.org. However, I haven't had this problem with MAMP and Local on my local machine.
You can try to add the site key by adding the following line to the wp-config.php file, right before /* That's all... to see if this makes a difference:
define('OTGS_INSTALLER_SITE_KEY_WPML', 'ADD YOUR KEY HERE');
Thank you for your answer. I finally managed to solve the problem: it didn't come form MAMP, but from my computer firewall. Seems to be working fine now 🙂
I am glad to hear that it works now. Have a lovely weekend ahead 🙂
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.