Skip Navigation

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

Problem:
The client is unable to see changes on the frontend after editing a page translated into a custom language (NZ-EN), and changes also disappear from the CMS after refreshing the page. The issue was identified as a trailing slash redirection in the .htaccess file.
Solution:
We advised the client not to change the language code directly in the database as it could disrupt all language connections for that language. Instead, we recommended creating a custom language using the desired code (NZ-EN). To further investigate the issue, we provided a sandbox environment for the client to replicate the issue or share access to their live site. Here is the sandbox link: https://pretty-marimba.sandbox.otgs.work/?auto=LZ9F7w3EseacASA8Q8bmmQDHKYuGcH8R

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable 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 further assistance is needed, please 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 3 replies, has 2 voices.

Last updated by Ilyes 9 months, 1 week ago.

Assisted by: Ilyes.

Author Posts
October 1, 2024 at 11:57 am #16240226

Lukas Leitner

Background of the issue:
I am trying to edit a translated page, which is copied from EN to NZ-EN. NZ-EN is a custom language.

Symptoms:
If I change something on the NZ-EN page, everything looks good, but I can't see the changes in frontend. Even if I refresh the page in the CMS, the changes are also gone.

Questions:
Why are the changes not visible on the frontend after editing the NZ-EN page?
Why do the changes disappear in the CMS after refreshing the page?

October 2, 2024 at 7:44 pm #16247320

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

Thank you for your patience,

Taking another look at your site, the language setting that you currently have is causing 404 issues, which blocks the changes from getting loaded correctly,

I have shared your database with our 2nd tier, they will advise us on how to fix this and how the custom language should've been configured,

I will let you know once I receive a response,

Best,

October 3, 2024 at 11:35 am #16249454

Lukas Leitner

Hello,

by when can I expect a result so that I can communicate this to the customer accordingly?

Thank you

October 3, 2024 at 10:34 pm #16252114

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

I've got a reply, If you change the language code on the DB directly you will destroy all the language connections for this language. If they need the language code nz-en, then you need to create custom language using this code.

If you still cannot provide access to the website, we can recreate the issue on a sandbox, by providing your custom theme, any important custom plugins and similar language configuration,

Here is the sandbox link : hidden link

Could you attempt to replicate the issue there? Or share a copy or access to your live site, whatever works with you.

October 7, 2024 at 9:18 am #16259895

Lukas Leitner

I found the problem. It was a trailing slash redirection in my .htaccess.