Resolved

Resolved in: 4.7.1

Symptoms

The error happens if you leave the plugin WPML Translation Management to be updated last, and more specifically after WooCommerce Multilingual
Here is the exact error:

PHP Fatal error:  Uncaught Error: Class 'WPML_Element_Translation_Package' not found in ...\wp-content\plugins\woocommerce-multilingual\classes\class-woocommerce-wpml.php:163
Stack trace:
#0 E:\laragon\www\upd\wp-includes\class-wp-hook.php(286): woocommerce_wpml->init('')
#1 E:\laragon\www\upd\wp-includes\class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 E:\laragon\www\upd\wp-includes\plugin.php(465): WP_Hook->do_action(Array)
#3 E:\laragon\www\upd\wp-settings.php(525): do_action('init')
#4 E:\laragon\www\upd\wp-config.php(93): require_once(...\www\\...')
#5 E:\laragon\www\upd\wp-load.php(37): require_once('...\\www\\...')
#6 E:\laragon\www\upd\wp-admin\admin.php(34): require_once('...\\www\\...')
#7 E:\laragon\www\upd\wp-admin\index.php(10): require_once('...\\www\\...')
#8 {main}
  thrown in ...\wp-content\plugins\woocommerce-multilingual\classes\class-woocommerce-wpml.php on line 163

Workaround

Our developers are working on the issue and it will be fixed soon.
However for the time being, it is recommended that you first update WPML Translation Management and then update WooCoommerce Multilingual plugin

3 Responses to “Updating to latest WooCommerce Multilingual can cause issues if Translation Management is not updated first”

  1. I make the error of updating first WooCoommerce Multilingual plugin and then WPML Translation Management, this caused WooCommerce product page layout break.

    I’m back to the previous version of WooCoommerce Multilingual (Version 4.6.7) product page layouts are back to normal, but now I no longer see the options of WooCoommerce Multilingual although the plugin is installed and active.

    • Returning to previous release of two plugins and update in order
      first WPML Translation Management and after WooCoommerce Multilingual plugin
      have solved issue.

    • Hello!
      I am not familiar with the issue that you are reporting about breaking the layout of the product page.
      I suggest that you should open a ticket in our support forum so that we can check this out.

      I also am not sure if I understand what you mean that you cannot see the option of WooCommerce Multilingual.
      Did you try to deactivate the plugin and re-activate it again?

      Please make sure that you also are using the latest versions of our plugins – of all plugins.
      If you have reverted the WPML version, I would suggest that you should revert also the other plugins as well.

      Of course, all tests as a rule of the thumb, this should be done on a staging site first.