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.

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Long Nguyen 3 months, 1 week ago.

Assisted by: Long Nguyen.

Author Posts
October 25, 2024 at 11:26 pm #16332477

remmyB

Background of the issue:
I was told yesterday to replace code on WPML plugin line 214, to stop wrong language strings. The issue is visible on my website hidden link. The problem occurs everywhere, including the home page, and affects texts from the Customizer, such as the 'Post an Ad' button and custom text on Ad Pages.

Symptoms:
Server error after adding new WPML line at Line: 214, causing the website to display the wrong language.

Questions:
Can you send me a URL with /ad category where the issue is visible now?
Are these texts that get the language changed coming from the Customizer?

yes

October 28, 2024 at 1:15 am #16335625

Long Nguyen
Supporter

Languages: English (English )

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

Hi Remmy,

Thank you for contacting WPML support, I’m happy to help you with this issue.

I would like to request temporary access (wp-admin and FTP) to your site so I can take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Looking forward to your reply.
Thanks

October 28, 2024 at 5:37 am #16335831

remmyB

I cannot login to wordpress but there is a backup everyday at siteground host,
I can't be able to share credentials unless is secure form.

what Should I do here,?

October 28, 2024 at 7:23 am #16336000

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

I need to access the admin area to check the issue. Or you can use a backup plugin, take the backup file and share it with me. I will restore your site on my local host and investigate the issue.

I enable the form to share the credentials in your next reply, it is private and secure.

Looking forward to your reply.
Thanks

October 28, 2024 at 7:48 am #16336090

remmyB

Thanks for the reply,
but the backup file you are looking for I cannot be able to do it without login into wordress, I am going to put back the line that was there before i made the change in WPML plugin. but do you remember the initial Line 214 which is related to translation for the theme?

October 28, 2024 at 7:54 am #16336114

remmyB

in the screenshot, this is what I did i am not sure if i copied wrong or what,

when replacing that line, what exactly do you copy?

Screenshot 2024-10-28 at 18.52.51.png
October 28, 2024 at 8:02 am #16336152

remmyB

here is a screenshot after the change

Screenshot 2024-10-28 at 18.52.51.png
Screenshot 2024-10-28 at 18.58.36.png
October 28, 2024 at 8:13 am #16336205

Long Nguyen
Supporter

Languages: English (English )

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

Hi,

I think you've missed the last part of the workaround code

"] == "customize");

the full line is:

$isAdmin = is_admin() && ! wpml_is_ajax() || (($_REQUEST["wp_customize"] == "on") || $_POST["screen_id"] == "customize");

you can scroll to the right to see all the code. Let me know if it helps.

October 28, 2024 at 8:37 am #16336321

remmyB

Thanks, it worked. yes I missed part of the code before.

That you for your help now I will wait and see in due time of wrong translation will go away

October 29, 2024 at 1:19 am #16339982

Long Nguyen
Supporter

Languages: English (English )

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

Feel free to contact us again if you have any questions.

Thanks.