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?