[Resolved] We are facing 500 internal error after add to cart
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:
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.
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).
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.
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
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.
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.
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.
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.