[Resolved] When I add a product to the cart, I get page cannot be found
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing a 404 error when adding a product to the cart on your multilingual site, and this only occurs in a secondary language like Spanish, it might be related to a known issue with the Jetpack plugin. Solution: We recommend trying the workaround mentioned in our Errata page for a similar issue with Jetpack. You can find the instructions here:
If you're not comfortable making changes to PHP files or implementing the workaround yourself, we can assist you. Please ensure you back up your site files and database before proceeding. If the solution provided in the Errata does not resolve your issue, or if you need further assistance, please open a new support ticket with us.
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.
When I am on a product page and I add a product to the cart, I receive the message that the page can’t be found. This only happens when the language is Spanish. It doesn’t happen when the language is English.
I've checked and found that the 404 error is happening right after clicking the "Add to Cart" button. The product is not also getting added to the cart.
We are aware of a similar issue with Jetpack and since the Jetpack plugin is enabled on your site, could you please try the workaround mentioned in the Errata provided below and see if it resolves the issue?
Hi. Thank you for your reply. I do not have any experience with adding code to PHP files and am nervous about doing so. Is this not something the WPML can adjust in its plugin or perhaps work out with Jetpack?
I can understand the matter. Our dev team is working on it and hopefully, it will be solved in the future version of WPML plugin.
But, if you want, you can share the access to your site so that I can implement the workaround on your site. I have enabled private filed for you so that you can securely share the access. You will find the needed fields 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.
IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Hi There,
Thank you for sharing the access information.
I made the required adjustments in the "String Translation" plugin by following the instructions provided in the Errata I shared previously. This action has successfully resolved the issue.
Please check now and let me know if you need further assistance in this matter. I will be happy to help.