Skip to content Skip to sidebar

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.

This topic contains 2 replies, has 1 voice.

Last updated by johnZ-10 2 months, 2 weeks ago.

Author Posts
February 2, 2026 at 1:10 am #17782138

johnZ-10

Hi, I'm seeing a bug on my site where posts have been duplicated for no reason. It seems to happen when a page is saved/updated.

I recently had to change the Default Language on my site. When I did, I deleted all the other translated versions of my pages, including the ones in the previous default language. Then, I used the Translation Manager to Duplicate all pages from the new default language, so they are all in sync.

I assumed this would change the "source language" of my pages to the new default language, but when I exported my pages to CSV, I can see that often the source languages is still the old default language. That could be a bug?

My site doesn't need translations, almost everything stays in sync with the default content. I use WPML for different regional sites in the same language.

Video: hidden link

February 2, 2026 at 3:07 am #17782153

johnZ-10

After chatting with the AI assistant, I noticed that the pages in my new default language still say "This page is a translation of <page name>" in the Settings sidebar. The assistant advised me to change this on all "original" (source) pages in the new default language. I will go ahead and do that.

When I duplicated my pages using Translation Manager, it would only process 4 pages (with 5 language duplicates) at a time, and fail with the following error:

"WPML\\Core\\Component\\Translation\\Domain\\Translation::__construct(): Argument #5 ($sourceLanguageCode) must be of type string, null given, called in /www/firmable_479/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/Infrastructure/WordPress/Component/Translation/Application/Query/TranslationResultMapper.php on line 52"

The duplicate pages were created but perhaps the process didn't complete properly?

February 2, 2026 at 3:21 am #17782156

johnZ-10

I'm going to close this request and post a new one with some new information I've learned.