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.

Tagged: 

This topic contains 19 replies, has 2 voices.

Last updated by nicolas-jarneB 1 year, 8 months ago.

Assisted by: Osama Mersal.

Author Posts
May 25, 2023 at 1:53 pm #13716961

nicolas-jarneB

Tell us what you are trying to do?
I am trying to translate my templates and changed all pods fields to 'translatable' and translated everything in that plugin; but the weird thing is that content is only showed on the translated version (en) but not on the original one (es).

Is there any documentation that you are following?
Just translated everything following the same steps as with other plugins.

Is there a similar example that we can see?
I'll attach two examples in the next answer.

What is the link to your site?

You can check this two urls:

1. hidden link
2. hidden link

They are equivalents, but while the translation works great, the spanish version does not show any content.

May 28, 2023 at 8:32 am #13727273

Osama Mersal
Supporter

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

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

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) First of all, sorry for the late reply due to a higher workload. Would you please login to this sandbox site and install the Pods plugin? (hidden link)

After that, please try to replicate the issue, and if the issue is replicable, please let me know the steps to reproduce it.

2) It's unrelated to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

June 2, 2023 at 5:07 pm #13763235

nicolas-jarneB

Hi Osama,

thanks a lot for your reply and apologies for the delay.

I think I finally could replicate the issue in that sandbox, as my custom template doesn't appear in any of those pages:

hidden link
hidden link

It did before translating Pods, and now you'll see that custom fields also dissappeared from the translation in the CMS (/es/ngo/example-1/).

I think this is quite similar to what we are facing in our website. Do you see anything wrong there?

Thanks a lot again,

June 2, 2023 at 7:48 pm #13763529

Osama Mersal
Supporter

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

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

Hi,

Thanks for your update. I checked the sandbox site and found that when setting the "Pods (_pods_pod)" post type to "Not Translatable", the translated post worked correctly.

Kindly check the translated post and let me know if it works as expected. (hidden link)

Best regards,

June 4, 2023 at 9:18 pm #13766709

nicolas-jarneB

Yeah, it looks much more as expected: with the template working on both languages. But I tried to replicate the same config to our website and the template still only working on the translation, but not on the original version.

I found that we also enabled the 'Translate Pods Admin' in the components tab, but deactivated it while replicating your config. Don't know if that might affect, but it's quite weird since in the sandbox it's working now.

Thanks a lot Osama,

June 5, 2023 at 7:27 am #13767625

Osama Mersal
Supporter

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

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

Hi,

Please go to WPML-> Settings and compare the settings on the sandbox site and your site, especially the Post Type Translation section.

Also, please check the Pods settings on both sites.

Best regard,

June 5, 2023 at 9:17 am #13768329

nicolas-jarneB

Yes, I made sure to replicate all those settings. Here's an screenshot ('_pods_template', which doesn't appear there, is also set as 'Translatable, only show translated items').

Pods also looks the same to me, the only difference I found is that we do not have the 'Multilingual Content Setup' section in our templates; which I see in the sandbox. I also attach another screenshot about the section I refer to.

Any other idea?

Thanks a lot for your help,

TBT - multilang content setup.jpg
TBT - pods_config.jpg
June 5, 2023 at 10:14 am #13769089

Osama Mersal
Supporter

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

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

Hi,

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 if possible –
in order to be of better help and check if some configurations might need to be changed.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason 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

June 6, 2023 at 10:03 am #13777319

Osama Mersal
Supporter

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

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

Hi,

Thanks for the access details. I checked the issue, and it seems to happen only on the front end of the default language, so could you please deactivate WPML plugins and check the issue?

Kindly let me know if the issue persists when WPML is deactivated.

Best regards,

June 6, 2023 at 11:22 am #13778033

nicolas-jarneB

Hi again,

Yeah, template was working on translation, but not on the default language.

Now, I tried by deactivating WPML and it looks ok, the default template is also working. You can check it again if you want to.

Any idea?

Thanks!

June 6, 2023 at 11:33 am #13778161

Osama Mersal
Supporter

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

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

Hi,

I activate WPML, and the post works correctly in both languages. (Kindly check the attached screenshot)

Please check it and let me know if it works correctly.

Best regards,

1.jpg
June 6, 2023 at 12:55 pm #13778921

nicolas-jarneB

You're right, and seems like I found the issue: it only works when translated template is set as 'Draft'. When I publish, it breaks again.

So now, templates are working fine; but I am getting many internal server errors while navigating within those pages. Here's an screenshot, did it also happen to you?

Don't know if all this give you any other idea about the issue itself, because it stills a bit weird to me.

Thanks,

TBT - internal_error.jpg
June 6, 2023 at 1:23 pm #13779183

Osama Mersal
Supporter

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

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

Hi,

1) For the templates issue, maybe the template post type needs to be set "Not Transltable" as the "Pods" post type.

2) For the Error 500 issue, I noticed it, but it's fixed when resaving the permalinks. However, In our forum, we try to keep one issue per ticket, so may I kindly ask you to open a new ticket for your additional question?

Continuing with one ticket per issue helps supporters focus on one issue at once and enables other users to find solutions to their questions faster.

Best regards,

June 6, 2023 at 1:49 pm #13779309

nicolas-jarneB

Sure, I'll open a new ticket for that.

About 1), I tried setting '_pods_template' as 'Not translatable' and it keeps working. But now I see all templates together (they are not split by lang like before) and it's weird, because templates are still working well even when the english version is a 'Draft'. So there's two big question for me:

- If set as 'Not translatable' there's no relationship between templates, how can it still using the right template in english/spanish?
- How is it possible that the english template is working well while set as a draft?

I think the errors are related to that, as it looks like the translation cannot be found 'WordPress database error Table 'tribuntu_TL6NZMLB.wp_icl_translations' doesn't exist for query'.

I am starting to wonder if it would be much easier/safer to move to another plugin x)

Thanks again Osama,

June 6, 2023 at 1:55 pm #13779349

Osama Mersal
Supporter

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

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

Hi,

1) When the template is drafted, it will only work when you are logged in, but the logged-out user won't see the English template.

2) When the templates are not translatable, they will not be related, so you need to handle them separately or contact Pods support to consult them, which is the best way to translate the templates.

3) I didn't see the error you mentioned, but please note that the Pods plugin is not officially compatible with WPML. Kindly check our compatibility list here. (https://wpml.org/plugin/)

Best regards,
Osama