- Status
- Resolved
- Reported for
- WPML Multilingual CMS 4.6.9
- Resolved in
- WPML 4.6.10
- Topic tags
- Bug
Overview of the issue
In a multisite WordPress network or a single install with a sub-folder installation, activating the Use directory for default language option leads to incorrect redirection for taxonomy archives, resulting in a 404 error.
Workaround
Please, make sure of having a full backup of your site before proceeding.
You can try to install the latest beta release for WPML (v 4.6.10)
Or try the following:
- Open …/wp-content/plugins/sitepress-multilingual-cms/classes/canonicals/class-wpml-canonicals-hooks.php file.
- Look for line 104.
- Change:
$currentUri = substr( $currentUri, strlen( $path ) );
- For:
$currentUri = '/' . ltrim(substr( $currentUri, strlen( $path ) ), '/');