Background of the issue:
I am trying to fix a 404 error that occurs when a user adds a product to the cart from the Arabic site, then switches to English and clicks 'Keep cart' in the WPML popup. The issue can be seen on this page: hidden link. I expected that when clicking 'Keep Arabic' from the popup after switching languages, it should return to the same Arabic product or category page without showing a 404 error.
Symptoms:
I got a 404 error page after clicking 'Keep Arabic' in the popup. The redirection goes to a valid Arabic URL like hidden link, but it still shows 404, even though the Arabic product or category exists and is published.
Questions:
Why does the 404 error occur when switching languages and clicking 'Keep Arabic'?
How can I ensure the redirection works correctly without showing a 404 error?
I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.
Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.
Your upcoming reply will be treated with confidentiality and will only be visible to you and me.
✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.
I've deactivated some plugins to keep the site in a minimal state for testing. The language switcher in the footer seems to work correctly, even when there are items in the cart: hidden link
Could you let me know which third-party plugin is responsible for the popup cart confirmation feature? I’d like to investigate further, as there may be a compatibility issue.
Thanks for your reply. Could you recheck now? I've activated the WooCommerce Multilingual & Multicurrency and I'm not getting the page 404 yet when switching language with a product in cart.
Hi Yes, I checked from product page if i added an item from arabic product page and select language switcher and keep arabic button click whoing proper arabic product page without any error. Thanks.
But our all catagory page urls and product page urls are changed now. Bcz according to their reqirement earlier we removed or changed the slug like category and product to without these tags in the url.
hidden link
now it shows /product/
and in category shows/product-category/ So
Permalink Manager for WooCommerce - this was the plugin we activated it for removing the above from URL and make it all URL without this for SEO purpose.
So may this conflict with wpml cart confirmation popup 404. So can you please try by activate this or which cause actually 404. And Please give a solution.
Thanks for your reply. I've checked, and it looks like to me this Permalink Manager for WooCommerce plugin is not tested or compatible with WPML from our side. But the author mentioned that this plugin is compatible with WPML https://wordpress.org/plugins/permalink-manager-for-woocommerce/ . You need to check with the plugin author about this. Let me know how it goes.
Hi They will not replied yet. So Can I remove that staging website sent it with you. Bcz we need to remove it from that server. We already findout the issue coming from conflict with that plugin. So for further checking if needed we will provide new staging.