Skip to content Skip to sidebar

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

Problem:
The client was experiencing a 504 error on their multilingual e-commerce site when accessing a product page in English, despite the page working fine in other languages. The permalink settings were set to 'post name' for general links and 'custom' with a '/product/' base for product links.
Solution:
Upon further investigation, we discovered that the issue was also related to an outdated theme. The client was using the Deli theme, a child theme of the Storefront theme, which was not updated. After updating the Storefront theme, the 504 error was resolved.

If this solution does not apply to your case, or if it seems outdated, 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 issue persists, please open a new support ticket 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.

Tagged: 

This topic contains 11 replies, has 1 voice.

Last updated by guadalupeS 1 month, 3 weeks ago.

Assisted by: Itamar.

Author Posts
February 10, 2026 at 4:39 pm #17810468

guadalupeS

See
https://wpml.org/forums/topic/solving-an-error-504-on-the-front-end-for-specific-product-translations/#post-17810343

Plugins are updated to latest version, max_execution time is set to 180, other time limits have been updated as well by the hosting provider. But the error remains for English language products.

February 10, 2026 at 4:58 pm #17810561

guadalupeS

I've retried in Plesk to generate debug files for WordPress....but no debug file is generated in spite of the error 504.

February 10, 2026 at 6:39 pm #17810902

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi,

I'll continue to help you with this issue.

I can see a 504 error, for example, here: hidden link.

Please consider changing the Language URL format to 'Different languages in directories'. You can do it in WPML -> Languages -> Language URL format. After that, go to Settings -> Permalinks and re-save the permalinks (click the Save Changes button). If you can't switch to the 'Different languages in directories' option, please only go to Settings -> Permalinks, and re-save and see if it helps.

Please let me know how it goes.

Thanks,
Itamar.

February 12, 2026 at 12:05 pm #17816819

guadalupeS

Hi,

I changed to using different languages in directories, but unfortunately that didn't help.
"hidden link" and
"hidden link" work fine, but
"hidden link" still gives error 504.

With respect to permalinks, if it is any useful information to you, the "permalink structure" is set to "post name" and the "product permalinks" is set to "custom" with a "custom base" set to "/product/"

With kind regards,
Guadalupe Sierra

February 12, 2026 at 12:15 pm #17816888

guadalupeS

Hi,

I found something strange that may or may not be related. We own the domains "engrano.fr" and "engrano.nl", because we used to be located in The Netherlands but since october 2023 we're in France. We kept the old domain name just in case.
We moved the website from "engrano.nl" to "engrano.fr" and we changed the default language from English to French In principle the website runs under "engrano.fr" and "engrano.nl" just redirects to "engrano.fr".
For languages there is the possibility to specify a domain per language. If I choose that option then WPML suggests domains per language, and the suggestions it does are:

French: hidden link
Dutch : hidden link
English: hidden link

So for French and Dutch it uses "engrano.fr", but for English it uses "engrano.nl". So it feels like something didn't completely go right making the changes as described above when we moved from The Netherlands to France. However, until 2 weeks ago we didn't experience any problems.
You think any of above may be the root of the error 504?

With kind regards,
Guadalupe Sierra

February 12, 2026 at 3:07 pm #17817525

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi, and thanks for trying my suggestions.

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

Regards,
Itamar.

February 12, 2026 at 9:09 pm #17818905

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi,

I have found that when the 504 error occurs, the following error is logged into the debug.log file.

[12-Feb-2026 20:43:21 UTC] PHP Fatal error:  Maximum execution time of 180 seconds exceeded in /var/www/vhosts/engrano.nl/staging.engrano.fr/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php on line 56

I'm consulting our second-tier supporters about this problem and will keep you updated here.

Please note that my weekends are Friday to Saturday. If you need further assistance, I'll be available to continue checking this issue and helping you next week.

I appreciate your patience.
Itamar.

February 15, 2026 at 8:25 pm #17823846

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi,

Our second-tier supportersuggest trying the following.

1. Duplicate the product with the problem and see if it also happens with the duplicate product.

2. If it persists, we suspect a collision with the theme or another plugin might cause this problem. If possible, get your site into a minimum environment by switching to a default WordPress theme like TwentyTwenty-Four and activating only WPML.

First, you must check if the problem persists when just the theme is switched to TwentyTwenty-Four (for example). If it persists, deactivate all plugins except WPML and its add-ons and WooCommerce without any extensions. Then, please check if the problem persists. If it does not persist, start by activating the plugins individually and check whether the issue returns; then report to me which plugin was the culprit.

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****


*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***

If you can't perform this on your site, please allow me to take a copy of your site. To do this, I must install a plugin such as Duplicator or All-in-One Migration. Please let me know if you agree.

Regards,
Itamar.

February 18, 2026 at 8:08 am #17831067

guadalupeS

Hi,

I made a duplicate for 2 products that give the error 504, and the duplicates work fine without an error.
Unfortunately making duplicates of the products that give the error is not really a preferred solution because it would increase the amount of products significantly since I can't really trash the products with problems as they're linked to orders.

With kind regards,
Guadalupe Sierra

February 18, 2026 at 9:22 am #17831362

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi, Guadalupe Sierra.

In this case, please allow me to take a copy of your site. To do this, I must install a plugin such as Duplicator or All-in-One Migration. Please let me know if you agree.

Regards,
Itamar.

February 18, 2026 at 9:29 am #17831399

guadalupeS

Hi,

Well, the link I gave you is already copy of the live site, so feel free to make changes to that copy and even copy the copy.

Kind regards,
Gudadalupe

February 18, 2026 at 1:42 pm #17832743

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

I have found that you are using the Deli theme, a child theme of the Storefront theme. The Storefront theme was not updated on your site. SO I updated it. Please see the attached screenshot. This resolved the problem. I no longer face the 504 error. For example, with this product: hidden link.

Can you please confirm that the problem has been resolved?

Thanks,
Itamar.

2026-02-18_15-38-01.jpg
February 18, 2026 at 1:48 pm #17832770

guadalupeS

I immediately updated it on the live site as well and indeed, the problem is resolved.
Since I don't use StoreFront theme directly (but only a spin-off) I was not aware I had to update the original theme as well.

Thank you very very much!

Guadalupe Sierra