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 is split from https://wpml.org/forums/topic/dupliciate-attributes-on-the-product-page-after-importing-data/
Tagged: Bug
This topic contains 5 replies, has 2 voices.
Last updated by Long Nguyen 1 year, 10 months ago.
Assisted by: Long Nguyen.
Author | Posts |
---|---|
July 21, 2023 at 1:55 am #14075483 | |
martinH-133 |
Hello, I tried to reproduce it on the sandbox, but can't. I assume it has todo with the process of migrating polylang data to wpml? |
July 21, 2023 at 1:59 am #14075485 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi Martin, Please restore your site to the point before migrating data and run the migration process again to see if there are any issues there. Refer to the documentation I also need more information on your site by sharing the debug info. If you don’t know how to share the debug info, please follow this article https://wpml.org/faq/provide-debug-information-faster-support/ Look forward to your reply. |
July 21, 2023 at 2:13 am #14075489 | |
martinH-133 |
I tried for numerous hours now. Did Backups retried the migration and so on. The migration always works fine. But as soon as I start importing products again like i did before with polylang (i use the same files from the last import with polylang again). The behaviour starts getting weird. Sometimes it works but most of the time the terms get duplicated. If you clean up the data afterwards (Troubleshooting) everything is fine for the moment. But as soon as I start the import again. It doubles again. So it has to have something todo with the importing process. What would be the recommended way to do first import after the migration? Use the old wp-all-import, or create a new one and match the items? |
July 21, 2023 at 4:18 am #14075507 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Please restore your site to the point before migrating data from Polylang to WPML and I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info. ❌ IMPORTANT: Please backup your database and website before proceeding ❌ Also, please share the import file with a few products and attributes then let me know steps to import data to your site. I will try to replicate and investigate the issue. Look forward to your reply. |
July 21, 2023 at 12:01 pm #14079845 | |
martinH-133 |
Hey, So i figured out what the issue was. Due to some broken imports or similar, there where several variations where the _sku value was unset. As I have to use the sku value (I know you reccomend against in the tutorial, but its the only common constant) for the linking of the product and for the translation linkings as well i think that resulted in the mistakes. I solve that issue by adding a cleanup function on an importer hook, which deletes non linked variations that block the sku generation. Maybe it would make sense to add a troubleshooting option, which deletes variations that have no value set in the translation linking field? |
July 24, 2023 at 2:50 am #14085399 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I don't see the issue with duplicate variations on the sandbox site in the second language but if you set the SKU as the Unique Identifier value to import products/variations for multilanguage, you should set the same value for one product/variation across languages. If a variation is missing this value in the import file in the second language, it will work properly in the frontend. But it will not be treated as the translation of the variation in the original language and you will not be able to change the variation info in the second language or sync it with the variation in the original language even running the troubleshooting option. If you create a custom function to delete the variation that does not have the SKU value, that's a good idea. And running the troubleshooting sync in WooCommerce > WooCommerce Multilingual & Multicurrency > Settings > Troubleshooting > Sync products variations, will fix this issue. Refer to the documentation https://wpml.org/documentation/related-projects/wpml-all-import-plugin-website-import-with-wpml/importing-multiple-languages-with-wp-all-import-and-wpml/ Look forward to your reply. |