Skip to content Skip to sidebar

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

Problem:
The client was unable to switch languages on their shop page; it kept redirecting to the English version.
Solution:
1. We identified that the shop page had not been translated into other languages.
2. We translated the shop page into German.
3. We noticed that there was only one product which also had not been translated.
4. We translated the product into German.
5. After these translations, the German shop page became accessible at https://dagradev.kinsta.cloud/de/shop/.
6. We reminded the client that pages should be translated, and this process is usually automated if the WCML Setup Wizard is completed.

If you're experiencing a similar issue, we recommend ensuring that your shop page and products are translated into the desired languages. Also, make sure to complete the WCML Setup Wizard to automate the translation process. If the solution provided here is not relevant to your case, possibly because it's outdated or not applicable, please open a new support ticket. We also highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.

If you need further assistance, please contact us in the 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 7 replies, has 2 voices.

Last updated by Andreas W. 1 year, 6 months ago.

Assisted by: Andreas W..

Author Posts
March 14, 2024 at 3:31 pm #15411129

dawidZ-5

1. go to: hidden link
2. every language redirects to /en/

I can change the url manually to another language, but the switch does not work.

Zrzut ekranu 2024-03-14 162929.png
March 14, 2024 at 3:34 pm #15411231

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hello,

Is your shop page translated and published in all languages?

Do you see any issues at WooCommerce > WooCommerce Multilingual & Multi-Currency > Status?

Further, Could you please increase your WP Memory limit to 256M? 128M is the minimum required by WPML.
Your current values are:

PHP Memory Limit 256M
WP Memory Limit 40M
Add this code to your wp-config.php to increase WP memory:

define('WP_MEMORY_LIMIT', '256M');

Paste it just before:

/ That's all, stop editing! Happy blogging. /

Now, verify the current settings at WPML > Support > WordPress. Then complete the translation again.

These settings can be limited directly by your hosting provider, so I recommend you contact and ask them to modify them directly.
If you can get even higher values It would be great.

https://wpml.org/home/minimum-requirements/
Note: WPML needs a minimum WP Memory limit of 128M to work only under a minimal environment, which means, with a default theme and no other plugins installed.

If this will still not solve the issue, please let me know.

Best regards
Andreas

March 14, 2024 at 4:05 pm #15411432

dawidZ-5

Hi there,
I increased PHP's memory limit, but that didn't help.

I use the "Translatable" setting for pages and it works for every page except the shop page
On the shop page it works only when I manually edit the url, for example: hidden link displays the page in German
The language switcher displays all languages, but everything redirects to /en/.

March 14, 2024 at 4:24 pm #15411526

dawidZ-5

I checked some more and it looks like the shop page does not honor the "Post Types Translation" setting.
No matter what settings I have for "Pages (page)", the shop page always looks the same, each translation is available in the picker list, but it redirects everything to /en/.

March 14, 2024 at 4:37 pm #15411556

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Hello,

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

If you are unable to provide such a copy of the site for testing, please let me know on this ticket.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

March 14, 2024 at 5:10 pm #15411626

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Your shop page has no translations yet.

I have translated it now into German.

You do have only one product, which was not yet translated.

I translated the product now to German and now I can see the German Shop page here:

hidden link

translations.png
March 14, 2024 at 5:17 pm #15411684

dawidZ-5

Yes, that's why I use the "Translatable" option "use translation if available or fallback to default language"

Its working on every page except shop page.

Page hidden link don't have translations and I can switch to every language.

March 14, 2024 at 5:31 pm #15411748

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

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

Those pages do need to be translated. Usually, the translation would be created automatically if the WCML Setup Wizard was completed.