Skip Navigation

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

Last updated by Dražen 1 year, 9 months ago.

Assisted by: Dražen.

Author Posts
March 25, 2023 at 10:46 pm #13329913

ronaldT-5

Tell us what you are trying to do? Test translated pages under development.

Is there any documentation that you are following? No

Is there a similar example that we can see? hidden link is in English, but when clicking on French in the language switcher, I'm transported to the production site instead.

What is the link to your site? hidden link

March 26, 2023 at 11:17 am #13331319

Faisal Ahammad

Hi Ronald,

Good evening. I'd be glad to help you today.

I would like to inquire if you have updated the permalinks from Settings > Permalinks after creating the staging site. If not, kindly update the permalink and recheck the language switcher.

Moreover, when creating the staging site, did you select Moved or Copied from the action required pop-up? This information will help me better understand the issue you are facing.

If you are still unable to resolve the issue, I kindly request your website login access to investigate further.

I look forward to hearing from you soon.

Best regards,
Faisal

move-copy action.png
March 26, 2023 at 11:34 pm #13332859

ronaldT-5

I chose MOVE.

To tell you the truth, I've been through that before. But, back then, I was using WPBakery. Now, I'm using Elementor. Still, WPML doesn't seem to like Staging any better.

See the attachment to see why I cannot change the permalink for the secondary language..

Capture.JPG
March 27, 2023 at 11:06 am #13337771

Faisal Ahammad

Hi Ronald,

To setup different domains or subdomains per language, you must update the DNS records (A record) to point to the hosting server. You can find more detailed instructions on how to do this by visiting this link: https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/how-to-use-wpml-with-different-domains-per-language/.

Once you have updated the record, you can verify that it has been successfully implemented by visiting this website: hidden link.

I hope that helps. Let me know if you have any other questions.

Best regards,
Faisal

March 27, 2023 at 1:16 pm #13338667

ronaldT-5

It feels like déjà vu. Nothing in that article talks about my issue, nothing about staging at all. I was given that article in the past. If I remember correctly, the only workaround might be to set it up as different directories instead of different domains in staging and change it back to different domains after pushing staging to production.

March 28, 2023 at 6:24 am #13345585

Dražen
Supporter

Languages: English (English )

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

Hi Ronald,

I will be taking over this ticket.

The issue is not related to the staging site or similar, it is related to your language per domain settings since it is not saved correctly since it returns not valid message. If you have set up your 2nd domain correctly, then maybe this message is a false showing, which can happen sometimes.

Uncheck VALIDATE ON SAVE checkbox and save your language settings, please then check if the language switcher is working correctly. It should work fine if you have configured correctly your domains.

Kind regards,
Drazen

March 28, 2023 at 7:37 am #13346305

ronaldT-5

Wow, this thread is yielding the exact same as with my first thread, meaning it is going nowhere. The translated page does NOT exist. That's why it does not work. And back in the days, I contacted the hosting company, and they said it was not possible to create such a domain on the fly for staging purposes.

I did as you said, uncheck the validation requirement.

Visit the translated page and see the result for yourself. hidden link

March 28, 2023 at 7:38 am #13346319

ronaldT-5

Why can't I use staging with WPML is the million dollar question.

March 28, 2023 at 8:09 am #13346565

Dražen
Supporter

Languages: English (English )

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

Hello,

I am sorry you feel that way, but I think I made it quite clear. For that settings to be used your need to have 2nd domain setup, and if doesn't exist you can not use it, since it doesn't exist.

>I contacted the hosting company, and they said it was not possible to create such a domain on the fly for staging purposes.

Okay, so simple it is not supported by your hosting and you can use another language URL option, for example, language per directory.

>Why can't I use staging with WPML is the million-dollar question.

I am not sure I understand your question here, your shared case has nothing to do with staging, but the fact that you are trying to use language per domain and not having an actual domain setup.

Let me know if you have any other question and doubts and I will do my best to help.

Kind regards,
Drazen

March 28, 2023 at 11:50 am #13348943

ronaldT-5

I'm sorry, I misspoke. I meant to say that the subdomain Staging does not exist. The 2nd domain ALARME-MAISON.CA does exist and it is working fine in the live production site.

March 28, 2023 at 11:52 am #13348999

ronaldT-5

hidden link works
hidden link does not work (because it does not exist)

March 28, 2023 at 11:55 am #13349007

ronaldT-5

My host is an expensive PREMIUM service. I doubt their host service is inferior to others. To help me out here, since you are truly convinced that WPML works on a staging environment with 2 different domains, why not show me a sample site with that type of setup?

March 28, 2023 at 1:28 pm #13349709

Dražen
Supporter

Languages: English (English )

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

Hello,

-> I meant to say that the subdomain Staging does not exist. The 2nd domain ALARME-MAISON.CA does exist and it is working fine in the live production site.

Okay, but you are trying to use that staging subdomain that doesn't exist, so it can not work. And that 2nd domain you are already using in main website.

-> To help me out here, since you are truly convinced that WPML works on a staging environment with 2 different domains, why not show me a sample site with that type of setup?

As said, there is no difference in the main website and staging, that is just what it is called in web vocabulary. It is still just a normal website using 2 domains or 2 subdomains. WPML will work for any domains as long they are existing and set up correctly.

I assume you are thinking here WPML with subdomains, so sure I can show you it works fine on 2 subdomains:

Video: hidden link

Hope it helps.

Kind regards,
Drazen

March 28, 2023 at 1:38 pm #13349765

ronaldT-5

What's that video about? It doesn't look like a staged environment based on the URL.

My second domain (alarme-maison.ca) is PARKED. Therefore, I can NOT create a staged environment for it, therefore the sub-domain Staging14 can not be created at will.

Hope you finally understand.

-Ron

March 28, 2023 at 1:55 pm #13350031

Dražen
Supporter

Languages: English (English )

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

Hello Ron,

it is a video about WPML working on subdomains. As I am trying to explain staging site is just a name, you can put in that subdomain what you wish. And is commonly used to distinguish from the main website. It can be somename.website.com

I understand, and as said if 2nd domain/subdomain that you can use, doesn't exist then you can not use it then in WPML per domain settings.

So either check with your hosting on how to create another domain that you can use for WPML language per domain, or use WPML language per directory.

Hope this makes it more clear, let me know if any other doubts or questions.

Kind regards,
Drazen