Skip Navigation

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

Problem:
If you're experiencing errors when trying to set a post as nofollow with Yoast, and encountering fatal errors after saving the post, it might be related to your WPML settings and configurations.
Solution:
The issue occurred only with specific custom post types, such as "Downloads" from "Download Manager Pro". Setting these custom post types in WPML to "Translate independently" instead of duplicating them resolved the issue.
We also recommend updating all your plugins to verify if the issue persists. If it does, we can try to recreate the issue on a test site.

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem continues, please open a new support ticket at 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 0 voices.

Last updated by Andreas W. 1 month, 1 week ago.

Assisted by: Andreas W..

Author Posts
April 22, 2025 at 6:18 pm #16956933

larryL-9

Also, we are getting an error when we try to set a post as nofollow with Yoast. It flags errors on your plugin...

Attached are both what we are doing and what is happening

April 23, 2025 at 3:28 am #16957781

Andreas W.
WPML Supporter since 12/2018

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

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

I connected to your site and changed the noIndex option on various posts in different languages but had no issue with saving the option.

Could it be that this error only occurs on some specific posts? Please always name an example where we can see the issue when reporting an issue.

April 23, 2025 at 4:02 pm #16961266

larryL-9

I assumed you changes those back to being index after?

Here are some URLs we are having issues with:
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link
hidden link

April 23, 2025 at 7:30 pm #16961879

Andreas W.
WPML Supporter since 12/2018

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

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

Yes, surely I have reverted the changes.

I will take a look at the mentioned posts this afternoon and then get back to you.

April 24, 2025 at 1:45 am #16962319

Andreas W.
WPML Supporter since 12/2018

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

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

Note, on your site the WP MEMORY LIMIT was not declared correctly inside wp-config.php.

It said:
define('WP_MEMORY_LIMIT', '256');

But should be:

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

I have adjusted this.

---

Next, I went to one of your example posts, and changed the NoIndex setting, then saved the post.

This triggers the following fatal error:

PHP Fatal error:  Uncaught Exception: Modèle de page non valide. in /nas/content/live/heskins1/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-duplication.class.php:104
Stack trace:
#0 /nas/content/live/heskins1/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(4561): WPML_Post_Duplication->make_duplicate(285706, 'fr')
#1 /nas/content/live/heskins1/wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-synchronization.class.php(94): SitePress->make_duplicate(285706, 'fr')
#2 /nas/content/live/heskins1/wp-content/plugins/sitepress-multiling

Now, this example is not a normal WordPress Post, it is a Custom Post Type called "Downloads".

Do I understand right, that the issue only occurs on this post type and this post type is coming from "Download Manager Pro"?

Please update all plugins and verify if the issue persists. If this will be the case, we should try to recreate the issue on a test site which I will provide.

April 24, 2025 at 7:58 am #16962901

larryL-9

Hi Andreas

Thanks for this. Yes you are correct. it's the downloads pages with that plugin. Here is an example where it is causing an error: hidden link

I have updated everything and the problem still persists.

April 24, 2025 at 2:51 pm #16964953

Andreas W.
WPML Supporter since 12/2018

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

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

Could you please install the latest version of "Download Manager Pro" on the following test site, so that I can try to replicate the error there?

One-Click-LOgin:
hidden link

Make sure to leave a comment on this ticket once you are done with this task.

April 24, 2025 at 3:23 pm #16965151

larryL-9

Hi

I sure can and have.

April 24, 2025 at 5:59 pm #16965784

Andreas W.
WPML Supporter since 12/2018

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

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

So far I have not been able to replicate the issue on the sandbox and need to run further tests.

A question:

As you can see on the screenshot some of the translations that you created are duplicates. This means that those are not independent translations and they will get overwritten each time the original product is updated.

Would you mind if we ran a test and set those duplicates as independent translations to verify if this solves the issue?

duplicate.jpg
April 25, 2025 at 9:57 am #16967659

larryL-9

Yes that's okay with me.

April 25, 2025 at 4:24 pm #16969446

Andreas W.
WPML Supporter since 12/2018

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

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

This failure is not to be connected to Yoast SEO.

Your example also showed the error, if I saved the original content without making any changes.

Settings these "Duplicates" to "Translate independently" appears to solve the issue.

In this case, I would suggest not duplicating these custom post types with WPML.

translate independently.jpg