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

Supporter timezone: Africa/Cairo (GMT+03:00)

This topic contains 0 reply, has 0 voices.

Last updated by Osama Mersal 6 months ago.

Assisted by: Osama Mersal.

Author Posts
December 11, 2024 at 1:55 pm #16503887

johnC-27

Background of the issue:
I am using WP All Import to upload new Meta Descriptions and Meta Titles. I had a ticket before this because the import was not running successfully. I then had to also install and then run WPML Importer after the import was successful from step one. Once I was using the additional WPML plugin the import gave no errors.

Symptoms:
The Chinese site is now broken and does not load the Chinese site's pages on the front end, but I can see them still on the backend. When I click on the globe to go to the Chinese site, I am just redirected to the English homepage.

Questions:
Why does the Chinese site not load on the front end after importing new meta descriptions and titles?
Why am I redirected to the English homepage when trying to access the Chinese site?

December 15, 2024 at 12:16 pm #16514818

Osama Mersal
WPML Supporter since 02/2020

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

Timezone: Africa/Cairo (GMT+03: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.

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

December 16, 2024 at 3:21 pm #16517973

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for the access details. I checked the homepage in the dashboard and noticed that it's not translated into Chinese. (Kindly check the attached screenshot)

Please translate it to Chinese or connect the already existing translation.

After that, please check if the issue is fixed.

Best regards,
Osama

2024-12-16_17-18-54.png
December 16, 2024 at 9:41 pm #16519001

johnC-27

Hello!!

So that is the result of when i uploaded and imported the csv. The page was translated, I ran the import, and now the link to the chinese homepage is redirected to the english homepage. As you can see it now shows that the page has not been translated. I will run a backup of the site from last week. Are you able to to try it and run the import to see the results/ troubleshoot?

December 17, 2024 at 9:57 am #16520713

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Please upload the file to any file transfer service, such as Google Drive. After that, please share the file's URL with me.

Kindly restore the staging site so I can import the file and check the issue.

Best regards,
Osama

December 17, 2024 at 1:13 pm #16521873

johnC-27

Here is a link to the csv that we are uploading!
hidden link
You just need to download it 🙂
Site has also been restored

December 17, 2024 at 1:24 pm #16521928

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

1) Please check the provided account, as it's not working after restoring the site.

2) The file URL redirects to the (This timkenstaging.wpengine.com page can’t be found) page.

Best regards,
Osama

December 18, 2024 at 10:43 am #16525249

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for the sheet and access details. I checked the sheet and noticed that the Chinese home page has no "_wpml_import_source_language_code" value. (Kindly check the attached screenshot)

Please add it and try to re-import a sheet with only the home page and its translations.

Best regards,
Osama

2024-12-18_12-39-00.png
December 18, 2024 at 6:16 pm #16527222

johnC-27

Ahh i see that! Would you be able to clarify what value should go in _wpml_import_source_language_code for chinese?
I guess i am just confused what values that column is supposed to hold for all the languages on my site.
for chinese should it be zh or zh-hands
Same for Portugues, should that be pt-br or pt?

December 19, 2024 at 8:40 am #16528694

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Please check the following:

* _wpml_import_language_code: This should be the language code for the translated pages.

* _wpml_import_source_language_code: This should be the site's default language (en) for the translated pages and empty for the English pages.

* _wpml_import_translation_group: It should be the same number for the same page in all languages.

You can know the language codes by visiting WPML-> Languages-> Edit Languages. On your site, you have the following languages:
[0] => en
[1] => es
[2] => de
[3] => fr
[4] => it
[5] => ja
[6] => ko
[7] => pl
[8] => pt-br
[9] => ro
[10] => ru
[11] => tr
[12] => zh-hans
[13] => en-in

Best regards,
Osama

December 20, 2024 at 2:24 pm #16534596

johnC-27

Does this look correct? I ran the import again and it failed importing at like 99%.
hidden link

December 22, 2024 at 9:57 am #16537376

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Would you please share a screencast while reproducing the issue?

I checked the file, and I didn't notice any issues. Please create another sheet only for the home page in all languages and try to import it.

Best regards,
Osama

The topic ‘[Closed] When Importing New Meta Descriptions and Meta Titles, Chinese Translations break’ is closed to new replies.