Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to register your website with WPML but are unable to do so because the site key does not match. Additionally, there is a connection error indicated in the 'Advanced Translation Editor Error Logs' showing a cURL error, suggesting that WPML cannot connect to its servers.

Solution:
First, ensure that there are no security modules on your website that might be blocking requests. You may need to whitelist the following domains with your hosting provider:

  • wpml.org
  • cdn.wpml.org
  • api.wpml.org
  • api.toolset.com
  • cloudfront.net

For more details, see https://wpml.org/faq/wpml-plugin-cannot-connect-to-wpml-org/.
Next, follow these steps:

  1. In your website, go to Plugins -> Add New -> Commercial.
  2. Unregister WPML by clicking the unregister link.
  3. Then go to https://wpml.org/account/sites/.
  4. Delete the existing site key.
  5. Create a new site key.
  6. Then go back to Plugins -> Add New -> Commercial on your website.
  7. Click the register link and use the new site key to register.

For more details on installation, see https://wpml.org/faq/install-wpml/.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket at WPML support forum.

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 5 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year ago.

Assisted by: Waqas Bin Hasan.

Author Posts
May 29, 2024 at 9:36 am #15682489

Sytse

Background of the issue:
I am trying to register my website with WPML and need to enter a valid site code.

Symptoms:
I am unable to register the site as the site key does not match.

Questions:
What steps should I follow to successfully register my site hidden link with a valid site code on WPML?
Can you provide guidance on resolving the issue where the site key does not match, as described in the documentation I followed?

May 29, 2024 at 9:59 am #15682652

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to our recent chat whenever you're ready, I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

Regards.

May 30, 2024 at 5:24 am #15685816

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates, I'm checking this and 'll get back to you accordingly.

May 30, 2024 at 6:08 am #15685832

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for waiting on this.

I've tried different things including updating WPML to latest versions by uploading manually. However, there's this error in the "Advanced Translation Editor Error Logs" (hidden link):

> cURL error 7: Failed to connect to ate-production.s3proxy.wpml.org port 443: Connection refused

This means that WPML is unable to connect to one or more of our servers. This may be a temporary issue or a false-positive. However, are there any security modules installed on your website? Because the server might be blocking some requests.

You may also need to whitelist the following domains (check with your hosting provider):
- wpml.org
- cdn.wpml.org
- api.wpml.org
- api.toolset.com
- cloudfront.net

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

Once that's fixed and/or confirmed, please retry these steps:

- In your website, go to Plugins -> Add New -> Commercial.
- Unregister WPML by clicking the unregister link.
- Then go to https://wpml.org/account/sites/.
- Delete the existing site key.
- Create a new site key.
- Then go back to Plugins -> Add New -> Commercial on your website.
- Click the register link and use the new sitekey (created above) to register.

See https://wpml.org/faq/install-wpml/ for more details.

May 30, 2024 at 11:13 am #15687521

Sytse

Waqas, we have been testing, and are one step further:
First, we turned off the server's entire firewall. Still unknown whether this had any impact, but at least we ruled that out with that.

Then, using the steps you recommended, I tried registering the site again. That returned the same error message again. But, I can also click on a hyperlink from our own website to register a new site. When I click on that, I am sent to the WPML website, it opens the overlay for the new registration, and there it prefills as the url "bootendart.bluntlabs.nl". This is the web address where we developed the website.
I did implement this, I can register WPML on the site. I can now also translate pages, and save them. However, it saves this in the backend, but does not show the changes frontend.

It looks like there are two translation tables: one for the old site in the bluntlabs development environment, and one for the new, live website. And the new live website now seems to be linked for translation management to the table used by the old site on the development environment.

Some more background:
After we moved the website with Duplicator to the live environment (bootendart.co.uk), I know I received a query from WPML: It had been signalled that the site had been moved. I had to choose whether the site was in development or production. I then contacted support, because production was not working, so I could choose development.
Now I don't see this choice in the WPML settings anymore.

I hope you can see whether my assumption is correct, whether our site can be/remain linked to the 'new' table and that we can let go of any connection to bootendart.bluntlabs.nl.

Sytse

May 30, 2024 at 12:26 pm #15688042

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

I was apparently checking hidden link, since you provided access and debug information of the same. And have no idea about your other dev site and/or the migration.

However, when you mark a site as a dev or production of an existing one, these share the same translation account and are linked, as you've noted (https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/).

As per my understanding, your assumptions are correct and things are working fine now.

Since the original issue was about registering the site which I understand is working fine now (after realizing that the correct URL is "bootendart.bluntlabs.nl" and as you mentioned above), please feel free to close this ticket. However, if the same issue still persists, I can look further into it. Please let me know.

On the other hand, if you're having issues regarding migration (i.e. site move/copy), I recommend opening a separate ticket because as per forum policy we can only handle one issue per ticket. So you can get more to the point help, without mixing up several issues in one long ticket.

May 30, 2024 at 1:31 pm #15688299

Sytse

Waqas, thank you very much.
In fact, this topic of not being able to register the site has indeed been resolved. We can therefore close this one.
I have started a new chat/ticket to try and resolve the issues with the migration and the possibly disconnected translation table.
Thanks!