Skip Navigation

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.

This topic contains 8 replies, has 2 voices.

Last updated by Itamar 4 months ago.

Assisted by: Itamar.

Author Posts
August 7, 2024 at 12:28 pm #16047911

mykolaL-4

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

Symptoms:

Questions:

August 7, 2024 at 12:44 pm #16047973

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

If oyu need further help with this issue, please get back to us after you check the minimum environment procedure I suggested.

Regards,
Itamar.

August 9, 2024 at 10:13 am #16055957

mykolaL-4

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?

August 11, 2024 at 4:02 pm #16059653

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, and thanks for trying my suggestions.

Please check for any PHP errors while the syncing process runs.

Please share WordPress's debug log (not WPML debug information).
Please check this page for instructions.

https://wpml.org/documentation/support/debugging-wpml/

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.

Thanks,
Itamar.

August 12, 2024 at 10:11 am #16061605

mykolaL-4

Nothing was written to the debug.log

August 12, 2024 at 1:28 pm #16062412

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

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

Thanks,
Itamar.

August 13, 2024 at 12:37 pm #16066326

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

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.

Please confirm that the issue is solved now.

Regards,
Itamar.

2024-08-13_11-58-27.jpg
2024-08-13_14-42-08.jpg
2024-08-13_15-17-58.jpg
August 16, 2024 at 5:17 pm #16078920

mykolaL-4

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

August 18, 2024 at 6:36 pm #16081768

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

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.

Please read our guide here.

https://wpml.org/documentation/related-projects/legacy-wpml-all-import/importing-multiple-languages-with-wp-all-import-and-wpml/#option-2-import-the-multilingual-terms-using-wp-all-import

Please let me know if you have any further questions.

Regards,
Itamar.