Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing a 524 error due to response times exceeding 100 seconds when trying to save their site's homepage using WPML. This issue occurred with 24 languages active, and the error appeared when the homepage's edit link showed as a Pencil Icon, but not when it showed as a Circle Icon.
Solution:
Initially, it was suspected that WPML might be causing the issue. However, upon further investigation, the client discovered that the LinkWhisper plugin was the real culprit, taking too much time when more content was added, thus causing the 524 error. The client was advised to check with Cloudflare if they were blocking WPML servers and to test with only WPML plugins and the WordPress default theme to check for compatibility issues.

If you're experiencing similar issues, we recommend checking for any plugins that might be affecting response times and consulting with your CDN provider to ensure there are no blocks on your server communications. Additionally, testing with a default theme can help identify any compatibility issues.

Please note that this solution might be outdated or not applicable 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. If the problem persists, please open a new support ticket.

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 10 replies, has 0 voices.

Last updated by jose-antonioP-6 1 month ago.

Assisted by: Dražen.

Author Posts
December 3, 2024 at 4:40 am #16469274

jose-antonioP-6

Background of the issue:
I am trying to save our site homepage using WPML, but we are encountering issues with Cloudflare (CF) due to response times exceeding 100 seconds, resulting in a 524 error. We have identified WPML as the cause. We have 24 languages active and are experiencing issues with saving homepage both published and drafts pages.

Symptoms:
The response from the request takes more than 100 seconds, causing a 524 error. We are unable to save the homepage page when the other languages' edit link shows as a Pencil Icon, but we can save it when it shows as a Circle Icon.

Questions:
Why does the response time exceed 100 seconds when saving the homepage?
How can I resolve the 524 error caused by WPML?

December 3, 2024 at 6:53 am #16469486

Dražen
Supporter

Languages: English (English )

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

Hello,

do you mean just saving pages inside WordPress editor or when translating in the WPML editor?

If you mean by WPML, I would advise checking further with Cloudflare if they are blocking WPML servers somehow, and checking with only WPML plugins and WP default theme if there is some compatibility issue.

Let us know how it goes.

Regards,
Drazen

December 3, 2024 at 9:25 am #16470536

jose-antonioP-6

Just saving inside WP Editor. We can't switch our theme, we will setup a new test site to further investigate but what we discovered is already explained into this ticket.

Does WPML performs any action when post/page save request triggers?

December 3, 2024 at 9:44 am #16470644

Dražen
Supporter

Languages: English (English )

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

Hello,

okay please check and let me know:

1) Does the issue happen for the default language or translated or both?

2) Does the issue happen when only WPML plugins and WP default theme are ctive?

3) Yes, wpml does the sync of custom fields for example if you have set them to copy and etc.

Let me know how it goes.

Regards,
Drazen

December 3, 2024 at 10:24 am #16470879

jose-antonioP-6

Hello,

1) for both languages.

2) we haven't tried this scenario, btw we are using GeneratePress plugin and theme.

December 3, 2024 at 10:27 am #16470887

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks.

1) Please try also if the issue happens when WPML plugin is disabled.

2) Okay, let me know when you have try it on the new staging site, that you mention you will create.

Regards,
Drazen

December 3, 2024 at 10:33 am #16470956

jose-antonioP-6

Hello,

1) If I will disable the WPML, and save only one language it will not cause any issue?

2) yes the new staging setup is in progress, our site size is big and our database size is very big too. The postmeta table itself is more than 13GB and site is more than 40GB except database

December 3, 2024 at 10:36 am #16470980

Dražen
Supporter

Languages: English (English )

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

Hello,

1) It should not, but better to check on the staging site.

2) Okay, then that could be the reason why it takes so much time, your pages / DB is large, and it might be case the issue happens also without WPML. With WPML it will also take a lot of time since WPML needs to re-save and sync custom fields, and translations with translated pages, so it might just be expected since you have such a large website.

Regards,
Drazen

December 3, 2024 at 10:51 am #16471051

jose-antonioP-6

Hello

1) Then I will try this after staging setup, can't take risk with live site.

2) And this is only happening with Homepage because only homepage has highest number of translated page.

December 3, 2024 at 11:25 am #16471285

Dražen
Supporter

Languages: English (English )

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

Hello,

okay please let me know when you tested how it goes for each case.

Yes, as said that could be expected WPML needs to sync custom fields/content to other languages and trigger translation update notifications.

Regards,
Drazen

December 3, 2024 at 2:39 pm #16472536

jose-antonioP-6

Hello,

We were able to figure out the real culprit. Sorry to blame WPML first, it was LinkWhisper plugin which was taking too much time when more content added, thus causing 524 error.

Once again sorry and thank you.

December 3, 2024 at 2:41 pm #16472539

jose-antonioP-6

Thanks for prompt responses and your help lead us to find real culprit so once again thanks a lot.