Skip Navigation

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

Problem:
If you're seeing multiple versions of the 'Single Posts' template in WPML under WP > WPML > Translation Management and WP > WPML > Translations, it might appear that these templates have been duplicated erroneously.
Solution:
We recommend checking if these duplicates share the same ID by searching for _wp_page_template in your database. This issue might not be caused by WPML, as WPML links duplicates to the original using a trid field, and assigns different IDs to duplicates. To further investigate, try deactivating WPML temporarily after creating a full backup. If the templates still appear, they likely exist independently of WPML and can be removed directly from the database.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket for further assistance 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 3 replies, has 2 voices.

Last updated by Marcel 2 months, 1 week ago.

Assisted by: Marcel.

Author Posts
October 14, 2024 at 10:21 am #16285159

rayaA

There are 6 versions of the template "Single Posts". It can be seen in WP > WPML > Translation Management > select "Template" in "English" and type down "Single Posts" then hit "Filter" button and you will see 6 of them in the list.
Also WP > WPML > Translations > you can see 6 times Single Posts in the list.

October 14, 2024 at 2:21 pm #16286602

Marcel
Supporter

Languages: English (English ) German (Deutsch )

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

Hi,

WPML displays only what is present in your database. Could you please confirm that you have six templates with the names mentioned? If so, kindly delete them in the original language to ensure WPML shows them just once.

Best regards,
Marcel

October 15, 2024 at 12:24 am #16288137

rayaA

Seems like this is exactly the problem. There are multiple versions of this template in the database after trying to translate it. I could not of created the copies myself- when I create my own templates the author of the template is my user name in WP. However these templates are ones that are predefined by the theme, and the author is the child theme, which I think received them in turn from the parent theme 2024. There is no way for my user to duplicate or create these predefined templates from the WP admin, so they must have been duplicated in the database as a bug by mistake. And they all have the same name, so I cannot ever know which one is the original one that I need and which one I should translate. They all show that they have 9 revisions.

login details would be the same as https://wpml.org/forums/topic/split-try-to-translate-with-cte-it-shows-nothing-to-translate-and-nan-complete/#post-16288085

2.jpg
October 15, 2024 at 4:55 pm #16292041

Marcel
Supporter

Languages: English (English ) German (Deutsch )

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

Hi,

so they must have been duplicated in the database as a bug by mistake.

I agree, but WPML doesn’t have functionality that would cause this. When WPML duplicates content, it links the duplicate to the original using a trid field in the database, which stores the ID of the original item. Our duplicates are assigned completely different IDs, whereas it seems your entries might all share the same ID (search for _wp_page_template).

You can test this easily by temporarily deactivating WPML after creating a full backup. If the system still shows 6 templates, this indicates that they exist independently in the original setup and are not managed by WPML. In that case, you can safely remove them directly from your database.

Best Regards,
Marcel