Skip Navigation

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

Problem:
The client was experiencing issues with translating pages on a WordPress multisite setup. They were redirected to a different subsite when attempting to work on translations. The client had already deactivated and reactivated the WPML plugins and re-registered the main site with a new key, but the issue persisted. It was later discovered that a hardcoded redirection was causing the problem.

Solution:
We advised the client to review our documentation on Multilingual Support for WordPress Multisites. If the main site of the multisite installation is registered with WPML, all subsites are included in this registration. We provided links to our documentation:

We also mentioned that prepaid credits could be assigned to the main site and shared with all subsites and that Pay-as-you-go can be registered for each subsite separately.

If the solution provided is not relevant due to being outdated or not applicable to your case, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.

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 6 replies, has 3 voices.

Last updated by Itamar 1 year ago.

Assisted by: Itamar.

Author Posts
May 3, 2024 at 8:23 am #15590146

petraB-11

I am using WPML on a multisite with different directories:
hidden link = site 1
hidden link = site 2
hidden link = site 3
hidden link = site 4
hidden link = site 5

The registered site in my WPML-account is
hidden link

The original language is German, I need English translations for all subsites/directories.

I started translating with
hidden link
and have the complete English version up and running at
hidden link

I wanted to translate the other subsites/directories, but I can't work on translations. I started to translate pages on
hidden link
but as soon as I want to work on the queued page (the starting page e.g.), I am redirected to
hidden link = the start page on another subsite.

I have deactivated the WPML-plugin(s) (core plugins) and unregistered
hidden link

After that, I re-activated the plugin and re-registered the site
hidden link
with a new key. But the problem persists: working on rapa/com redirects to rapa/com/automotive

Maybe this is a problem with the missing directory on rapa/com? I tried to register
hidden link
and succeeded. But though I transfered credits to that domain (and it shows in my WPML-account as the second registered domain), I can't work on translations as I am asked to transfer credits first all the time (12504 credits are registered to /industry/).

I have no idea what to do to get translations work on the subsites aside form
hidden link

Your advice is appreciated.
Thanks in advance

May 4, 2024 at 3:45 pm #15593599

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Do I understand correctly, that you are trying to connect the contents between different subsites of your Multi-Site network?

If so, take note that this is not possible. WPML will have an independent install on each subsite and you can not create translations or internal links from one subsite to another one.

Best regards
Andreas

May 5, 2024 at 8:42 am #15594056

petraB-11

Hello,

no, I want to translate separately in each subdomain and would like to register each subdomain wqith a unique code. The thing is I registered
hidden link
first, but started translating with
hidden link
which worked, but now I am having trouble to translate
hidden link

I unregistered and de-activated everything and re-registered, but maybe it's in the database somewhere that when I reactivate and re-register the plugin, everything is like before and
hidden link
seems connected to
hidden link
and I can't work at the latter subdomain.

Thanks for your help.

May 5, 2024 at 4:59 pm #15594522

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

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

Hi,

I'll continue to help you with this issue.

Please review our Multilingual Support for WordPress Multisites here - https://wpml.org/documentation/support/multisite-support/

If hidden link is the main site of your multisite installation, then you only need to register for WPMl. All the subsites will be included in this main site registration. Please read about it here.

https://wpml.org/documentation/support/multisite-support/#registering-wpml-on-multisite

To use automatic translation on multisites, please read this section.

https://wpml.org/documentation/support/multisite-support/#using-automatic-translation-on-multisites

You can assign prepaid credits to the main site, and they will be shared with all the subsites. You can register for Pay-as-you-go on each subsite.

You have not shared the debug information of your site. If WPML and its add-ons are not updated on your site, please update them to their latest versions.

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

Please share your site's Debug information with us. You can read about it here.

http://wpml.org/faq/provide-debug-information-faster-support/

Regards,
Itamar.

May 7, 2024 at 3:35 pm #15602954

petraB-11

Thank you, Itamar.

I took the following steps:
1. I unregistered all subsites once more in my WPML-account as well as on the site(s).
2. I registered the main site hidden link with a new key, without activating WPML on the other sites
3. I translated the start page at hidden link
4. When I'm on the front-end of
hidden link
and put the cursor over the language switch (top right of the site), the link is
hidden link
but as soon as I click on the link, the site jumps to
hidden link
5. When I deactivate WPML on
hidden link
the link on
hidden link
still jumps to /automotive/en/ this time on a 404-page as the plugin is inactive.

I am willing to delete all the previous translations (and lose the credits I used), unregister and de-install the plugin and make a clean new installation, if this is the only way out. But everything seems to work fine except that mysterious "loop" that leads from one subsite to the first subsite I worked on translations (/automotive/). What irritates me is that I have the startpage translated:
hidden link
is the English translation of the German page, the translation was checked and approved by me. The cursor shows the link to that page when over the language switch, but as soon as I püress the switch, I end up at hidden link

The debug info is from the site
hidden link

Thank you for your patience.
Petra

May 8, 2024 at 7:33 am #15604607

petraB-11

Hello Itamar,

STOP! Problem solved… on this website project several people lay hands on different elements without knowing fully how their actions influence the actions or results of others.

There is a hardcoded redirection for
hidden link
leading to
hidden link
simply to provide the first translations for international visitors without keeping in mind that this prevents to correctly display the desired website.

I am sorry about the mess this has caused.
Thank you for your patience and your support
Petra

May 8, 2024 at 4:12 pm #15607169

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

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

Hi, Petra.

Thanks for updating me on this.
I'm glad that the problem is solved now.

I'm closing this ticket.
Don't hesitate to contact us again with any WPML issues or questions.

Take care,
Itamar.