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?
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.
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.