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
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by Long Nguyen 7 months, 3 weeks ago.

Assisted by: Long Nguyen.

Author Posts
June 3, 2024 at 9:32 am #15696425

ngmcb

Background of the issue:
I am trying to translate posts using WPML on my site hidden link. The posts include a list of models in the following format: models: [{ databaseId: 56273}, {databaseId: 3764}, ....]. This format is correct for both English and French versions when models are present.

Symptoms:
When there are no models to select, the English version shows models: null, but the French version shows models: [null], which causes an internal error.

Questions:
Why is the French version showing models: [null] instead of models: null when there are no models to select?
How can I fix the internal error caused by the incorrect format in the French version?

June 3, 2024 at 9:59 am #15697277

ngmcb

Replicating the same scenerio will take lot of time as it will include adding ACF and other things. Can we please proceed without that, I have already shared the scenerio and also added the required screenshots.

June 4, 2024 at 1:46 am #15699568

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

In order to escalate the issue, we need to replicate it on a clean installation of WordPress with clear steps and understand where the issue arises. I've setup WPML and installed all necessary plugins on the sandbox site.
Please help us replicate the issue and let us know the steps to do that.

Thanks for your co-operation.

The topic ‘[Closed] Models list is not coming in correct format in posts translation’ is closed to new replies.