Background of the issue:
I am developing a site and encountered an issue when a customer fills in their details before payment. The error log indicates that the WooCommerce Multilingual & Multicurrency plugin is causing the issue. I deactivated the plugin, and everything worked correctly. However, this plugin is necessary to unify the stock on the website for both Spanish and English.
Symptoms:
SyntaxError: Unexpected token '<', " "... is not valid JSON.
Questions:
How can I resolve the SyntaxError caused by the WooCommerce Multilingual & Multicurrency plugin?
Is there a way to unify the stock on the website for both Spanish and English without causing this error?
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hello Florencio,
Thanks for contacting us.
Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.
Could you please follow the below steps and let me know how it goes:
1. Please take a backup of your site first for safety reasons.
2. Please Go to Woocommerce >> Woocommerce Multilingual >> Settings tab >> Troubleshooting link (bottom right) > Select the below options:
3. If still an issue persists, please try the below steps:
3.1. Please go to WPML >> Support >> Troubleshooting page and press the below buttons:
- Clear the cache in WPML
- [Products] Synchronize posts taxonomies
- Synchronize local job ids with ATE jobs
- Synchronize translators and translation managers with ATE
- Assign translation status to duplicated content
- Set language information
Please try to repeat the payment after that and check if the error is fixed.
If the above steps don’t help, then please try to re-save one of the problematic products in default and secondary languages and see if this resolves your issue.