This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with importing product attributes in multiple languages using WP All Import. While test imports work fine, during real imports with many attributes, only some attributes are correctly transferred to the translated product. The client has tried synchronizing attributes, deleting products, and re-importing, but the issue persists. Solution: We identified that the problem arises because the attribute names in the original and translated imports are the same. According to our WP All Import guide, attribute names must differ between the original and translated versions during the import process. We recommend renaming the translated attribute names before import and, if necessary, renaming them back after the import is complete. For detailed steps and more information, please refer to our guide on importing multilingual terms with WP All Import and WPML: Importing Multiple Languages with WP All Import and WPML.
If this solution does not resolve your issue, or if it seems outdated or irrelevant 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. Additionally, please feel free to open 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.
Background of the issue:
In continuation of today's question:
All plugins have been updated
Tried to set the limit not 256, but 512 - did not help
Nothing changed, then 2 minutes and throws an error
Hi, left 5 active plugins hidden link
I updated the Twenty Twenty-Four theme and activated it - hidden link
The problem remained, the synchronization goes through 200-300 products and then freezes. Most likely the problem is in one of the products (or several). How can we determine what exactly the synchronization is resting on?
To enable it, open your wp-config.php file and look for
define('WP_DEBUG', false);
Change it to:
define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);
After this, repeat the action that caused the problem on your site—sync the attributes. In this case, the errors will be saved to a debug.log log file inside the /wp-content/ directory. Then, please share the errors with us.
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
I ran some troubleshooting options. First in WooCommerce -> WooCommerce Multilingual & Multicurrency -> Status -> Troubleshooting. I clicked the 'Sync removed product meta from original products to translations' option. Then I ran all the troubleshooting options in WPML -> Support -> Troubleshooting. Please see the attached screenshots. Then, I ran the sync option in WooCommerce -> WooCommerce Multilingual & Multicurrency -> Attributes. It took some time to finish because you have a lot of products, but eventually, the synchronization was completed successfully. Please see the attached screenshot.
The problem with the import is only partially solved.
Everything is fine with the test import, but when we run a real import with many attributes, only a part of the attributes gets into the translated product.
Original - hidden link
Translation - hidden link
All the attributes are transferred to the translation only after the original is saved.
What we tried:
- Run synchronization WooCommerce Multilingual & Multicurrency > Attributes
- Delete products and import new ones
- Delete attribute values
- hidden link
- hidden link
Import settings for translations:
- Import of translations is tied to the import of the original - hidden link
- The name of the attribute is the same as the name of the original, the value of the attribute is transferred without translation - hidden link
This is the first time in our correspondence that you have mentioned that you import the products and attributes. Mentioning earlier would have been helpful.
You wrote: "The name of the attribute is the same as the name of the original, the value of the attribute is transferred without translation"
This must be the problem. While importing content using WP All Import, the attributes can not have the same name in the original and translation imports. Moreover, the attributes and their transition must exist on the site before the imports. In our WP All Import guide, we mention the following:
If your taxonomy terms have the exact same name in the default and secondary languages, the import of the translated terms will not work right.
Before importing terms with the same name in multiple languages, we recommend renaming the translated terms. After the import, you can change the translated term name back to the same name as the default language term if needed.