Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 3 replies, has 3 voices.

Last updated by Prosenjit Barman 4 months, 1 week ago.

Assisted by: Prosenjit Barman.

Author Posts
July 24, 2024 at 10:31 am #15997732

newcomS

Background of the issue:
I want to import products through the WooCommerce API in the languages French and English. Importing the attributes and categories works just fine. When it comes to creating the products, it just stops and ends the import. There are 615 products in total for each language, and I do it both separately. If I only do it with 100 products, it works. If it's more, it just stops and doesn't create the products.

Symptoms:
The import process stops and ends when trying to create products if the number exceeds 100.

Questions:
Why does the import process stop when trying to create more than 100 products?
How can I successfully import all 615 products in both French and English?

July 24, 2024 at 12:20 pm #15998305

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hi,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.

1) Please update all WPML plugins to the latest version by going to the Plugins → Add New page, click the Commercial tab, and then click Check for updates.

- https://wpml.org/faq/install-wpml/#wpml-4-2-8

2) Can you check if the same issue happens when you try with WPML plugins disabled?

Thanks,
Drazen

July 25, 2024 at 1:54 pm #16003914

newcomS

Hi,

We can not update it, since we need to be on the older version.

The Issue doesn't happen if the WPML plugins are disabled, since we're trying to create products in a different language than the main language.

The Main Language we use is German, the API is working for those and it creates all 615 Products.

The Issue is with the Products in the Languages French and English. After 155 Products it stops.

Best Regards,
Stefan

July 29, 2024 at 4:40 am #16013544

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi Stefan,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

I have taken over this ticket and will do my best to assist you.

I understand updating the plugin is not an option for you, though we recommend keeping plugins updated for bug fixes and improvements.

While reviewing the WPML Debug Info, I noticed that the `max_execution_time` is set below the recommended value. Setting this to a standard value ensures the script can execute correctly within the given timeframe. Please increase the `max_execution_time` to at least 300 and then try the import again. Follow the guide below for instructions on how to adjust this setting.

- hidden link

If the issue persists, please enable WordPress Debug on your site and attempt the import again. If the process gets stuck, open the debug log, copy the recent errors logged due to this issue, and share that log in your next response. I will check and let you know what to do next.

Looking forward to your response.

Best regards,
Prosenjit

The topic ‘[Closed] Synchronization of Products in languages FR and EN’ is closed to new replies.