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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 16 replies, has 2 voices.

Last updated by Kor 1 year, 6 months ago.

Assisted by: Kor.

Author Posts
December 4, 2023 at 2:35 pm #14988053

frisoV-2

Hi Kor, I just tried to push staging 13 (the copy we've been working on) live, and immediately all of the old issues -the ones we just spent weeks repairing- popped up again... I've had to restore a backup. It is really unworkable this way. I can't have a perfectly working staging copy break upon pushing to the live website..

hidden link
hidden link
hidden link
hidden link
hidden link

December 4, 2023 at 2:54 pm #14988457

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for responding.

I'm sorry to learn about the situation. However, it appears that the actions taken may not align with the process of "transitioning the site from staging to production." Ideally, the website should remain functional without any disruptions and should mirror the content found in the staging environment.

To address this issue, I would recommend taking the precautionary step of creating a backup first. Afterward, I suggest reaching out to your hosting provider for guidance and assistance in executing the proper procedure to seamlessly push the site from staging to production.

December 4, 2023 at 11:46 pm #14991945

frisoV-2

Hi! It's around midnight, so I've done some testing to narrow down the issue while everyone is asleep. It seems that the issue is not related to moving the site ground staging to live after all. It looks perfect right after the migration. Rather, the pages break only after switching from translations on different directories (worlmasterpianists.nl/en) to using different domains. My original language is on worldmasterpianists.nl and the English translation should be on worldmasterpianists.com. Please advise 🙂

December 5, 2023 at 9:05 am #14994223

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Would you like to work on it now? I need to be able to see the issue before I can see what's going on.

December 5, 2023 at 10:05 am #14995091

frisoV-2

Hi Kor, I can't really show you on a live website... I did this VERY quickly in the middle of the night, so hopefully I avoided visitor traffic. On the staging copy I don't have a .com available. I have asked Siteground for assistance, but it is not possible to use different domains since the staging websites come with a specific server configuration that cannot be changed or modified.

The only way I would be willing to do it on the live is if we do it around 1AM Amsterdam time... But it would be better if you downloaded the site and tried to reproduce it on your end.

December 5, 2023 at 10:40 am #14995647

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Could you list the steps to replicate it? What did you do after migration?

December 5, 2023 at 10:56 am #14995779

frisoV-2

Certainly. I pushed the website live (full deploy). Website looked perfect with the directory /en for english. Then I went into the WPML settings to set the english translation to the .com. After that old the old issues were back (screenshots from previous message)

Screenshot 2023-12-05 at 11.56.09.png
Screenshot 2023-12-05 at 11.53.25.png
December 5, 2023 at 1:50 pm #14998495

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Ok, you mentioned that the issue only shows up when you "set the English translation to the .com". I need more information about this as I cannot configure this on a local dev site.

Are you saying that you used the "A different domain per language" option as explained here? https://wpml.org/documentation/getting-started-guide/language-setup/language-url-options/

December 5, 2023 at 2:32 pm #14999523

frisoV-2

Yes. You can see this on the live website at worldmasterpianists.nl and .com.

December 5, 2023 at 2:57 pm #14999793

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for getting back to me.

Alright, let's consider implementing these steps either during a maintenance window or when the website experiences low traffic:

1. Modify the "Language URL format" to "Different languages in directories"
2. Perform a thorough website inspection to ensure all functionalities remain intact.
3. If the site functions correctly, transition the staging site to the live production site.
4. Verify that everything still functions as expected.
5. If all is well, update the "Language URL format" to "Language name as a parameter"

let me know how it goes.

December 5, 2023 at 3:39 pm #15000455

frisoV-2

I don't want to set up the name to parameters though. It has to be set to different domains. I did this last night (after migration to live) and things broke (see screenshots)

December 5, 2023 at 3:46 pm #15000469

frisoV-2

Here's what I did last night:

1. pushed staging13 to live
2. checked the translated pages, they looked good
3. changed the URL structure from "Different languages in directories" to "Different domain per language"
4. checked the translated pages again. They were broken.

December 5, 2023 at 4:32 pm #15000915

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Sorry, but I cannot help without being able to replicate the error or troubleshoot it directly.

Could you migrate first and let me check on the "Different domain per language" issue afterward?

Please make sure to backup before you perform this migration.

December 5, 2023 at 11:41 pm #15003113

frisoV-2

Please understand, I cannot put a broken website live. As I explained earlier, I would only be willing to do it at night, and very quickly. We would have to be on a call or something and it would have to between 1AM and 5AM Amsterdam time. I would be willing to sacrifice a night's sleep for it. But it would be easier if you download the website, set the language to different domains and see for yourself.

December 6, 2023 at 8:31 am #15004607

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

I comprehend your message. Regrettably, attempting to download the website and configuring the "Different domain per language" option will not function on our development sites or local installations. Could you verify if you can reproduce this problem on your staging site at hidden link ?

Moving forward, here are the troubleshooting steps you can follow during your nighttime:

1. Follow the instructions provided here to enable debugging logs on your production site: https://wpml.org/documentation/support/debugging-wpml/

2. Create a backup of the site and perform a migration from staging to production. Trigger the error by using the language to different domains option.

3. Navigate to your server's wp-content folder and make a copy of the debug.log file and share over using dropbox or google drive.

4. Send me the debug log file, and I will investigate the root cause of the issue.

5. While waiting for me to analyze the debug log, restore the live site.

The topic ‘[Closed] Website breaks after pushing the site to production from staging.’ is closed to new replies.