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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 8 replies, has 2 voices.

Last updated by Kor 3 months, 1 week ago.

Assisted by: Kor.

Author Posts
August 9, 2024 at 1:57 pm #16056742

peterJ-48

Background of the issue:
Hi,

After updating the WPML plugin and WordPress to the latest versions, we've encountered a serious issue with string translation. Despite the strings being correctly translated in the admin panel, database, and .mo files, they fail to display properly on the front-end.

Upon extensive troubleshooting, we discovered that instead of pulling translations from the appropriate .mo file (e.g., /wp-content/languages/wpml/memidos-da_DK.mo), the plugin erroneously attempts to load strings from the .l10n.php file. This workaround of manually adding translations to the .l10n.php file is unacceptable and clearly not the intended functionality.

We’ve ensured that our string formats are correctly set to "utf8mb4" as specified in our configuration. Additionally, any updates to old strings are not reflecting on the front-end, indicating that the issue lies with the improper handling of i10n.php records.

This issue emerged immediately following the latest WordPress update, and it was functioning perfectly fine beforehand.

Please provide a technical solution specific to this problem. We do not want generic responses such as checking plugin conflicts or versions. We've already spent significant time troubleshooting and pinpointing the root cause of this issue.

We expect a detailed and prompt resolution from your team.

Symptoms:

Questions:

August 9, 2024 at 2:07 pm #16056814

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Here is the ticket and please let me know how it goes.

August 9, 2024 at 2:28 pm #16056921

peterJ-48

Hi,

We change code in the plugin as suggested in this document (https://wpml.org/errata/l10n-php-performant-default-translated-strings-not-displaying-correctly/) but still we can't see translated string on the frontend.

(See the screenshot)
You can see the issue on frontend on secondary languages ​​with this URL : hidden link

Screenshot_751.png
Screenshot_749.png
Screenshot_748.png
August 9, 2024 at 2:29 pm #16056965

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

August 9, 2024 at 2:48 pm #16057002

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I'm getting some errors when I try to update the WPML plugins and also, I need FTP access to check your language files. Installing the File Manager plugin is not possible too.

Screenshot_26.png
August 9, 2024 at 3:02 pm #16057051

peterJ-48

Hi,

"We've updated the permissions on the development site, so you can now update, add plugins, and make any necessary changes. We've also added a file manager plugin for easier access instead of using FTP."

Let me know if you need anything from my end.

August 9, 2024 at 3:12 pm #16057062

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. It looks like removing the l10n.php files fixes it. hidden link .

Could you check?

Screenshot_28.png
August 9, 2024 at 3:28 pm #16057119

peterJ-48

Hello,

Thanks for your reply. It looks like removing the l10n.php files fixes it.
Reply : Is the l10n.php file necessary? I noticed it’s generated in the plugins, themes, and WPML folders. Should we remove all the l10n.php files, and will they regenerate afterward?

August 9, 2024 at 3:39 pm #16057207

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Just remove those l10n.php files that are affecting your translations. I'm not sure if it will regenerate again but if it does, please let me know and I will recheck.

The topic ‘[Closed] Critical String Translation Issue Post-Plugin and WordPress Update’ is closed to new replies.