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
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

This topic contains 3 replies, has 1 voice.

Last updated by Dražen 4 weeks ago.

Assisted by: Dražen.

Author Posts
May 7, 2025 at 11:58 am #17005563

FortunyShop

Background of the issue:
I am trying to duplicate products using WPML.

Symptoms:
I encountered a timeout error and often see some incorrect copies of a duplication in random languages.

Questions:
Why am I experiencing a timeout error when duplicating products?
How can I prevent incorrect copies in random languages during duplication?

May 7, 2025 at 12:21 pm #17006570

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

To better understand the issue with the timeout errors and incorrect duplication in random languages, we have a couple of follow-up questions:

1. How many products are you trying to duplicate at once? A large number of duplications can easily exceed server execution time limits, especially if your hosting environment has strict resource limits.

2. Can you please share your WordPress debug logs and server error logs? These will help us pinpoint whether the problem stems from PHP timeouts, memory limits, or plugin conflicts.

Once we have this information, we’ll be in a better position to assist you further and suggest an optimal solution.

May 9, 2025 at 7:55 am #17015025

FortunyShop

I can see nothing in particular in the debug.log and error log, this is the last line i find (which has nothing to do with the duplication of my product):

[16-Apr-2025 14:18:15 UTC] PHP Deprecated: Implicit conversion from float 1.9 to int loses precision in /var/www/vhosts/fortuny.shop/httpdocs/wp-content/themes/flatsome-child/functions.php on line 4871

Please find attached the screenshot of the error when I try to duplicate a product with several variations. Is there a way to avoid this and maybe duplicate products as a background process?

Thanks

Screenshot 2025-05-09 095210.png
May 12, 2025 at 7:02 am #17021128

Dražen
Supporter

Languages: English (English )

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

Hello,

Thanks for getting back.

1) Can you also check server error logs, there should be at least timeout error mentioned.

2) It could be that there is a lot of information to be duplicated, so it takes time, so it could bethat this is nothing unexpected.

Does the same issue happen with simple test product, or only specific ones?

3) Go to Plugins > Add New > Commercial > Click “Check for updates" and update WPML plugins to latest versions.

Please make sure to create a backup before doing any actions, just in case.

4) I am afraid there is no way to be duplicated in background, but you can try custom code and our hooks:

- https://wpml.org/wpml-hook/wpml_make_post_duplicates/
- https://wpml.org/wpml-hook/wpml_admin_make_post_duplicates/

Regards,
Drazen

The topic ‘[Closed] Duplicating causes timeout error’ is closed to new replies.