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 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

Tagged: 

This topic contains 3 replies, has 1 voice.

Last updated by Prosenjit Barman 2 weeks, 1 day ago.

Assisted by: Prosenjit Barman.

Author Posts
December 6, 2024 at 3:40 pm #16486700

shalomg

Background of the issue:
I am trying to clean up some log entries that may be causing issues on my site. Link to a page where the issue can be seen: hidden link

Symptoms:
Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the breadcrumb-navxt domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. I installed the latest version of String Translation because I read about a very similar issue and I thought that the update would fix it but not really. I still have those messages flooding my debug logs.

Questions:
How can I stop these debug log entries from appearing?
Is there a way to ensure translations are loaded at the correct time?

December 8, 2024 at 7:54 am #16489248

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

I will try to answer the question before assigning the ticket to one of my colleagues.

This is a known issue introduced by WordPress update to version 6.7.

Many plugs might be affected and you need to make sure that you update all plug-ins that you use because this is something that the plug-in developers need to address.

For our side, we've already fixed that issue by updating the WPML string translation plug into version 3.2.16.

We released an erratum regarding this issue that you can check here:

https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/

Thanks.

December 9, 2024 at 2:32 pm #16493726

shalomg

Hi Christopher. I have already updated WPML string translation to that version you mention and the flooding continues.

Are you telling me that 'each and every' plugin developer need to release their own update to get rid of the error?

Do you know if apart from the log flooding there's another functional impact in the web general behavior ? i.e. Does this break anything?

December 10, 2024 at 7:50 am #16496183

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There!
I hope you're doing well. Sorry for the delay in responding due to the weekend.

I understand your concern. Recently, WordPress has updated how it handles translations. These changes were introduced in the WordPress core, and plugins that previously implemented translation mechanisms using the older approach now need to adapt to these new updates in WordPress to ensure their translations load correctly.

In WPML, we have made the necessary changes and released an update. It's great to hear that you've updated the plugin to the latest version. As a result, you will no longer see any notices or warnings related to `_load_textdomain_just_in_time` from WPML or its addons.

However, if you still encounter that warning from any other plugin, you should reach out to the author or support team. They must update their plugin and adopt the new WordPress approach to resolve the warning. Most plugin developers are already aware of this change, so they will likely implement the necessary updates to ensure their plugin works correctly with the latest WordPress standards.

If the warning appears for a specific plugin, it indicates that the plugin has a translation issue, and its translations will not work correctly. While this does have a functional impact, it should not cause anything to break on the site.

I hope you can understand. Feel free to let me know if you have any other queries or concerns. I'll be happy to help.

Best regards,
Prosenjit

The topic ‘[Closed] Some incorrect translation timing causing tons of debug log entries’ is closed to new replies.