Skip to content Skip to sidebar

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

Problem:
Client was trying to activate a translation service on the WPML interface, but the page only refreshes without asking for the token and never adds the service.

Solution:
The issue was caused by the cache, clearing and disabling fixed the problem.

If this solution does not apply to your case, or if it seems outdated, 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 you still need assistance, 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.

This topic contains 6 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 1 month ago.

Assisted by: Waqas Bin Hasan.

Author Posts
June 24, 2024 at 9:40 am

Charline LACOSTE

Background of the issue:
I'm trying to activate a translation service on my client's WPML interface.

Symptoms:
The page only refreshes without asking me for the token and never adds a service.

Questions:
Why does the page refresh without asking for the token?
How can I successfully activate a translation service on WPML?

June 24, 2024 at 10:18 am
June 24, 2024 at 1:07 pm #15807428

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Thank you for your patience, I'm still working on this and 'll get back to you accordingly.

June 25, 2024 at 6:12 am #15816430

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Thank you for your patience on this.

I am trying to figure out the issue which is not just happening with the said service but is happening with all of the translation services.

However, I am unable to enable debug logs because in your setup the wp-config.php file is one level up than the WP root directory. This isn't accessible to me thus I am not able to find any underlying issues.

Can you either give me access to the wp-config.php (i.e. FTP) or enable debugging? See https://wpml.org/documentation/support/debugging-wpml/ for details. In any case, I'll also need access to the debug.log file which is usually created in wp-content folder of WP installation (after enabling the debugging and when there's an error is thrown).

I've set your next reply as private to share this information safely, in case you want to update the access info.

IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.

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

July 1, 2024 at 3:09 pm #15869510

Charline LACOSTE

Hi Waqas!
The debugging has been enabled by the client.

They were able to add a token to connect our services to their website but it only shows on the "Translation management" section, not when we try to send the elements to the hub via the translation basket.

Any idea on why?

July 2, 2024 at 4:23 am #15872076

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Thank you for the updates.

Do you see any errors in the debug.log or other error logs (i.e. PHP and/or server error logs)? Please also check WPML -> Support -> Advanced Translation Editor Logs and if possible provide me the log files or top few errors, right after retrying.

July 9, 2024 at 7:46 am #15918645

Charline LACOSTE

Good morning Waqas,

Still nothing on my end, the error is still the same.
We were able to add a translation service but could not authenticate and now that we cant to delete it, it's stuck.
What is weird is that on the Canada website, there is no such issue, only on the Europe website.
Now, the REST API has been deactivated which was not the case last time we tried.

Any other idea?

Top few errors in the Advanced Translation Editor log:
- ATE Server Communication - WPML has detected a change in your site's URL. To continue translating your site - {"url":"https:\/\/ate.wpml.org\/api\/wpml\/languages\/check_pairs","requestArgs":{"method":"POST","body":[{"source_language":"fr","target_languages":["nl","en","de","it","pt-pt","es"]}]},"status":426}
- ATE Server Communication - Bad Gateway - {"url":"https:\/\/ate.wpml.org\/api\/wpml\/languages\/mappings","requestArgs":{"method":"GET"},"status":502}

July 9, 2024 at 10:18 am #15919739

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Thank you for the updates.

Can you please provide me updated access info the the staging site, INCLUDING FTP access?

I've enabled your next reply as private to provide this information.

July 10, 2024 at 8:51 am #15926688

Charline LACOSTE

Thank you Waqas! We found the issue, it had to do with the cache after all.