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.

This topic contains 11 replies, has 2 voices.

Last updated by Robert 4 months, 2 weeks ago.

Assigned support staff: Raja Mohammed.

Author Posts
May 21, 2019 at 4:31 am #3851817

Robert

I had a try myself on installing wpml on my wpmu site (on top level domains like domain.com and domain.cn) but had to roll back a backup because it was directing to wrong language and was getting 404 pages even though I saved permalinks.

Documentation I found and I've gone through:
https://wpml.org/documentation/related-projects/woocommerce-multilingual/
https://wpml.org/documentation/support/multisite-support/
https://wpml.org/documentation/support/multisite-support/languages-in-domains-for-wordpress-multisite-mode/
https://wpml.org/documentation/support/multisite-support/multilingual-site-network-with-domain-mapping/#wpml-mu-domain-mapping-plugin

My questions:
1) Do I go through the WPML configuration wizard on every website in the multisite? Or only on the main site?
2) Do I go through the woocommerce multilanguage configuration wizard on every website in the multisite? Or only on the main site?
3) Once I have an answer to these questions I'll have another go at it!

Thank you!

Regards
Rob

May 21, 2019 at 12:23 pm #3855043

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi there,

Before answering your question I want to clarify a few things.

A) WPML can be used with Multisite it can be Network activated or can be installed separately for each site.

B) If you are Domain per language in the multisite installation it does not require multiple sites you can enable the option in any one of the sites keeping it as a primary domain.

With that said answering your question

1) Each site in Multisite is treated as Independent Unrelated site and hence it queries the WPML to be set up on each site.

2) Same as point 1

If you are using Domain per language in multisite the plugin will be installed and configured only in the primary domain since the secondary domains are an alias of the primary domain.

I hope this clarifies you better. let me know if you need further assistance.

kind regards
Raja

May 22, 2019 at 12:45 am #3859391

Robert

Hi Raja,

Thank you for your message.
1) I have selected wpml>languages>Language URL format>A different domain per language
2) I have inserted the .nl and .cn there
3) I'm using 3 domains, 3 languages. the .com is the main language (english).
4) Do I run the configuration wizard for each language with this setup? I can't really tell based on your reply above 🙂 I have added screenshots to show what it looks like right now

on a side note: I did set up wpml on the .nl domain as well before and that didn't resolve the page not found issue which made me enroll the backup
I have the WPML MU Domain Mapping plugin installed. But doesn't seem to do much.

Thank you!

Regards
Rob

May 22, 2019 at 5:46 am #3861015

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

HI Rob,

Setting up domain per language in Mulitsite works the same way as it is done for a single installation, The secondary domain mypigoenaution.nl should be an alias of mypigoenaution.com and it should not have a separate WordPress installation.

Please refer on how to set up domains per language => http://wpml.org/faq/server-setting-for-languages-in-different-domains/

Once the settings are perfect the .nl domain will not have a separate dashboard which means WPML is setup only once in the primary .com domain. You won't be able to set up WPML or another plugin for the additional domains.

Your issue seems like you have created a multisite network with domain mapping .nl and .com are set up as unrelated multisite. and when you try the domains per language it's giving the error.

Please let me know if you need further assistance.

kind regards
Raja

May 22, 2019 at 9:51 am #3863951

Robert

Hi Raja,

Thank you for the quick response.

- There should be only one single wordpress installation. I have followed this tutorial: hidden link

- Then I've installed WordPress MU Domain Mapping plugin and followed this tutorial: hidden link which is identical to this one: https://wpml.org/documentation/support/multisite-support/multilingual-site-network-with-domain-mapping/

- I think a (domain) multisite always has a dashboard for each language, unless I'm wrong? Even though they use the same plugin/theme files, which they do in this case

Other resources I found and match my setup:
https://wpml.org/2011/12/how-to-tutorial-for-domain-mapping-and-wpml/

I dont receive any error when saving 'Language URL format, A different domain per language'

Thank you!

Regards
Rob

May 22, 2019 at 2:37 pm #3866747

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thanks for the clarification, As I have doubted you have added mypigeonacution.nl and mypigeonauction.cn as network sites. This is a bit tricky to understand, Since you have added these two sites as network site they are treated as a separate unrelated and independent site.

Please remove the mypigeonacution.nl and mypigeonauction.cn from the network sites and follow this tutorial http://wpml.org/faq/server-setting-for-languages-in-different-domains/ to make domain per language work in mypigeonacution.com site.

Please note Domain per language is a single site with multi-domain alias, it doesn't have a separate dashboard for each language.

The setup you have now is multiple sites mapped to multiple domains.

I hope this is clear now. let me know if you need further assistance

Kind regards
Raja

May 22, 2019 at 11:39 pm #3869721

Robert

Hi Raja,

Thank you for your patience.

1) I have disabled .nl and .cn site so only the .com dashboard remains. However the language pages still show '404 page not found'
2) I have tried it while enabling and disabling 'WPML MU Domain Mapping' plugin
3) I have followed the steps of https://wpml.org/2016/04/use-wpml-different-domains-per-language/
4) I'm a bit puzzled!

Thank you

Regards
Rob

May 23, 2019 at 8:26 am #3872521

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please share tempory access to your site, let me have a closer look into the issue. I have enabled the private field to securely share the details.

Kind regards
Raja

May 23, 2019 at 9:25 am #3872903

Robert

No problem. Where can I find the private field?

May 23, 2019 at 1:52 pm #3876007

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Sorry, I missed it, I have enabled the private fields again,

Kind regards
Raja

May 24, 2019 at 11:13 am #3884189

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Rob,

Please backup your sites and database.

Completely remove the secondary sites with .nl and .cn site from your multisite setup.

Go to => Network Admin->Sites you will see the site in a red banner. Under the site, you wish to remove click Delete, Please note this will delete the site data associated with that site (this won't affect the WPML translations )

If you use the MU domain mapping plugin it is recommended to delete the entry for the domain you are deleting. Network Admin->Settings->Domains->Delete.

Once you have freed up the domains, make sure the domains is not listed under Sites.

Now try to access the site with mypigeonauction.nl domain this should display the Dutch home page.

Please let me know the results.

kind regards
Raja

May 27, 2019 at 12:03 am #3892541

Robert

That worked like you said it would - great!

Not that it's necessary in this case, but wpml should also work with multiple sites right? For future reference 🙂

Thank you!

Regards
Rob