Alternatively, you can edit the wp-content/plugins/sitepress-multilingual-cms/classes/widgets/class-wpml-widgets-support-frontend.php file on line 30 and replace:
Tell us what you are trying to do?
I am trying to translate the strings of widgets. I can see that as correctly translated at the back-end panel, but when visiting the website as a regular user, they are still displayed in the default language.
**IMPORTANT**
- Please backup the site files and database before providing us access.
- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.
Good afternoon! I attempted to replicate the issue on my local server but was unsuccessful. Could you please downgrade your PHP version to either v8.0.x or v8.1.x and let me know if the issue persists?
If it does, please let me know so I can create a sandbox server on our Cloudways server to make a copy of your site. This way, we can investigate the issue further without affecting your live site.
I tried with both PHP versions 8 and 8.1 but without success :(. My hosting provider is KnownHost.com. The same problem replicated with fresh WP installation at Smarthost provider.
How do you want to make a copy of my site? You can use my live site for testing if you want, I made it specially to replicate this error.
I have forwarded your issue to our second-tier support team for further investigation. I will provide you with an update as soon as I hear back from them.
Good morning! Our second-tier support team has identified two potential solutions to your issue.
The first option is to upgrade the WPML Multilingual CMS plugin to version 4.6 beta. This should resolve the issue, and our team has confirmed this after testing on your sandbox site in Cloudways. You can find detailed step-by-step instructions for installing the beta version of WPML here: https://wpml.org/faq/how-to-install-beta-and-development-versions-of-wpml/.
Alternatively, you can edit the wp-content/plugins/sitepress-multilingual-cms/classes/widgets/class-wpml-widgets-support-frontend.php file on line 30 and replace:
Hi,
Great to hear that the issue has been resolved! If you require any additional assistance in the future, please do not hesitate to open a new ticket.
Our team will be more than happy to help you.
Thank you,
Faisal
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.