This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing issues with automatic translation not working on your live site using the WPML plugin, despite it functioning correctly on a development server. The main issue identified is that translated strings are not being saved to the database on the live server. Solution: We recommend checking the registration of your site with WPML. Each site (live, development, staging) should have a unique site key registered on WPML. Here are the steps to resolve the issue: 1. Visit https://wpml.org/account/websites/ 2. If your live site URL is already registered, delete it from the list. 3. Re-enter the site URL to generate a new site key. 4. Click "Show key" and copy the new site key. 5. Go to your WordPress admin, navigate to Plugins > Install > Commercial (tab), and enter the new key to re-register WPML. If WPML is still registered, deregister it first.
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 problems persist, please open a new support ticket at WPML support forum for further assistance.
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.
We have integrated the WPML plugin on our current live site (hidden link). However, when attempting to translate pages on the live site, the translation is not working.
To resolve this issue, I have set up a development server (hidden link) and deployed the latest source code there.
1) Translation Test on Development Server
I tested the translation of the front page on the development server, and the entire page content was successfully translated. Here are the links:
Danish (Default Language): hidden link
English: hidden link
French: hidden link
2) Same Process on Live Server
I performed the same process on the live server, but it did not work. The translated content does not appear. Here are the links:
Danish (Default Language): hidden link
English: hidden link
French: hidden link
3) Caching
Both the live and development servers have the WP Rocket cache plugin integrated. I have cleared the cache on both servers, but the translated strings still do not appear on the live site.
4) Database Entries
I checked both databases to see if the translated strings were saved. On the development server, I found entries in the following tables:
- wp_icl_string_translations
- wp_posts
Here is a screenshot showing the entries on the development server: hidden link
However, on the live server, I found no entries for the translated strings in these tables. hidden link
This indicates that the translated strings are not being saved to the database on the live server.
5) Console and Network Checks
When saving translations via the WordPress admin, I checked the browser console and network tab for any AJAX errors. There were no errors, and the payloads and responses are identical on both the live and development servers.
Summary
Even though the codebase is identical on both servers, the translations are only working on the development server. The main issue is that translated strings are not being saved to the database on the live server, while they are on the development server.
I have followed the steps you suggested in your previous reply:
We have unregistered the key from the development server. I’ve attached a screenshot for your reference.
We also re-registered wpml on the the live domain.
However, the translation is still not working on the live site. The translated content is not being displayed in either English or French.
I have tested both automatic and manual translations for the homepage, as mentioned in our previous conversation.
We have been experiencing this issue for the past few days and, unfortunately, have not yet received a resolution. We kindly request your prompt attention to this matter and would appreciate it if you could provide a solution as soon as possible.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
According to what I see on the system both sites still use the same site key.
Did you make sure to register each site once on wpml.org and use each unique site ley respectively on each site in WordPress?
To know if the site is registered correctly you need to go to WPML > Support > Installer Support and click "Check now". Please do this on each site and send me the screenshots of the results.
The WPML Translation Editor will not operate unless WPML is registered.
As you suggested in our last chat, we have unregistered one site from this account. I have attached a screenshot for your reference.
hidden link
Now, only one site is registered to this account.
Additionally, I have shared a screenshot for your reference to confirm that the site has been registered correctly.
After completing all these steps, I cleared all language cache from the admin side and tried to translate the content on the homepage, but it is still not working for me.
I have also shared a screen recording for your reference.
I have deleted the non used links to site, and added our support (staging") site used for testing.
It still does not translate. It shows the translation but seems not to show anything translated in the front end to the customers, which is a bit of a problem....
As you can see the products shown are translated but the content above is not.
if you email me directly carsten@lemco.dk I can provide you a temporary access after I have made a backup as I really need this solved quickly, it has not worked for a long time and I am getting nuts.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
I would like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.
You can find the required fields below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.
The private reply form looks like this: hidden link
Click "I still need assistance" the next time you reply.
Video: hidden link
Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket using the private response form.