Problem:We added a custom Chinese language but hreflang is wrong
Solution:1. Go to WPML->Languages -> Add a new language and add the default Chinese language again
2. Click on "Edit languages"
3. Change the hreflang from the default language to something else and update
4. Now you should be able to assign the correct one to the new custom CN language
Problem:
Half of the products has featured images, the other half has not.
Solution:
1. Make sure you have marked both options for media attachments on your original product: 'Duplicate uploaded media to translations' and 'Duplicate featured images'. Then try saving and updating your original and translated product.
2. You can use Media translation plugin and in WPML>Settings>Media translations and try to sync images.
- You need to make sure you click the 'Start' button
Problem: We are getting this error:
Error log is showing the following:
PHP Fatal error: Uncaught InvalidArgumentException: element_id and type do not match for element_id:7283 the database contains post_page while this function was called with post_attachment in xxxx/content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:32\nStack trace:\n#0 xxxx/content/plugins/sitepress-multilingual-cms/sitepress.class.php(1497): WPML_Set_Language->set('7283', 'post_attachment', false, 'en', NULL, true)\n#1 xxxx/content/plugins/sitepress-multilingual-cms/classes/media/duplication/class-wpml-media-attachments-duplication.php(1016): SitePress->set_element_language_details('7283', 'post_attachment', false, 'en')\n#2 xxxx/wordpress/wp-includes/class-wp-hook.php(286): WPML_Media_Attachments_Duplication->batch_set_initial_language('')\n#3 xxxx/wordpress/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)\n#4 xxxx/wordpress/ in xxxx/content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php on line 32, referer
Solution: In this case the fastest way to solve the issue is by following this steps:
- Create a full backup of the site.
- Connect to the database -> in the wp_posts table delete the row with element ID = 7283
- Double check if the issue persists.
- Repeat this process if the error message appears again with another ID.
Note: Please don't forget to create a full backup of the site because if something goes wrong you will have to restore it.
Problem: If you add store credits with Smart Coupons, they are not detracted from the checkout
Solution: we (WPML team) found that to make smart coupons working 100% with our plugin would require big changes in WooCommerce Multilingual plugin (it is our plugin) and for the time being we cannot dedicate time to do this or even triage it to know if this is doable without breaking compatibility with other plugins. Therefore we (again, WPML team, not Smart Coupons team) decided to not continue. Therefore, we can't offer a solution for the issue.
Problem: Woocommerce Google Product Feed plugin is compatible with WPML but only seems to offers one language (I have 3 languages). I would like one feed per language: EN, FR and DE. How do I do this?
Problem:
It is currently not possible to translate the Ocean WP Footer Template created inside of the Theme Library.
Solution:
Our compatibility team provided a fix that will need to be implied by the theme author into their theme:
Set the custom field ocean_custom_footer_template to copy-once and update the page and its translation.
Go to plugins/ocean-extra/includes/metabox/metabox.php
Find
This code was inserted into the WPML >> Settings >> Custom XML Configuration section. Afterward, the string became available for translation, and we added a translation via WPML >> String Translation.
Solution:If you go to wp-content/plugins/woocommerce-bookings/templates/single-product/add-to-cart/booking.php Line 39, you will see the string which is currently not wrapped in a getText call resulting in it to not be picked up by String Translation.
I have now wrapped the string within the WC Bookings plugin with a GetText call() which allows you to translated it through String Translation. You can find it under the domain "wc-bookings"
Solution: Please make sure you delete all the translated pages, posts, media and taxonomies before you delete WPML and then go to WPML > Support > Troubleshooting > Reset WPML.
If your site is set to 'A different domain per language' Language URL format, then this code example will not sync the cart's content when you switch the language. But only by adding a class (wpml-ls-item) the element that holds the language's link, the issue is solved. This is the corrected code example.
Problem:
Syntax error, unexpected "&" and/or unxexpected "if" when using WPML with Elementor PRO.
Solution:
A workaround was provided and the issue solved in upcoming WPML update:
Set post/page/CPT (whichever has the problem) to translatable only
OR
Call the menu in template file or widget do not use page builder
OR
Add this code to functinos.php
Problem: My Footer in Astra / Elementor has strings from Mailerlite newsletter signup form. I managed to have them scanned by adding the plugin to the XML config section.
Now though, after the original English text was changed, it won't update in the string translation panel. The old English text is there, and the translation is not shown.
Solution: I searched in our forum about similar tickets and it seems Mailster plugin is not compatible with WPML, however I found a workaround for this issue: I created a test form that will act as the French form (for testing purposes only) and as I don't know Mailster I just leaved with the text by default. Then I edited the footer and manually switched languages using the admin menu at the top, which allowed me to edit the French version of the Footer. Once in the French version I manually added the shortcode for the new form and saved the changes.
This page includes support tickets that are resolved and documented. Looking for tickets that are “in progress”? Visit the complete support tickets archive