Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing incorrect URL generation for Custom Post Types (CPT) pages after updating WordPress and plugins, where the domain name is duplicated in the URL, we have identified this issue and have a solution for you.
Solution:
1. We replicated the issue with WPML version 4.6.8 and the 'Language URL format' set to 'Use directory for default language'.
2. We escalated the problem to our second-tier supporters and developers.
3. We published an errata about this issue, which you can find here:

4. We provided a workaround in the errata page. However, please ensure you make a full site backup (files and database) before attempting the workaround.
5. The issue has been resolved in WPML version 4.6.9. To fix the problem, please update WPML and its add-ons to the latest version. You can check the changelog and download the latest version here:

Again, remember to back up your site before updating.

If this solution doesn't look relevant to your issue, please open a new support ticket in our support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Itamar 1 year, 5 months ago.

Assisted by: Itamar.

Author Posts
December 13, 2023 at 3:32 pm

danielaK-6

Today I updated WP and all plugins (it's a test installation). Since then, the link URLs on all Custom Post Types pages (CPT = "produkte") are generated wrong
Correct link URL should be:
hidden link
Wrong link URL is generated:
hidden link
You can see that the domainname "fairsquared.com/de/" are generated twice.
All other page and post URLs work correctly, only CPT-pages are having this problem.

I already have:
- .htaccess updated
- The WPML settings and then permalinks were saved and updated again.
- A redirection plugin was disabled
- The cache plugin was deleted

But I can't reproduce the error.

thank you for your help
LG Daniela

December 13, 2023 at 4:56 pm
December 13, 2023 at 7:01 pm #15058221

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I could replicate this issue on a clean WordPress installation with the latest version of WPML 4.6.8 and the 'Language URL format' of 'Use directory for default language'. I've escalated this issue to our second-tier supporters. We will keep you updated here on any news regarding this issue.

Regards,
Itamar.

December 17, 2023 at 4:35 pm #15079327

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

This issue has been escalated to our developers. We have published an errata about this issue. And we have a workaround for it. Please check it here.

https://wpml.org/errata/wpml-double-url-slug-with-sub-folder-installation-and-use-directory-for-default-language-option/

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

I'll update you here once the version with the fix is released.

Regards,
Itamar.

January 14, 2024 at 7:41 am #15181898

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

This issue should be resolved with WPML's latest version - 4.6.9.
https://wpml.org/download/wpml-multilingual-cms/?section=changelog
To get this issue solved, please update our plugins to their latest version.
https://wpml.org/faq/install-wpml/#register

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

Regards,
Itamar.