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?
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.
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.
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.
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.