Resolved
Reported for: WPML Multilingual CMS 3.5.3.1
Resolved in: WPML Multilingual CMS 3.6.0
Overview of the issue
If you have a static home page, set on the Settings -> Reading page, you might notice that the wrong template is used for it.
This happens when the home page is updated in the other (non-default) language.
The problem is caused by certain meta field not being read correctly, and its value is set to blank instead.
Workaround
This issue will be fixed in the next release. Until then, you can use the following workaround.
Go to wp-content/plugins/sitepress-multiligual-cms/inc/post-translation folder and edit the wpml-post-synchronization.class.php file.
Find the following line:
$page_template = $this->sync_page_template && get_post_type( $post_id ) === 'page' ? get_page_template_slug( $post_id ) : null;
Replace the above (existing) code with the following:
$page_template = $this->sync_page_template && get_post_type( $post_id ) === 'page' ? get_post_meta( $post_id, '_wp_page_template', true ) : null;