Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Andrey 1 year, 6 months ago.

Assisted by: Andrey.

Author Posts
October 19, 2023 at 2:04 pm #14615931

Aline

Hello,

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

Thank you in advance for your help !

Screenshot-2023-10-19-à-16.01.08.png
October 19, 2023 at 10:31 pm #14619443

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

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.

https://wpml.org/faq/wpml-plugin-cannot-connect-to-wpml-org/

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');

https://wpml.org/it/faq/troubleshooting-registration/

If this doesn't help, then you need to resolve the issue of why your localhost website cannot connect to our APIs.

October 20, 2023 at 8:20 am #14621499

Aline

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 🙂

October 20, 2023 at 11:39 am #14622983

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I am glad to hear that it works now. Have a lovely weekend ahead 🙂