Skip to content Skip to sidebar

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

Problem:
The client was experiencing errors on the translated pages of products made with Pods, which worked perfectly in the main language (Dutch) but showed errors on the translated pages.

Solution:
We recommended the following troubleshooting steps:
1. Navigate to WPML -> Support -> Troubleshooting.
2. Perform the following actions:
- Synchronize posts taxonomies (for products and then for variations)
- Assign translation status to duplicated content
- Set language information
- Fix terms count
- Fix post type assignment for translations

Initially, these actions did not resolve the issue, but after clearing the cache, the translated pages started working correctly. This suggests that the problem may have been related to outdated cached content.

If you're experiencing a similar issue, we recommend trying the above troubleshooting steps. However, please note that the solution might be irrelevant if it's outdated or not applicable to your case. If the problem persists, we encourage you to open a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please contact us on 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 10 replies, has 2 voices.

Last updated by Bruno Kos 1 year, 11 months ago.

Assisted by: Bruno Kos.

Author Posts
February 20, 2024 at 11:58 am #15322480

krachtig-online-comm.vM

Hi,

At out website we have products made with Pods.
This is working perfect in our main language (Dutch) but the translated pages give an error.
see: hidden link

Archive page: hidden link => this is working!

February 20, 2024 at 6:27 pm #15324437

krachtig-online-comm.vM

In this Picture you can see the error.
Undefined array key "materiaal" (materiaal is dutch, shouldn't this be the French variant?)

error unidoor.png
February 21, 2024 at 11:48 am #15327560

Bruno Kos
WPML Supporter since 12/2018

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

Timezone: Europe/Zagreb (GMT+01:00)

Hi,

Thank you for contacting WPML support!

What about this error:

Fatal error: Uncaught TypeError: str_contains(): Argument #1 ($haystack) must be of type string, array given in /data/sites/web/unidoorbe3094/www/wp-includes/blocks.php:1188 Stack trace: #0

I see it on hidden link as well, does it show up if WPML is not active?

Regards,
Bruno Kos

February 21, 2024 at 1:00 pm #15328051

krachtig-online-comm.vM

These only show up on all the translated single posts.
All the Dutch pages are fine.

February 21, 2024 at 2:34 pm #15328720

Bruno Kos
WPML Supporter since 12/2018

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

Timezone: Europe/Zagreb (GMT+01:00)

Can you go to WPML > Settings > Custom Post Type Translation > Set pods post type to "Don't Translate", does it change anything?

Also, note that Pods can be translated only like this:
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/#how-to-use-manual-translation

Did you translate like this?

We have some talks with their developers, but there is still not full integration with our advanced translation editor.

February 21, 2024 at 3:00 pm #15328893

krachtig-online-comm.vM

Hi,

They were on "don't tranlate" before, but we changed it to test it out.
I switched back to "don't translate"

I tried the translation like you suggested with one product:
hidden link
This dit not solve the problem.

February 22, 2024 at 8:08 am #15331523

Bruno Kos
WPML Supporter since 12/2018

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

Timezone: Europe/Zagreb (GMT+01:00)

Would you be willing to provide me with WordPress and FTP credentials so I could investigate the issue directly?

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

I marked your next reply as private so that you can safely add credentials.

February 26, 2024 at 6:19 am #15342259

Bruno Kos
WPML Supporter since 12/2018

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

Timezone: Europe/Zagreb (GMT+01:00)

I am checking this with our 2nd tier, as the troubleshooting I tried didn't help. Perhaps it is a compatiblity issue with Pods.

February 26, 2024 at 8:18 am #15342643

Bruno Kos
WPML Supporter since 12/2018

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

Timezone: Europe/Zagreb (GMT+01:00)

I am not sure what happened but hidden link, hidden link, etc, all seem to work now.

Have you changed something in the meantime?

February 26, 2024 at 8:42 am #15342729

krachtig-online-comm.vM

Hi, we didn't do anything since last last week.
What did you change that could have fixed the issue?

February 26, 2024 at 9:16 am #15342923

Bruno Kos
WPML Supporter since 12/2018

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

Timezone: Europe/Zagreb (GMT+01:00)

I did this:

- WPML - > Support -> Troubleshooting:
– Synchronize posts taxonomies (for products and then for variations)
– Assign translation status to duplicated content
-- Set language information
-- Fix terms count
-- Fix post type assignment for translations

But at first it didn't work, but now it works, as something was still in cache.

I suspected we should try with the above syntonisation because of "Warning: Undefined array key "materiaal".

February 27, 2024 at 2:38 pm #15349615

krachtig-online-comm.vM

This seems to have worked.