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 1 reply, has 1 voice.

Last updated by Kor 1 day, 12 hours ago.

Assisted by: Kor.

Author Posts
February 12, 2025 at 5:13 pm #16698354

reflow-eventsK

Background of the issue:
I wanted to translate a text into English in String Translation: admin_texts_xts-woodmart-options [xts-woodmart-options]waitlist_privacy_checkbox_text Elolvastam รฉs elfogadom az [privacy_policy]t. The issue can be seen at hidden link. I modified the following text in String Translation, which had no English translation: admin_texts_woocommerce_checkout_terms_and_conditions_checkbox_text.

Symptoms:
This caused my entire site to break. The issue was resolved with a fix in /var/www/html/wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php @ 790. However, the word 'and' is causing the issue. We manually fixed the code, but if we apply any updates, the entire site will break again.

Questions:
Can you help with the issue caused by the word 'and'?
How can we prevent the site from breaking after updates?

February 12, 2025 at 5:14 pm #16698374

reflow-eventsK

One more quick note: The latest update is not installed on the site because it caused the site to break.

February 13, 2025 at 4:36 am #16699778

Kor
Supporter

Languages: English (English )

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

Thanks for contacting us.

I need to check what's causing the site to break when translating the strings.

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.

February 14, 2025 at 8:55 am #16705341

Kor
Supporter

Languages: English (English )

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

Thanks for your reply. Could you tell me where can I see these privacy policy texts on your Website frontend? When I visited this link hidden link , all translations looked correct when I checked.

If possible, please clone the site to another staging site so that we could check without interrupting the live site.

February 14, 2025 at 9:24 am #16705477

reflow-eventsK

Hello,

thank you for your quick reply.

The Hungarian-English translation was successfully completed. (You can see that part on the product pages, for example: hidden link I have read...).
However, in the process, my entire site broke, so we had to disable and roll back all the new updates. If we donโ€™t update anything, everything works fine. ๐Ÿ˜…

Additionally, we manually edited the code as follows:

The issue was resolved with fixing the original code. This is the code that is working for us:

/var/www/html/wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php @ 790
'default' => esc_html__( 'I have read and agree to the website [terms]', 'woocommerce' ),

wpml string translation - utf8 character problem most likely
There was an EXTRA word there "and".
So we manually fixed the code, but if we apply any updates, the entire site will break again.

Questions:
Can you help with the issue caused by the word 'and' and use the modified code?

If we need to clone the website, I can ask someone, but I think they can only do it on the weekend.

Thank you,
Kinga

WMPL problem.png
February 14, 2025 at 10:44 am #16705834

Kor
Supporter

Languages: English (English )

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

Thanks for getting back to me.

It seems you've resolved your issue by making modifications to the "Woocommerce" plugin, which ideally shouldn't be altered directly. Nevertheless, I've set up a sandbox site for testing purposes at hidden link . Could you please replicate the problem there? Once confirmed, I'll proceed with the steps you provided to resolve the issue and include this in the report for escalation.

I've already installed the necessary WC, WCML, and WPML-related plugins to facilitate your testing.