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
9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Christopher Amirian 2 hours, 15 minutes ago.

Assisted by: Christopher Amirian.

Author Posts
November 11, 2024 at 12:14 pm #16388414

johannesB-16

Background of the issue:
I am experiencing an issue with WPML on my site hidden link. Over time, some strings lose their original language and are assigned to another language. This issue mostly occurs with strings from the customizer, although they are registered in XML translation.

Symptoms:
Strings in string translation do not remain in their correct language. For example, 'Mayorista' is Italian but is shown as German. Refreshing the page changes the language displayed.

Questions:
Why do strings lose their original language assignment over time?
How can I ensure that strings remain in their correct language?
Is there a way to fix the language assignment issue for customizer strings?

November 11, 2024 at 1:31 pm #16388862

johannesB-16

I tried this solution, but the issue remains:

https://wpml.org/errata/admin-strings-replaced-by-translations-after-visiting-the-customizer/

November 11, 2024 at 1:53 pm #16389026

johannesB-16

I now receive the follwoing error message:

AH01071: Got error 'PHP message: PHP Warning: Undefined array key "wp_customize" in /var/www/vhosts/berotec.de/httpdocs/wp-content/komponenten/wpml-string-translation/inc/admin-texts/wpml-admin-texts.class.php on line 214; PHP message: PHP Warning: Undefined array key "screen_id" in /var/www/vhosts/berotec.de/httpdocs/wp-content/komponenten/wpml-string-translation/inc/admin-texts/wpml-admin-texts.class.php on line 214'

November 12, 2024 at 9:59 am #16391885

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Thank you for following the steps mentioned in the errata.

Unfortunately, the login information is deleted by the system and I need that to continue the troubleshooting.

I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

Also, I need your permission to copy your website to our server, if ther is a need for further investigation by the second tier support.

Thanks.

November 14, 2024 at 7:43 am #16400905

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Thank you for the login information.

I went to WordPress Dashboard > Plugins > Plugin File Editor and from the top right section selected WPML String Translation and checked the file that was mentioned in the errata you talked about.

I found out that the change was not applied, I applied the change.

Did a cache purge, but now I am not sure if the result is correct as I searched for Mayorista but I did not find any.

Would you please check and see if things work ok now? And if not, please tell me which string to check.

Thanks.