Skip Navigation

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

Problem:
If you're experiencing a 504 Gateway Time-out error when trying to update a variable product with WPML and WooCommerce activated, the issue might be related to the server not receiving a timely response from an upstream server it needed to access.
Solution:
First, ensure you have the latest version of the WPML plugin and its add-ons. You can find the latest versions in the 'My Account -> Downloads' section of the WPML website. For instructions on how to update, please visit http://wpml.org/faq/install-wpml/. Remember to back up your database before updating, using a plugin like Duplicator (http://wordpress.org/plugins/duplicator/).

Additionally, try increasing the PHP Max Input Vars on your server to 10000.

We've made some improvements in the latest release of WooCommerce Multilingual plugin.

If the solution provided here is irrelevant due to being outdated or not applicable to your 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 you still need assistance, please open a new support ticket in the 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 35 replies, has 2 voices.

Last updated by Andrey 1 year, 3 months ago.

Assisted by: Andrey.

Author Posts
October 6, 2023 at 8:40 am #14525595

frankC-20

Hi there, when I try to update a variable product, I get a 504 Gateway Time-out error. To find the culprit, I deactivated everything except WPML and Woocomerce. Still the error occured. I then deactivated WooCommerce Multilingual & Multicurrency. Afterwards, I could update the products without an error. Please advise - Frank

October 7, 2023 at 7:24 am #14531969

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

The 504 (Gateway Timeout) status code indicates that there is the problem with the server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.

Could you please update your WPML plugin to the latest version 4.6.6 and add-ons to benefit from the latest bug fixes and improvements? This may not necessarily resolve your problem, however, in order to troubleshoot the issue best we need to work on the latest code available.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

Please remember to backup your database first before you proceed! You can use a plugin for this if you like (example: http://wordpress.org/plugins/duplicator/)

Try also to increase the value of PHP Max Input Vars on your server to 10000.

Let me know if the issue persists after an update has been done.

October 10, 2023 at 4:47 am #14543721

frankC-20

I just see your reply now. Can you please carefully read my post? When I deactivate WooCommerce Multilingual & Multicurrency, the problem resolves. So it's the plugin that causes the problem. I tried to update the plugin, now I'm getting "Unable to parse data from service response.". Yet another problem which wasn't there before. I reaaally cannot recommend WPML - it's absolutely unstable and creates always new problems!! So how do I proceed?

October 10, 2023 at 4:49 am #14543723

frankC-20

hidden link

October 10, 2023 at 1:07 pm #14550225

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

This issue should be resolved: I'm getting "Unable to parse data from service response.". Please try again to connect your site and update plugins. We have released WooCommerce Multilingual & Multicurrency 5.2.1.

Let me know how it goes.

October 11, 2023 at 4:37 am #14554853

frankC-20

Hi, I successfully connected the site. When I wanted to update the plugins, I got a new error: hidden link

Download failed, forbidden...

Please advice. Frank

October 11, 2023 at 8:38 am #14556795

frankC-20

I don't know why, but I now I could update the plugins. I still get the 504 Gateway Time-out error when update a variable product. When I deactivate WPML, I can update without problems...

October 11, 2023 at 10:57 am #14558503

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

October 18, 2023 at 6:33 am #14599369

frankC-20

Hi - can you please take a look at the problem and let me know the solution? Thx, Frank

October 18, 2023 at 10:30 am #14601657

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for the information. I looked, and I think something is wrong with the database or the server settings.

Your database contains the tables with a character set utf8mb3 and collation utf8mb3_general_ci that the server might not support. This issue could happen when a site is moved from a newer version of MySQL to an older version of MySQL.

I suggest you convert those tables to utf8mb4_general_ci or utf8mb4_unicode_520_ci and check if the issue exists afterward.

You may want to contact your hosting if you need help changing the table collation.

October 20, 2023 at 4:55 am #14620487

frankC-20

Thank you. I converted everything (tables and columns) to utf8mb4_general_ci. I'm still getting the 504 Gateway Time-out error when I update the product, having WooCommerce Multilingual & Multicurrency activated. I wanted to see if WPML 4.6.7 brings a difference, however, I don't see the update, even if I click on search for updates on the Commercial tab. Please advise. Frank

October 20, 2023 at 7:14 am #14620711

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for the update. You might need to register your staging site with a new site key https://wpml.org/faq/how-to-remove-the-this-site-is-registered-on-wpml-org-as-a-development-site-notice/#what-if-the-notice-still-appears-after-moving-to-production or download and install the updates manually https://wpml.org/account/downloads.

If there is still an issue, please provide with new access details. I set the reply as private.

October 24, 2023 at 8:09 pm #14650665

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for the update. To determine if the problem is with the server, it's best to check it on an alternative server. I have created a staging site for you and kindly request that you copy your website there. You will find the details for accessing the staging site in the private message I am sending you.

October 25, 2023 at 9:27 am #14658875

frankC-20

Unfortunately, the upload to cloudways didn't work:

Error while creating the table wp_posts. Please contact support team.

Please suggest another way to solve the problem.
Frank

October 25, 2023 at 6:54 pm #14664245

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

It seems something is going wrong with migration. Could you please provide the FTP details? I set the next reply as private.

If I need to debug the problem further, I want to ask you about the possibility of replicating your site locally. For this, I'll need to temporarily install a "Duplicator" plugin on your site. This will allow me to create a copy of your site and your content. If you prefer to do it independently, you can provide me with the snapshot and send me the installer file and the zipped package you downloaded.

Let me know how you feel about this.