Resolved
Reported for: WPML Multilingual CMS 3.1.8.2
Overview of the issue
Problem exists only on websites where siteurl
option includes trailing slash and WPML is configured with different domain per language.
This trailing slash is not visible on Settings->General page. You have to check this directly into the database in wp_options
table.
Workaround
Fix to this problem will be released in the next version of WPML.
Meanwhile, to fix the problem, please follow below steps:
- Make sure that you have latest website backup.
- Make sure that you have latest version of WPML (3.1.8.2) installed.
- Find
sitepress.class.php
file and find line 6463 - Find the following line:
$this->settings[ 'language_domains' ][ $default_language ] = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'");
- And replace it with:
$this->settings[ 'language_domains' ][ $default_language ] = $absolute_home_url;