Skip Navigation

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

Problem:
You added three new pages to your website and attempted to translate them. However, a code script used for a form is incorrectly appearing on the front end of other translated pages.
Solution:
First, ensure that the translated pages are displaying correctly by visiting them. We have disabled the 'I prefer bigger segments' option and updated the page in the default language along with its translations. It's important to check if this adjustment resolves the issue. For further details, you can refer to our documentation on similar issues here: WPML Errata Page.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly suggest 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. For further assistance, please contact us through our support forum 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 15 replies, has 2 voices.

Last updated by Osama Mersal 1 month, 3 weeks ago.

Assisted by: Osama Mersal.

Author Posts
September 18, 2024 at 1:49 pm

Fiyinfoluwa Lasaki

Background of the issue:
I had just added 3 new pages on a website and I tried to translate them. A code script I used for a form is showing on the front in other translated pages which is not meant to be so.

Symptoms:
Translation content on other languages is wrong. A code script is appearing on the translated pages.

Questions:
Why is the code script showing on the translated pages?
How can I correct the translation content on the other languages?

September 18, 2024 at 2:28 pm
September 20, 2024 at 9:26 am #16202028

Fiyinfoluwa Lasaki

Hi, I'm still waiting for a response please...has it been sorted?

September 22, 2024 at 9:22 am #16205706

Osama Mersal
Supporter

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

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

Hi,

Thanks for contacting 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 log in to this hidden link">sandbox site and create a test page to replicate the issue.

If the issue is replicable, please let me know to consult our compatibility team.

Best regards,
Osama

September 22, 2024 at 9:36 am #16205735

Fiyinfoluwa Lasaki

You want me to create the same page in the sandbox site?

September 22, 2024 at 9:38 am #16205736

Osama Mersal
Supporter

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

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

Hi,

You don't need to create all the page elements. Please add only the problematic HTML part.

Best regards,
Osama

September 22, 2024 at 9:47 am #16205756

Fiyinfoluwa Lasaki

I've done that

September 22, 2024 at 10:11 am #16205804

Osama Mersal
Supporter

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

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

Hi,

Thanks for creating the test page. I translated it into Italian, and it seems to work correctly. Please check this hidden link">page.

Please let me know if I missed any steps to reproduce the issue.

Best regards,
Osama

September 22, 2024 at 10:30 am #16205849

Fiyinfoluwa Lasaki

I only see IT in front of the contents. Is that it?

Also if it works correctly, what then is the issue with the main site?

September 22, 2024 at 10:37 am #16205866

Osama Mersal
Supporter

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

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

Hi,

1) I just added IT to the string to know if the translated string appears correctly.

2) 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 backup 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

September 22, 2024 at 11:34 am
September 22, 2024 at 11:47 am #16205998

Osama Mersal
Supporter

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

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

Hi,

Please check if the translated hidden link">page works correctly.

I disabled the "I prefer bigger segments" option and updated the page in the default language along with its translation. Kindly check this page.

Best regards,
Osama

September 22, 2024 at 12:13 pm #16206089

Fiyinfoluwa Lasaki

Yeah, It seems to work correectly..Thank yiu

So do I have to do this for all similar pages? I checked the others and they're still the same way

September 22, 2024 at 12:15 pm #16206092

Osama Mersal
Supporter

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

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

Hi,

For the other pages, please check the following steps:

1- Go to WPML-> Translation Management
2- Select the page
3- Send it to translation
4- Complete the translation and check the front end

Best regards,
Osama

September 22, 2024 at 12:32 pm #16206127

Fiyinfoluwa Lasaki

You mean this page right?

screencapture-wegamed-wp-admin-admin-php-2024-09-22-13_31_16.jpg