Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was unable to translate a string on their website, and some methods were deprecated in the admin interface. The main issue was that the English header was not displaying correctly, showing a Persian header instead.
Solution:
We identified that the issue was related to the use of a legacy widget that was no longer compatible. To resolve this, we guided the client to make corrections in the widget settings. We provided a direct link to the widget settings page and instructed the client to adjust the widget language each time edits were made. After making these adjustments, the issue with the string translation was resolved.

If this solution does not resolve your issue, or if it seems outdated or irrelevant 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 the problem persists, please open a new support ticket.

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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Kor 2 weeks, 2 days ago.

Assisted by: Kor.

Author Posts
November 12, 2024 at 10:50 pm #16394779

sinohehE

Background of the issue:
I am trying to translate a string on my website. The issue can be seen on this page: hidden link

Symptoms:
String translation is not working, and some methods are deprecated in the admin interface. I expected to see an English header, but instead, I got a Persian header, which is the default language.

Questions:
Why is the string translation not working?
Why methods are deprecated in the admin interface? (php 8.3)

November 13, 2024 at 2:45 pm #16398157

Kor
Supporter

Languages: English (English )

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

Hi there,

Thanks for contacting us.

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.

November 13, 2024 at 6:56 pm #16399269

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

I don't see any issues as shown in the attached screenshot. Did you sort it out yourself?

Screenshot_228.jpg
November 13, 2024 at 7:01 pm #16399287

sinohehE

Top widgets are in Persian, and also all strings are not available in translation sections

IMG_4530.jpeg
November 13, 2024 at 7:03 pm #16399302

sinohehE

Ahh, do you meant the errors?
After update to the latest plugin version they were gone

November 14, 2024 at 10:03 am #16401501

sinohehE

I could fix some of them by searching in admin string but two of them not working

November 14, 2024 at 2:23 pm #16403376

Kor
Supporter

Languages: English (English )

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

Thanks for your reply. I'm checking now .

November 14, 2024 at 3:08 pm #16403571

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

Looks like these "Legacy widget" are not working correctly even after using the "Creating Widgets in Each Language" as explained here https://wpml.org/documentation/getting-started-guide/translating-widgets/#using-different-widgets-for-different-languages and I will have to troubleshoot this further.

I regret any inconvenience caused, but to proceed with troubleshooting, I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.

November 15, 2024 at 11:16 am #16407731

Kor
Supporter

Languages: English (English )

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

Thanks for your reply.

It looks like you did not upload the correct zip file. It is only 700bytes as it should be around 300++mb . Could you recheck and share the correct file with me?

November 15, 2024 at 11:24 am #16407762

sinohehE

I did by mistake,
Would you mind to download it directly form the admin panel?
Thanks

November 15, 2024 at 11:28 am #16407783

Kor
Supporter

Languages: English (English )

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

I tried, but it says the file does not exist. I installed the duplicator pro and will see if I can download it.

November 15, 2024 at 11:29 am #16407833

sinohehE

I would appreciate your time and effort,
You should be able to download from the FTP as well

November 15, 2024 at 2:55 pm #16409003

sinohehE

FYI
My site get hacked (wasn’t important)
I can’t assume it was a reason but I guess it’s better you be aware of it

IMG_4541.jpeg
November 15, 2024 at 5:58 pm #16409504

Kor
Supporter

Languages: English (English )

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

Thanks for your reply. You can ignore that. I will remove that duplicator pro plugin now. I will check and revert

November 15, 2024 at 6:36 pm #16409523

Kor
Supporter

Languages: English (English )

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

Thanks for your reply. Could you please check now? I've fixed the issue for you.