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.
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?