Skip Navigation

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

Problem:
If you're adding multiple languages to your site using WPML and choosing 'Different languages in directories' from the Language URL format section, you might encounter issues with the domain showing wrong or not being visible, along with problems in adding/editing pages due to multiple prefixes and suffixes for the language directory.
Solution:
We recommend you follow these steps:
1. Open your database manager, such as PhpMyAdmin.
2. Navigate to the wp-options table.
3. Check the "home" key.
4. If it's empty, add your site's URL.
5. Save the changes.
After completing these steps, the issue should be resolved.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. We highly recommend opening a new support ticket if problems persist. You can do so at 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 2 replies, has 1 voice.

Last updated by Osama Mersal 1 week, 3 days ago.

Assisted by: Osama Mersal.

Author Posts
January 16, 2025 at 2:28 pm #16602445

ronJ-6

Background of the issue:
I am adding multiple languages to my site using WPML. When I choose 'Different languages in directories' from the Language URL format section, I encounter issues with the domain. However, when I choose 'Language name added as a parameter', the page runs fine with translations.

Symptoms:
My site shows the wrong domain and I am unable to add/edit pages. It shows multiple prefixes and suffixes for the language directory. I cannot see the domain for the first option, but it is visible for the second option.

Questions:
How can I fix the issue with the wrong domain and multiple prefixes/suffixes when using 'Different languages in directories'?
Why is the domain not visible for the 'Different languages in directories' option but visible for 'Language name added as a parameter'?

January 17, 2025 at 11:01 am #16605591

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

Could you please provide some screenshots or a screen recording? The issue with the domain isn’t entirely clear. Additionally, if you're using different directories for languages, kindly confirm that "mod_rewrite" is activated on your server.

Looking forward to your response!

Best regards,
Marcel

January 18, 2025 at 5:49 am #16608686

ronJ-6

hidden link

This is the website I am working on, currently I have third option activated (Screenshot: hidden link), my site is running fine, pages in other language are running fine. Like, when I go to French version of my site from the footer language selector, it shows "hidden link" this link and page is running fine along with the translations, and while editing the page backend, it shows correct URL (Screenshot: hidden link)

But when I choose first option (Screenshot: hidden link), you can see there is no domain visible before the / - English and for /fr/ - French, and when reloading the page backend in French or any language, it shows multiple suffix and prefix in the domain permalink (Screenshot: hidden link) and now my translation pages stops loading/working properly.

I am facing issue with this option, "Language URL format > Different languages in directory". I have been using wpml from a very long time and this is something new which I have faced. I hope you get my issue. Kindly revert me as soon as possible because this is my live site and need to fix it.

Thanks

January 19, 2025 at 2:51 pm #16610629

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm Osama from WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

January 20, 2025 at 1:02 pm #16613561

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I consulted our 2nd tier support team regarding this issue, and I'll update you as soon as they reply.

Best regards,
Osama

January 21, 2025 at 8:48 am #16616822

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please check if the issue is fixed. (hidden link)

Best regards,
Osama

January 22, 2025 at 4:16 am #16620968

ronJ-6

Hi,

Thanks for your help, everything seems to work fine now, can you please elaborate, what's the main issue and how has it been fixed, so that If in future it arise with any other site, then we can take all the steps to resolve by our self instead of bothering you guys.

Thanks

January 22, 2025 at 8:54 am #16621554

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please check the following steps:

1- Open your database manager, for example, PhpMyAdmin
2- Open the wp-options table
3- Check the "home" key
4- If it's empty, add your site's URL
5- Save it

After that, the issue should be fixed.

Please don't hesitate to open a new ticket if you face any other issues. We are always happy to help you.

Have a great day!

Best regards,
Osama