Skip to content Skip to sidebar

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
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

Tagged: ,

This topic contains 15 replies, has 1 voice.

Last updated by Itamar 8 months, 1 week ago.

Assisted by: Itamar.

Author Posts
August 11, 2025 at 3:05 am #17308053

markusM-54

Background of the issue:
I am trying to resolve an issue where the default language disappears randomly after migrating from Polylang. I want to know if there is a script to check the database.

Symptoms:
The default language disappears randomly after migration from Polylang. The only way to recover is to restore from backup.

Questions:
Is there a script to check the database for issues after migration from Polylang?

August 12, 2025 at 2:07 am #17311694

markusM-54

OK, this has repeated again. It appears whenever you save a Draft of a post, it kills the default language (the language of the post it was trying to create. I can send you debug log if you can create me a link to share privately please.

August 12, 2025 at 2:18 am #17311697

markusM-54

It's not just putting post into draft, any new post drops the default language. Help please!

August 12, 2025 at 9:59 am #17312830

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi,

Yes, please share with us WordPress's debug.log while this problem occurs.

Please check this page for instructions.
https://wpml.org/documentation/support/debugging-wpml/

To enable it, open your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);

After this, repeat the action that causes the problem on your site--create a new post. In this case, the errors will be saved to a debug.log log file inside the /wp-content/ directory. Then please share the errors with us. If the debug.log was already active, please only share the error you encountered during your test to keep the log concise and avoid unrelated errors.

If you need further assistance with this, please share the access details to your site with me. I'm enabling a private message for the following reply. Also, please allow me to take a copy of your site. For this, I must install a plugin like Duplicator or All In One Migration. Please let me know if you agree.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

August 12, 2025 at 10:22 am #17313024

markusM-54

Thanks, this has been done and access to the site can be acquired using the following credentials:

URL: hidden link

-- removed by the support team --

Also, no problem on taking a copy of the site

August 12, 2025 at 6:29 pm #17314872

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi,

Important!
Our forum is public. It is not a private discussion/thread only between you and us. So please refrain from posting sensitive information in public replies. I have removed the login details from the previous reply. For your site's safety, please change those details. I'm not allowed to use the access details as you shared them. You must share them in a private reply. This way, you also give your consent that we will access your site and that you have a backup. I'm enabling a private message for the following reply.

Also, you didn't attach any errors.
Have you tried my suggestions to check for PHP errors?

Regards,
Itamar.

August 12, 2025 at 9:05 pm #17315111

markusM-54

I've uploaded debug log twice now, did you recieve?

August 13, 2025 at 8:25 am #17315928

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi,

No, I don't see it.
Is it possible you are confusing WPML's debug information with the WordPress debug log?
In any case, I'll check things myself, so please give me access to your site, including FTP access, and also allow me, as I already requested, to install a plugin on your site. Please double check that you provided the access details in the fields designated for this.

If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

August 14, 2025 at 7:50 pm #17322101

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi, and thanks for the access details.

However, I get the following error when I try to log in:

LOGIN BLOCKED: 2FA is required to be active on your account. Please contact the site administrator.

Please see the attached screenshot.

Can you please correct this so I can access your site?
In case it is needed, I'm enabling a private message for the following reply.

Please note that my weekend hours are Friday to Saturday. If you need further assistance, I'll be available to continue checking this issue and helping you next week.

Regards,
Itamar.

2025-08-14_22-47-55.jpg
August 14, 2025 at 7:58 pm #17322118

markusM-54

Sorry, that should be fixed now. Can you try again?

August 19, 2025 at 9:45 am #17330642

markusM-54

Hi there, thanks for looking at this. I can see you managed to access the site which is great. Looks like whatever you did broke the default language again (this is the issue we are experiencing). We've restored from backup to get the site working again. Did you manage to troubleshoot any further while it was broken?

August 19, 2025 at 7:45 pm #17332687

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi, and thanks for the access details.

I'm sorry for the late reply here.

Yes, I manage to access your site. However, I didn't do anything to break the default language besides taking a copy of your site with the All In One Migration plugin. Please note that I only took the copy of the site now. I might have checked if the access details work when you noticed that I accessed. When I checked, I didn't see or check if anything was broken. Nor can I see it is broken now. In fact, I'm uncertain what exactly the problem is. You wrote:

It's not just putting post into draft, any new post drops the default language.

What do you mean that the default language is being dropped?
Do you have any screenshots to demonstrate this?
I will continue to investigate this issue on a copy of your site on our servers.
Can you please outline the steps I should take to reproduce this problem?

Regards,
Itamar.

August 19, 2025 at 8:33 pm #17332785

markusM-54

Hi Itamar, its all good we just restore from backup when it happens. It might be easier to demonstrate on a quick call? Currently on our site we have 3 languages - default is English (United Kingdom). Since the move from polylang, it seems whenever we create a new post/page, or even change some elements results in this language disappearing all together. Once it happens, we have to restore from backup to get it back. Let me know if you are happy to do a call?

August 25, 2025 at 1:35 am #17343678

markusM-54

Hi Itamar, just checking to see if you'd made any progress on this issue?

August 25, 2025 at 4:33 pm #17345848

Itamar
WPML Supporter since 02/2016

Languages: Hebrew (עברית )

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

Hi,

I was able to reproduce the problem with the copy of your site on my local server. The issue has been escalated to our second-tier supporters. When I have news from them about this issue, I'll update you here.

I appreciate your patience.
Itamar.

The topic ‘[Closed] Default language disappears randomly after Polylang migration’ is closed to new replies.