Skip Navigation

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

Problem:
If you're experiencing a 500 internal error on your translated page after adding a product to the cart, and this occurs when certain plugins (Payment Plugins for Stripe WooCommerce, Sequential Order Numbers for WooCommerce, and Variation Swatches for WooCommerce) are enabled, it might be due to a compatibility issue with WPML.

Solution:
We recommend reaching out to the authors of the plugins that are causing the issue and request a compatibility update with WPML. We provide extensive documentation to help developers make their plugins compatible. You can find this information at the following links:

Encourage the plugin authors to join the Go Global program to ensure their products are fully compatible with WPML.

If this solution doesn't seem relevant to your situation, please open a new support ticket with us for further assistance.

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 9 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 3 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
January 8, 2024 at 9:48 am #15159262

yousefH-7

We are facing 500 internal error after installing the WPML plugin. English page is working fine but when we try to use arbic page the it show 500 error after add to cart.

hidden link
hidden link
..

January 8, 2024 at 10:23 am #15159542

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to our recent chat, please take your time to try the following and let me know when you're ready:

Before proceeding further, may I ask you to try the following?

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

- Deactivate all plugins except WPML and WooCommerce and check for the issue.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, repeat the above steps with a default theme of WordPress (i.e. 2021 or 2023).

Regards.

January 9, 2024 at 10:33 am #15163912

yousefH-7

I tried to debug on staging site but it now showing error after complete the setup of WPML

WordPress-›-Error.png
January 9, 2024 at 12:43 pm #15164469

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

Apparently the Fatal Error is pointing to a WooCommerce code, while others are just warnings mostly from another plugin and shouldn't break site into 500 error.

However, I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

January 9, 2024 at 2:41 pm #15165277

yousefH-7

we are going to disable the WPML plugin on prod until it fix on staging
you can test on staging
details are same staging admin is also working now.
hidden link

January 9, 2024 at 2:42 pm #15165278

yousefH-7

staging root folder is
/staging.fulfillby.expert

January 9, 2024 at 2:46 pm #15165299

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the access.

I checked quickly for a few things, also updated WooCommerce and a few active plugins but looks like problem is still there.

I am working on this but it may take some time. I'll be able to update you by tomorrow.

Please keep fresh backup of your site and database.

January 10, 2024 at 7:21 am #15167332

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for waiting on this. I tried on your staging site by checking followings:

- Only WPML plugins + 2024 theme
- Only WPML plugins + your child theme (kicker)
- Activated some plugins required by your theme, like ThemeREX plugins
- Activated WPML addons providing multilingual support for ACF, CF7, GF, MailChimp and etc
- Activated SEO plugins like WPML SEO and Yoast SEO
- Activated W3 Total Cache plugin

I wasn't able to reproduce the issue in any case - see my screen recording hidden link.

Besides this I fixed a minor deprecation notice for WPML Sticky Links (https://wpml.org/forums/topic/php-8-1-compatibility-issue/#post-12413459) which was just preventing to select a product variation due to output prior to an inline (AJAX) operation.

I am not sure what else would cause that 500 internal error, since we can't check each plugin one by one. So if you can go further and pinpoint the reason when it really happens, that would be great and we can then move forward in that direction.

January 11, 2024 at 8:48 am #15172781

yousefH-7

After enabled any of these plugins(Payment Plugins for Stripe WooCommerce, Sequential Order Numbers for WooCommerce and Variation Swatches for WooCommerce) error start showing again.

January 11, 2024 at 11:22 am #15173678

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Well, none of these plugins are on our compatibility list: https://wpml.org/plugin/.

I recommend you to contact the plugin authors and request a compatibility update. WPML offers very useful information for developers aiming to make their themes/plugins compatible. Please see https://wpml.org/documentation/support/ and https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/ for details.

Theme and plugin authors are welcome to join WPML’s Go Global program, which helps them make their code multilingual ready. Together with WPML’s compatibility team, they can test and confirm that their theme or plugin works with WPML. See https://wpml.org/documentation/support/go-global-program/ for details and you can refer your theme/plugin provider to this as well.