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 19 replies, has 2 voices.

Last updated by Jamal 7 months, 3 weeks ago.

Assigned support staff: Jamal.

Author Posts
December 12, 2018 at 3:21 am

Eric

Hi,

i am having issue with my site that looks like it's related to the wocommerce wpml plugin.

i add a product(or multiple) in English and all works like a charm. when the visitor switches to the french version of the site the products in the mini cart say's there are still there. once you click on the view cart the following message appears.

"PRODUCT HAS BEEN REMOVED FROM YOUR CART because is was modified"

message in french

(Le produit Drill bit 1/16 - 1 Unit a été retiré de votre panier, car il a été modifié. Vous pouvez le rajouter dans votre panier ici.)

than the product is removed.

here is a screenshot of the issue joint to this ticket.

we have all the lates version of wpml and woocommerce etc.

this is a on going issue and looks like i am not the only one but no one as a answer for this.

could you please help very very urgent loosing sales.

December 12, 2018 at 1:30 pm #2993590

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

Thank you for contacting WPML Support. I’ll be glad to help you with this.
I just visited your website and tried to reproduce the error in an incognito window, but i could not.
1. I went to english version, added some products to the cart.
2. I switched to French, products still available in the cart.
3. I clicked to reveal the side cart then clicked on “Panier” to go to cart.
4. I can view all the products on the cart page.
5. I go to checkout, i still see the products on the checkout page.

I logged in to your dashboard, and i found that you are configuring WooCommerce Multilingual to sync cart across languages in WooCommerce->WooCommerce Multilingual->Settings tab->Cart section.

Maybe you just updated this option. Or i did not understood your question.
Would please tell me steps to follow to reproduce this error.

Jamal
WPML Support.

December 12, 2018 at 3:02 pm #2993982

Eric

It's happen with drill bits (Forets) and accessories Beetap (only with variables products). The problem is there when I clic on "Voir pannier" or on "Paiement" in the french version.

December 12, 2018 at 4:22 pm #2994295

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

It is actually happening with variable products only, i could now reproduce this error, thank you.

As a workaround, you can set a prompt alert to clear the cart when switching between the languages. Please check the following link for more details. https://wpml.org/documentation/related-projects/woocommerce-multilingual/clearing-cart-contents-when-language-or-currency-change/#cart-options

Go to WooCommerce -> WooCommerce Multilingual -> Settings. Scroll down to the bottom and click Troubleshooting. On the troubleshooting page, check "Sync products variations". And click on Start
After you run that, edit the original product page (you don't have to make any changes, just click update) and then do the same for the translated product. Verify if this solve the issue for that product.

If the problem persist, can you check if this issue appears when:
- Only WPML plugins are activated. It will tell us if there is an interaction issue with other plugin.
- Theme is set to a WordPress default like Twenty Fourteen. Its will tell us if there is an interaction issue with your theme.
- If the problem disappears, start activating one at the time to track where the incompatibility is produced.

Let me know what you get.

Jamal
WPML Support.

December 13, 2018 at 1:04 am #2995257

Eric

ok this is still not working....

i a have a version that works in a clone of the site....
the link is here (hidden link).

all is working on this version.

but the issues is when moving the database and all files to the root directory the error happens again...

the info to connect to this version is the same worpdress login has the live version.
the ftps etc is the same...

i was woundering if you could login and see what is the difference between the two version.
and maybe be capable to see where it goes wrong.

so the info for this is

url : hidden link
admin : hidden link
same login info has the previous comment.

is this something that you can look at and see ?

Thanks

December 13, 2018 at 9:16 am #2996856

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

I just connected to your test server. Would you please update WPML plugins and retry to reproduce the error.
You can register this site in your wpml.org account to get automatic updates.
Let me know when it is done, and i'll check it again.

Jamal
WPML Support.

December 19, 2018 at 7:45 pm #3018024

Eric

I update WPML plugins and add the registration key. Everything still work well in the hidden link. If I copy it live at hidden link still have the problem with variables products in French section. When I clic on «Panier» still have the message :

Le produit Bee Tap - regular - 1 Unit a été retiré de votre panier, car il a été modifié. Vous pouvez le rajouter dans votre panier ici.
Commande n’est pas disponible lorsque votre panier est vide.

WHY?

December 20, 2018 at 9:02 am
December 20, 2018 at 9:02 am #3019527

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

Thank you for your feedback, to troubleshoot this issue without affecting your site I created a test server for you in Cloudways (https://wpml.org/hosting-partner/cloudways/).
If it is OK with you, we can migrate your content there to further debugging without any risk on your end.
To do the migration please follow these simple steps:
-Install this plugin in your site: Cloudways WordPress Migrator (https://wordpress.org/plugins/bv-cloudways-automated-migration/)
-After you activate it you will be redirected to the migration form
-Fill it with this information privided in my previous private reply.
-Agree with the terms of service and click on "Migrate"
More information:
hidden link
You will get an email when the migration starts, and one when the migration ends.
Let me know when the migration is ready and I will check the issue in the test site immediately.
The copy of your site will be online, but search engines won't index it (the copy) so you don't have to worry about duplicate content.
The information you share with us will be confidential. Once the problem is resolved the details you shared with us will be deleted from our records.
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Jamal
WPML Support

January 2, 2019 at 1:32 pm #3049321

Eric

I copy my site to cloudwaysapp. The problem doesn't happen in the french version with variable product.

January 2, 2019 at 4:05 pm #3049802

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello Eric,

Thank you for your feedback. As we were not able to reproduce this in a clean install, either on your test server or on ours, this is probably caused by the data already stored in the live server.

I have noticed on the WooCommerce->WooCommerce Multilingual->Status tab, that there are some WooCommerce custom fields which have been misconfigured, see that attached image.
I checked cloudwaysapp and i found the same warning.
I fixed this warning by copying the content of wpml-config.xml to WPML->Settings->Custom XML Configuration. See bellow the code copied.

<wpml-config>
	<custom-fields>
		<custom-field action="copy">_backorders</custom-field>
		<custom-field action="translate">_crosssell_ids</custom-field>
		<custom-field action="ignore">_default_attributes</custom-field>
		<custom-field action="copy">_download_limit</custom-field>
		<custom-field action="copy">_download_expiry</custom-field>
		<custom-field action="copy">_download_type</custom-field>
		<custom-field action="copy">_downloadable</custom-field>
		<custom-field action="translate">_file_paths</custom-field>
		<custom-field action="translate">_downloadable_files</custom-field>
		<custom-field action="copy">_featured</custom-field>
		<custom-field action="copy">_manage_stock</custom-field>
		<custom-field action="copy">_sku</custom-field>
		<custom-field action="copy">_stock</custom-field>
		<custom-field action="copy">_stock_status</custom-field>
		<custom-field action="copy">_sold_individually</custom-field>
		<custom-field action="copy">_subscription_length</custom-field>
		<custom-field action="copy">_subscription_period</custom-field>
		<custom-field action="copy">_subscription_period_interval</custom-field>
		<custom-field action="copy">_subscription_price</custom-field>
		<custom-field action="copy">_subscription_sign_up_fee</custom-field>
		<custom-field action="copy">_subscription_trial_length</custom-field>
		<custom-field action="copy">_subscription_trial_period</custom-field>
		<custom-field action="copy">_tax_class</custom-field>
		<custom-field action="copy">_tax_status</custom-field>
		<custom-field action="translate">_upsell_ids</custom-field>
		<custom-field action="copy">_virtual</custom-field>
		<custom-field action="copy">_visibility</custom-field>
		<custom-field action="copy">_weight</custom-field>
		<custom-field action="copy">_width</custom-field>
		<custom-field action="copy">_height</custom-field>
		<custom-field action="copy">_length</custom-field>
		<custom-field action="copy">_woocommerce_exclude_image</custom-field>
		<custom-field action="copy">total_sales</custom-field>
		<custom-field action="translate">_product_url</custom-field>
		<custom-field action="translate">_button_text</custom-field>
		<custom-field action="translate">_purchase_note</custom-field>
		<custom-field action="ignore">_wcml_custom_prices_status</custom-field>
		<custom-field action="ignore">_min_price_variation_id</custom-field>
		<custom-field action="ignore">_min_regular_price_variation_id</custom-field>
		<custom-field action="ignore">_min_sale_price_variation_id</custom-field>
		<custom-field action="ignore">_max_price_variation_id</custom-field>
		<custom-field action="ignore">_max_regular_price_variation_id</custom-field>
		<custom-field action="ignore">_max_sale_price_variation_id</custom-field>
		<custom-field action="ignore">attr_label_translations</custom-field>
		<custom-field action="copy">_per_product_pricing_active</custom-field>
		<custom-field action="copy">_pricing_rules</custom-field>
		<custom-field action="copy">_regular_price</custom-field>
		<custom-field action="copy">_sale_price</custom-field>
		<custom-field action="copy">_price</custom-field>
		<custom-field action="copy">_min_variation_regular_price</custom-field>
		<custom-field action="copy">_min_variation_sale_price</custom-field>
		<custom-field action="copy">_min_variation_price</custom-field>
		<custom-field action="copy">_max_variation_regular_price</custom-field>
		<custom-field action="copy">_max_variation_sale_price</custom-field>
		<custom-field action="copy">_max_variation_price</custom-field>
		<custom-field action="copy">_sale_price_dates_from</custom-field>
		<custom-field action="copy">_sale_price_dates_to</custom-field>
		<custom-field action="copy">_wcml_schedule</custom-field>
		<custom-field action="translate">_variation_description</custom-field>
		<custom-field action="ignore">wcml_sync_hash</custom-field>
		<custom-field action="ignore">wpml_language</custom-field>
		<custom-field action="ignore">_product_attributes</custom-field>
		<custom-field action="translate">_children</custom-field>
		<custom-field action="copy">_subscription_limit</custom-field>
	</custom-fields>
	<custom-types>
		<custom-type translate="1">product</custom-type>
		<custom-type translate="1">product_variation</custom-type>
		<custom-type translate="0">shop_coupon</custom-type>
		<custom-type translate="0">shop_order</custom-type>
	</custom-types>
	<taxonomies>
		<taxonomy translate="1">product_cat</taxonomy>
		<taxonomy translate="1">product_tag</taxonomy>
		<taxonomy translate="0">product_type</taxonomy>
		<taxonomy translate="0">shop_order_status</taxonomy>
		<taxonomy translate="0">product_visibility</taxonomy>
		<taxonomy translate="1">product_shipping_class</taxonomy>
	</taxonomies>
	<admin-texts>
		<key name="woocommerce_shop_page_title" />
		<key name="woocommerce_email_footer_text" />
		<key name="woocommerce_new_order_settings">
			<key name="subject" />
			<key name="heading" />
		</key>
		<key name="woocommerce_customer_completed_order_settings">
			<key name="subject" />
			<key name="heading" />
			<key name="subject_downloadable" />
			<key name="heading_downloadable" />
		</key>
		<key name="woocommerce_customer_invoice_settings">
			<key name="subject" />
			<key name="heading" />
			<key name="subject_paid" />
			<key name="heading_paid" />
		</key>
		<key name="woocommerce_customer_new_account_settings">
			<key name="subject" />
			<key name="heading" />
		</key>
		<key name="woocommerce_customer_note_settings">
			<key name="subject" />
			<key name="heading" />
		</key>
		<key name="woocommerce_customer_reset_password_settings">
			<key name="subject" />
			<key name="heading" />
		</key>
		<key name="woocommerce_customer_processing_order_settings">
			<key name="subject" />
			<key name="heading" />
		</key>
		<key name="woocommerce_cancelled_order_settings">
			<key name="subject" />
			<key name="heading" />
		</key>
		<key name="woocommerce_failed_order_settings">
			<key name="subject" />
			<key name="heading" />
		</key>
		<key name="woocommerce_customer_on_hold_order_settings">
			<key name="subject" />
			<key name="heading" />
		</key>
		<key name="woocommerce_customer_refunded_order_settings">
			<key name="subject_full" />
			<key name="heading_full" />
			<key name="subject_partial" />
			<key name="heading_partial" />
		</key>
		<key name="woocommerce_demo_store_notice"/>
		<key name="woocommerce_price_thousand_sep"/>
		<key name="woocommerce_price_decimal_sep"/>
		<key name="woocommerce_price_display_suffix" />
		<key name="woocommerce_email_from_name"/>
		<key name="woocommerce_email_from_address" />
		<key name="woocommerce_registration_privacy_policy_text" />
		<key name="woocommerce_checkout_privacy_policy_text" />
		<key name="woocommerce_checkout_terms_and_conditions_checkbox_text" />
	</admin-texts>
</wpml-config>

I have also set "product_tag" to "product_tag" in WPML->Support->Troubleshooting page, see attached image.

I have run troubleshooting routines, like variations stock sync but could not resolve this issue. I will escalate this ticket to our 2nd tier support team.

In the meanwhile, can you share a duplicator package prior to today, so it will not have the changes i already made, please use a service like GoogleDrive or DropBox.

Thank you for your patience.

Jamal
WPML Support

January 9, 2019 at 2:41 pm #3072262

Eric

Here the link to the package: hidden link

January 9, 2019 at 2:53 pm #3072308

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

Thank you for your feedback, i will rebuild your website on our server to fix this.
I will give you a feedback as soon as possible.

Best regards,
Jamal
WPML Support

January 10, 2019 at 8:52 am #3074898

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

I have escalated this issue to our 2nd tier support team, i will give an update about their findings as soon as possible.
Thank you for your patience.

Best regards,
Jamal
WPML Support

January 10, 2019 at 3:18 pm #3076673

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

We may have discovered the cause of the issue. Attributes must not have non ascii characters like "é". see attached image of a product translation.

Please also check if there is any caching used by the server, i already checked in plugins, and there are no caching plugins used.

Please check if the issue is resolved when changing the "é" by its html code "&eacute;"
[php]

&eacute;

[php]
Here a list of common non ascii characters html codes hidden link

Looking forward to your reply.

Best regards,
Jamal
WPML Support