Skip to content Skip to sidebar

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

Problem:
The client is experiencing issues where the default language content is not being displayed correctly on their website.

Solution:
We recommend going to WPML -> Languages and in the 'Make themes work multilingual' section, check the box for "Adjust IDs for multilingual functionality". This should resolve the issue with the default language content not displaying properly.

If this solution does not seem relevant to your situation, please open a new support ticket with us.

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 24 replies, has 3 voices.

Last updated by Lauren 1 year, 10 months ago.

Assisted by: Lauren.

Author Posts
October 3, 2023 at 3:37 pm

jorritV-4

I have had some issues with WPML and CPU issues. But now I see that the default language is not being displayed. See hidden link. The description should be dutch and is in English. The English version is English, see: hidden link.

October 3, 2023 at 4:32 pm
October 3, 2023 at 4:54 pm #14507597

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Once the staging site is set up and ready for testing, you can reply here with the credentials to login. Please let me know if it's okay for me to disable plugins/theme on the staging site. The next reply will have private fields where you can safely send credentials. Thanks!

October 3, 2023 at 5:19 pm
October 4, 2023 at 8:19 pm #14515563

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thanks for your patience while I was troubleshooting. I tried to reproduce this in a clean install but I wasn't able to. I set your site in minimal settings and ran the clean up steps, but that didn't resolve it either. I did however notice that when I disabled the plugin "Category Order and Taxonomy Terms Order", I then saw the original description for both categories, instead of the English.

What I finally did to fix it was to delete the English translation of the parent category "Mushrooms". I then went to Taxonomy Translation and retranslated it. Then, I went to Heirachy Syncronization and synced the product category so that the child categories got reassigned under the Mushroom translation. Lastly, I went to WPML -> Support -> Troubleshooting and in the clean up section, I ran the first option to syncronize product taxonomies, which assigend the translated products to the new Mushroom Translation.

Can you test these same steps on the live site? You can test without minimal settings first and see if just deleting the translation and recreating it resolves it. Note: Please be sure to use WPML -> Taxonomy Translation to translate the parent categories, and not just changing the language switcher in the dashboard. Let me know the results.

October 5, 2023 at 11:25 am #14519757

jorritV-4

Hi there. Disabling the plugin resolved the issue on the main domain. However now the translation is not working on the .com website. Changing the translation is not solving the problem.

October 5, 2023 at 2:39 pm #14521331

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hi,

Lauren is not available today, once you translated the category in "WPML -> Taxonomy Translation" try the following:
- Clear all your caches
- Go to "Products > Categories > English" and edit this category.
- Don't make any changes here, only click on "Update"

October 6, 2023 at 8:30 am #14525415

jorritV-4

Hi Nicolas. I have tried your suggested solutio, but it is not working. See attachments.

Schermafbeelding 2023-10-06 102905.png
October 6, 2023 at 8:33 am #14525483

jorritV-4

The .com is in Dutch. It seems like the problem is only on WooCommerce categories and their meta title and description.

Schermafbeelding 2023-10-06 103234.png
Schermafbeelding 2023-10-06 103050.png
October 6, 2023 at 2:10 pm #14529197

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Would it be possible for me to install a plugin (Adminer) that might allow me access to view the database on the staging site? I need to see if the category translation exists in the database and if so, if there is a way we can reconnect them. Let me know if I have permission to do that and if so I'll continue troubleshooting there. Thanks!

October 9, 2023 at 7:34 am #14536535

jorritV-4

Hi Lauren, which table should have the translation? You can download the plugin or I can look it up in phpMyAdmin.

October 9, 2023 at 8:10 am #14536751

jorritV-4

The problem is with the catgeories that have the same name. For example: hidden link and hidden link. If the term is translated, like this one hidden link and hidden link it is working like we want. The quick solution is changing the term slug, adding -eng for example. However this is not what we want. We used the following workaround in the past 'https://wpml.org/errata/translated-term-slug-identical-to-the-original-term-slug/', this is no longer working (probably because of the latest update).

October 10, 2023 at 2:13 pm #14551111

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

The table that holds the translation is icl_translations. I tested the theory of using the same slug on my test site, but here it still shows the translations as expected:
hidden link
hidden link.

The example that you sent above is a child category, which I thought was showing the translation all along. Is the issue not only happening with parent categories? If you edit the slug of a parent category (for testing only) do you see the correct translation on both languages?

October 11, 2023 at 9:01 am #14557261

jorritV-4

Hi Lauren, yes changing the slug of the categories fixes the issue. I thought the problem was only happening to parent categories, but it is also happening to child categories. Weird that it is works on your test website. Maybe it is only on 'language per domain'?

October 11, 2023 at 3:11 pm #14560473

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

I don't have the ability to test different languages with different domains in the test install that I set up. Do you have a staging site where you can quickly test that? If not, let me know and I can set up a new site in our cloudways server and try using different domains per language and see if the behavior is different. I"m not sure it will be though, because it seemed to resolve in your test site when I redid the translation. Worth testing for sure though. Also, try using the different options to pass information when using different domains per language (you will find these options in WPML -> Languages in the URL format section).