WPML

Overview of the Issue

If you have a Multilingual Blog license and you have recently upgraded to WPML 4.5.0 or you migrate your site to a new URL that uses a Blog license, you may find the following error when you go to WPMLLanguagesEdit Languages:

Fatal error: Uncaught Error: Undefined constant “WPML_TM_VERSION” in …/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/tm/classes/ATE/API/class-wpml-tm-ate-authentication.php:109

Workaround

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

We are working on a fix and will release it soon. In the meantime, follow the steps below as a workaround.

Please, be sure to make a full backup before proceeding.

  1. Open /wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/tm/classes/ATE/API/class-wpml-tm-ate-authentication.php.
  2. Look for line 109.
  3. Replace:
    PHP
    $query['wpml_tm_version']   = WPML_TM_VERSION;
  4. With:
    PHP
    if (!defined("WPML_TM_VERSION")) {
    	define( 'WPML_TM_VERSION', '2.11.0' );
    }
    $query['wpml_tm_version']   = WPML_TM_VERSION;

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.