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.
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
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/
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?
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.
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...
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.
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.
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
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.
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.