Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

This topic contains 3 replies, has 3 voices.

Last updated by Bobby 10 months, 4 weeks ago.

Assisted by: Bobby.

Author Posts
July 15, 2024 at 1:11 pm #15954586

florencioH

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?

July 15, 2024 at 8:26 pm #15956743

Mateus Getulio
Supporter

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:

- Sync products variations
- Fix translated variations relationships
- Update Products Count
- Sync product categories
- Sync product stock quantity and status

And click on the 'Start' button.

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.

Thank you, please let us know
Mateus

July 17, 2024 at 8:51 am #15964839

florencioH

Im getting this error when i activate the Woocommerce Multilingual plugin:

SyntaxError: Unexpected token '<', "
"... is not valid JSON

July 17, 2024 at 6:03 pm #15967832

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

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.