Skip Navigation


Reported for: WPML Multilingual CMS 4.5.0

Topic Tags: Install and update

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


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:
    		$query['wpml_tm_version']   = WPML_TM_VERSION;
  4. With:
    		if (!defined("WPML_TM_VERSION")) {
    			define( 'WPML_TM_VERSION', '2.11.0' );
    		$query['wpml_tm_version']   = WPML_TM_VERSION;

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>