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.

Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 2 replies, has 0 voices.

Last updated by Andreas W. 3 days, 19 hours ago.

Assisted by: Andreas W..

Author Posts
April 24, 2025 at 2:47 pm #16964915

zakW

Background of the issue:
I'm trying to translate all link targets on my website using WPML. Additionally, I need to sync all the items on my menu.

Symptoms:
WPML says 'Error! Reload the page and try again' when translating link targets. I also encounter a 504 timeout error when syncing menu items, even after increasing the timeout limit to 2 hours.

Questions:
Is there a way to translate link targets via code?
Is there a way to sync menu items via code?

April 24, 2025 at 9:44 pm #16966428

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

You are trying to sync more than 95k links.

The PHP Time Limit is set to 300 seconds on your server, which means that if the dialog runs 5 minutes, it will be canceled by the server.

I would suggest you contact your hosting support team and ask them to set a higher value for the max_execution_time inside the PHP settings.

Best regards
Andreas

April 25, 2025 at 7:23 am #16967081

zakW

Hi Andreas,

I have access to the server so I can change the time to whatever value I have too. Is there a recommendation from your side that I can change it too. I had one time running the server with 2h and it wasn't enough

That is why I asked if there was a way to do this outside the backend and do it via a cron job for example

April 25, 2025 at 2:18 pm #16968979

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Honestly, this is the biggest amount of internal links I have seen so far and I can not tell how long the dialog would need to run. I know that this dialog can demand a lot of time, but maybe we should check if an error will be logged while the dialog is running.

If 2 hours were not enough in the past, maybe try setting the limit even higher.

What I can offer is to take a look at the affected original contents and their translations and run some tests, if you provide me admin access and links to example contents.

Also, if you provide me admin access I can enable WP DEBUG and check for errors but please make sure first to set the time limit in PHP to a significantly higher value.

I would like to request temporary access (wp-admin and FTP) to the website to investigate the issue further.

You can find the required fields below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may need to install a plugin called "All In One WP Migration" to create a copy of the website so I can investigate the issue further on a virtual server for comparison.

The private reply form looks like this:
hidden link

Click "I still need assistance" the next time you reply.

Video:
hidden link

Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket using the private response form.

April 29, 2025 at 5:17 pm #16980469

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The site has more than 12k products.

It would be very helpful in this case if you could provide exact examples.

Please send me the links or titles of the original products.

Further, there are 32 Updates available. Please do only report an issue, if you verified that the issue persists after running the site with the latest versions of all components (WP Core, Theme, Plugins).