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.

This topic contains 3 replies, has 2 voices.

Last updated by Andreas W. 4 months, 1 week ago.

Assigned support staff: Andreas W..

Author Posts
June 4, 2019 at 7:13 pm #3954807

danielS-41

I am trying to: Add to to cart products in visitors mode and I get JS error when I enable WPML Woocommerce Multilingual

Link to a page where the issue can be seen: hidden link

I expected to see: Products added to cart

Instead, I got: 502 WooCommerce errors in Console

June 4, 2019 at 11:56 pm #3955809

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Thank you for contacting the WPML support forum.

Do you expereicne any issues with the pruchasing process on the translated pages using translated products?

As far I can see the console prints an error related to hidden link", {"credentials":"include","headers":{"accept":"*/*","accept-language":"de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7,es;q=0.6,es-AR;q=0.5,es-CL;q=0.4,es-CO;q=0.3,es-CR;q=0.2,es-HN;q=0.1,es-419;q=0.1,es-MX;q=0.1,es-PE;q=0.1,es-ES;q=0.1,es-US;q=0.1,es-UY;q=0.1,es-VE;q=0.1,de-AT;q=0.1","content-type":"application/x-www-form-urlencoded; charset=UTF-8","x-requested-with":"XMLHttpRequest"},"referrer":"hidden link","referrerPolicy":"no-referrer-when-downgrade","body":"time=1559692282936","method":"POST","mode":"cors"});

Could you please go to WPML -> Languages -> Language filtering for AJAX operations and activate the option for Store a language cookie to support language filtering for AJAX .

Did this have any influence on the error on your debug console? Did you verify if this error occurs if WPML and all its add-ons are deactivated?

Kind regards
Andreas

June 5, 2019 at 12:57 pm #3960693

danielS-41

Hello Andreas,

1) I've did that (WPML \ Langs \ Lang filter) ..it was already activated. No change if I switch it on or off. Still get the console error
2) The only way I will not get the error is if I disable Woocommerce Multilanguage plugin\
***REMOVED CREDENTIALS***

Let me know if you need anything else

June 5, 2019 at 3:17 pm #3962245

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Thank you for your message.

The provided credentials are not granting access to your wp-admin. I would kindly like to aks you yo recreate the issue on the following test site, which is a new isntallation of WordPress with WPML and WooCommerce inclusive demo content.

One Click Login: hidden link

Let me know if the same error occurs on this site. In case it does not proceed as followed:

Could you please try to run the site in minimal setup to see if the issue persists?

Please disable any additional plugin that is not related to WPML and its add-ons. If the issue disappears please start reactivating any plugins, or activate them in small groups. This way please verify at which points the issue appears again to indicate the plugin that is causing the issue.

Also please change to a default theme like TwentySeventeen to see if the issue might be theme related.

Further, you could enable the wp-debug feature to see if there are any current PHP errors given.

Add the following to your wp-config.php file:

define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true);
define( 'WP_DEBUG_DISPLAY', false);

The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.

If you open wp-config.php and that define statement is not there, you can add it right before this line:

/* That's all, stop editing! Happy blogging. */

You will be able to see errors on front end, backend and further find a complete report inside of your wp-content folder. Look for a debug.log file and provide me the results.

More information about how to activate this feature you can find here:
https://wpml.org/documentation/support/debugging-wpml/

Kind regards
Andreas

The topic ‘[Closed] WooCommerce Multilangual Fragments Error’ is closed to new replies.