Skip Navigation

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

Problem:
The client was experiencing issues with automatic translation credits and needed assistance in setting up American English as a new language on their site.

Solution:
1. If the client recently changed the domain, domain provider, or server, they need to re-register WPML:
- Go to https://wpml.org/account/websites/
- Delete the site URL if it's already registered.
- Re-enter the site URL to create a new site key.
- Copy the key and register WPML again under Plugins > Install > Commercial.

2. To set up American English as a new language:
- Go to Languages > Site languages > Edit languages.
- Edit the default English language to change the "default locale" to en_GB.
- Add a new language and create a custom language for US English, using en_US as the "default locale".

3. If encountering issues with JS scripts and CSS sheets being blocked, consider disabling the rules or the plugin "CSS JS Manager, Async JavaScript, Defer Render Blocking CSS".

4. Regarding translation credits, once the client reaches a certain usage, they will be prompted to pay the open amount as an internal fraud security measure.

If the solution provided here is outdated or not applicable to your case, we recommend opening a new support ticket. We also 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 further assistance is needed, please contact us at the 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 15 replies, has 4 voices.

Last updated by Andreas W. 6 months, 3 weeks ago.

Assisted by: Andreas W..

Author Posts
April 19, 2024 at 2:37 am #15541583

eamonnT

keeps saying I do not have enough credits when i follow link to purchase i get this message

There is a problem connecting to automatic translation. Please check your internet connection and try again in a few minutes. If you continue to see this message, please contact our support team.

April 19, 2024 at 5:52 am #15541749

Alejandro
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+01:00)

Hello!

I'll help you get started while a supporter takes your case.

Can you please let us know where exactly are you seeing this? Is this happening on WPML.org or in your website?

Can you write the steps to recreate this on your end or send us a quick video showing it to us so we can have a better idea of what to do next?

Thanks in advance.

April 19, 2024 at 6:31 am #15541838

eamonnT

see page 1 attached, when i click link to get more credits I get page 2

page 2.png
page 1.png
April 19, 2024 at 7:34 am #15542111

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

According to your second screenshot, I see there is an issue with the connection to automatic translation (our server). I suggest you enable a minimal environment as below and check this again:
- Deactivate all non-WPML plugins.
- Switch to the standard theme of WordPress.
❌ IMPORTANT: Please backup your database and website before proceeding ❌

Looking forward to your reply.
Thanks

April 19, 2024 at 9:00 am #15542422

eamonnT

that all seems a bit drastic.... any better way ?

April 20, 2024 at 3:22 am #15545388

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I would like to offer to have a closer look at the problem and request temporary access (wp-admin) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

April 23, 2024 at 11:47 am #15555730

eamonnT

any update please

April 23, 2024 at 3:46 pm #15557269

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

My apologies for the delay in answering, as I do not work on Sundays and Mondays.

I can see the following on WPML > Support > ATE Error Log section:

Alias domains to hidden link domain:
hidden link

Did you recently change the domain, domain provider or server of this website?

If so:

WPML must be re-registered every time a website is migrated or the domain or domain provider is changed.

1) Go to https://wpml.org/de/account/websites/

2) If the site URL is already registered, delete it from the list.

3) Now enter the site URL again. This creates a new site key.

4) Click on “Show key” and copy it.

5) Enter the key under Plugins > Install > Commercial (Tab) to register WPML again. If WPML is still registered here, deregister it first.

If the problem persists, please let me know.

Also, take note that I installed the WP File Manager Plugin, and had to take a look into the wp-config.php file. I was not able to access the server and once I tried to deactivate the plugin I got an error:

You have reached an error page on WPX.net

Also, please ask the hosting support to verify if they are handling any code inside wp-config.php that might be calling the site URL dynamically, as this could be causing issues on the site.

If this will still not clarify the source of the issue I will offer to take a copy of your site and test it on a virtual server.

Best regards
Andreas

April 24, 2024 at 2:59 am #15558541

eamonnT

Thanks that worked....

Can I ask for help on setting up American English , please or can this be set up as a new ticket.

Thanks again good work

April 24, 2024 at 3:50 am #15558560

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I am glad to hear that I was able to help you!

Go to Languages > Site languages > Edit languages.

Here you can edit the currently active English language and/or add another custom language.

Take note, that even if we use the UK Flag for English, by default the default locale here is en_US. The reason is, that the default language files from WordPress are using this locale.

Anyhow, you could change this default setting to en_GB and then create a second language for EN_US, but take note, that this new custom language needs to have a unique language code, as "en" is already reserved.

Also, take note that inside the WPML's plugin folder on your server, you can download custom flags.

Guide:
https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/custom-language-flags/

Do you want to run one language for British English and one language for American English?

If so, do you wish the currently active language to sit for GB and add a new one for the US?

April 25, 2024 at 3:51 am #15563086

eamonnT

Yes I wish to run 2 languages UK and American English )

I am English UK speaking, so my site content is written in UK English... I wish to add American English as a new language and translate my UK pages to the new American English language ... can you confirm the steps that I need to take please...thanks

1 How change default to en_GB
2 I see how I can add a new language if I can not call it en_US ( what 2 letters can I use that are unique)

Will I then be able to translate campervan pages from reference to campervan to RV example as part of the language translation process?

thanks

April 25, 2024 at 4:41 am #15563142

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

On WPML > Languages > Language Setup > Edit languages:

1) For the default English language change the "default locale" to en_GB.

2) Now use the button to add a new language at the bottom of the box.

3) Create your custom language for US, take note that the language code here can not be "en" as this is already used. You should be able to use en_US as the "default locale", if you followed step 1).

This should usually do the job, but in case you run into issues, please let me know.

April 25, 2024 at 12:14 pm #15565472

eamonnT

thanks

The credit was working, but now it is back to saying no credits and saying still a problem connecting.

see screenshot

nocredits.png
April 25, 2024 at 9:40 pm #15567410

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The issue occurs due to some JS scripts and CSS sheets beeing blocked by the plugin "CSS JS Manager, Async JavaScript, Defer Render Blocking CSS".

Disabling the rules or disabling the whole plugin solves the issue.

April 26, 2024 at 3:34 am #15567655

eamonnT

Thanks, But I deactivated the plugin and still same issue can not connect...