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.
Were you able to try the steps mentioned by my colleague? If you cannot perform the WCML troubleshooting steps please skip to 3.1.
Also, the PHP Version is below our minimum requirements, please upgrade to PHP 7.4 or higher.
Once done, Let me know your results.
The topic ‘[Closed] Error with stock language’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.