Skip Navigation

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

Problem:
The client's website has two languages, Albanian and English. The issue arises when switching the language toggle to English on the 'listimet' page, where the content should update accordingly. Instead of displaying the editing field, the widget shows raw JSON data.
Solution:
We found that the archive template was not translated. We recommend translating the archive template to ensure that the text in the sidebar and listing updates correctly when the language is switched. This action should also resolve the issue of the widget displaying raw JSON data instead of the editing field.

If this solution does not apply to your case, or if it seems outdated, 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. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.

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

Last updated by Osama Mersal 2 weeks, 1 day ago.

Assisted by: Osama Mersal.

Author Posts
March 22, 2025 at 1:11 pm #16847522

freelancerI

Background of the issue:
I have a website with two languages, where the default language is Albanian, and it should translate into English. On the 'listimet' page, I want the content to update to English when the user switches the language toggle to English. I tried to register the widget, but it displayed raw JSON data instead of the editing field.

Symptoms:
When I registered the widget, it displayed raw JSON data on the page instead of the editing field.

Questions:
How can I ensure that the text in the left sidebar and right listing updates to English when the language is switched?
Why is the widget displaying raw JSON data instead of the editing field?

March 22, 2025 at 3:49 pm #16847688

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please go to WPML > Settings > Custom Field Translation and click "Show system fields".

Now, set the field "_elementor_data" to "Copy once".

Best regards
Andreas

March 22, 2025 at 11:01 pm #16848036

freelancerI

Hello Andres,

Yes I made what you have mentioned but the issue is still continue.
Thanks

Screenshot_6.png
March 24, 2025 at 10:13 am #16851019

freelancerI

hello,

Might you help me because this task is very important for my costumer and i don't have time.
thanks

March 25, 2025 at 1:55 am #16854479

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm Osama from WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

Please try the following steps after changing the field translation preference:

1- Edit the page in the default language
2- Add "V2" to the title
3- Update the page
4- Delete the "V2" and update the page
5- Update the page's translation

Kindly let me know if you still see the JSON field after the above steps.

Best regards,
Osama

March 25, 2025 at 10:16 am #16856363

freelancerI

Hello Osman,
yes the issue is still continue,

i registered widget of the page listimet on the custom XML Configuration, Secondly in the page listimet in the lanauge by default make same changes save and in the right clicked wplm translation editor but it continue to display as raw json instead of the editing fields.

I want that in the page listimet when user selected toggle lanauge English the fields text and labels to be according the lanauge select for example instead of the "vendodhja" to be "location" and so on.

Please let me know if issue is clear by your side? and if you need anything else.
Thanks

Screenshot_1.png
Screenshot_15.png
March 25, 2025 at 5:42 pm #16859324

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please back up your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

March 26, 2025 at 1:29 pm #16863094

freelancerI

Hello,

Might I have a feedback?

March 26, 2025 at 3:15 pm #16863706

freelancerI

??

March 26, 2025 at 5:49 pm #16864898

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. The archive template is not translated. Please translate it and check the issue. (hidden link)

Best regards,
Osama