Skip Navigation

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

Problem:
The client was experiencing a 502 error when trying to update a product through the admin and save the changes by clicking the update button. This issue was not occurring with every product, only some of them. The problem was found to occur when WPML Multilingual CMS was active.
Solution:
We ran the WPML troubleshooting options, which resolved the issue. We recommend the client to edit the product again to check if it works correctly. For further guidance on WPML troubleshooting options, please refer to our guide: WPML Troubleshooting Options.

If the solution provided here is not relevant to your case, either because it's outdated or it doesn't apply to your situation, we suggest opening a new support ticket. We also highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please contact us through 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.

This topic contains 11 replies, has 2 voices.

Last updated by Osama Mersal 10 months ago.

Assisted by: Osama Mersal.

Author Posts
April 1, 2024 at 2:50 pm #15469794

dimitrisD-7

Hello,

we are trying to update a product through admin and save the changes by clicking the update button.

We expected to see a redirection to the same page and a success message.

Instead, We got a 502 error.

Note that this is not happening to every product just some of them.

We have already done the conflict test by deactivate all my plugins and found out that the problem occurs when WPML Multilingual CMS is active.

Can you help us?

Thank you in advance.

April 1, 2024 at 3:42 pm #15470052

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Following these steps, please check if the issue persists in a minimal environment.

1- Deactivate all the plugins except WPML CMS, String Translation, WooCommerce, and WooCommerce Multilingual.
2- Switch to a WordPress default theme like Twenty Twenty-one.
3- Share a screen-recorded video while reproducing the issue.

❌ Please backup your database before performing the above test ❌

Best regards,
Osama

April 2, 2024 at 2:24 pm #15473605

dimitrisD-7

Hello Osama,

First of all we have to inform you that we follow the steps above in a subdomain that we cloned the main site so we don't need to restore the data if any was missing after these steps.

Below you can find the video sent by wetransfer.

hidden link

Thank you.

April 2, 2024 at 3:13 pm #15473893

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the video. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

April 3, 2024 at 1:58 pm #15478851

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I checked the issue, and after running the troubleshooting options, it seems to be fixed.

Kindly edit the product and check if it works correctly. (hidden link)

Please check this guide to know more about WPML troubleshooting options. (https://wpml.org/documentation/support/wpml-troubleshooting-options/)

Best regards,
Osama

April 3, 2024 at 2:35 pm #15479020

dimitrisD-7

It works correctly now!

Thank you very much for your help!

April 3, 2024 at 3:06 pm #15479251

dimitrisD-7

Hello,

unfortunately the issue seemed to be resolved but it actually didn't on live site.

We have followed the steps and executed the commands on the provided url.

I test it with a product that previously had an issue and it worked but there was still an issue with other products.

I have to mention that there is a minor difference between staging and live on plugin WPML Multilingual CMS version.

Live has the 4.6.10 version and staging the 4.6.9 version.

Can you further assist us?

Thank you in advance.

April 3, 2024 at 3:08 pm #15479260

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Would it be possible to push your live site to your staging site? So I can check the issue without affecting your live site.

Best regards,
Osama

April 4, 2024 at 7:45 am #15481287

dimitrisD-7

Hello,

we have made the push to staging site so you can further check the issue.

Thank you.

April 4, 2024 at 1:20 pm #15483388

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please check the access details because I got the following error. (Error: Username *** is not registered with this site. If you're not sure about your username, try your email address.)

Also, please share an example of the problematic products.

Thanks,
Osama

April 4, 2024 at 1:55 pm #15483855

dimitrisD-7

Hello,

We fixed that, can you try again?

Also you can find some names of problematic products below:

CABLEXPERT ULTRA HIGH SPEED HDMI CABLE WITH ETHERNET 'AOC SERIES' 20M

BLACKVIEW QUAD-CORE TABLET 10.1' (4GB+128GB) TAB 8 WIFI ANDROID 12 GREY

LAMTECH SMARTWATCH CHARGER FOR MODELS LAM113492 & LAM113485

TESSAN GaN UNIVERSAL TRAVEL ADAPTER 2xUSB, 2xTYPE-C MAX 65W

LAMTECH SMART WATCH BT5.1 WITH SPORT TRACKING TOTAL BLACK

Thank you.

April 4, 2024 at 2:22 pm #15484237

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the examples. I ran the troubleshooting functions. (Kindly check this hidden link)

After that, the products worked correctly. Kindly check them and let me know if they work as expected:

1- hidden link

2- hidden link

3- hidden link

4- hidden link

5- hidden link

Best regards,
Osama

April 4, 2024 at 2:50 pm #15484426

dimitrisD-7

Thank you for your assistance the issue is resolved!