Home›Support›English Support›[Resolved] Geting error after debuging and cannot see translated .mo files chauffer booking system plugin
[Resolved] Geting error after debuging and cannot see translated .mo files chauffer booking system plugin
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is using the chauffeur booking system plugin and has issues with translating the plugin into Croatian and English using .po files. They encountered an error indicating that the function
_load_textdomain_just_in_time
was called incorrectly, suggesting that translations were loaded too early in WordPress.
Solution: 1. We identified that the error related to
_load_textdomain_just_in_time
is a known issue with the latest WordPress core, not directly related to WPML. For more details, see the errata page: https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/ 2. We recommended increasing the WordPress memory limit to at least 128MB, which can help with processing translations. This can be done by adding the following code to the wp-config.php file:
3. To import .PO files using String Translation, follow the guide here: https://wpml.org/documentation/getting-started-guide/string-translation/#import-export-po-files 4. To make the plugin's strings available for translation in WPML, go to WPML -> Theme and plugins localization, select the plugin, and scan it for strings. The strings should then appear in WPML -> String Translation.
If this solution does not resolve your issue or seems outdated, we 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. If the problem persists, please open a new support ticket at WPML support forum.
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.
Background of the issue:
I am using the chauffeur booking system plugin to translate the whole page into Croatian and English. I created chauffeur-booking-system-hr_HR po files but cannot see any changes. The issue can be seen at hidden link.
Symptoms:
After enabling debug mode, I received the following error: 'Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the chauffeur-booking-system 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. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/airportsplit/test.airport-split-transfers.com/wp/wp-includes/functions.php on line 6114.'
Questions:
Why can't I see the translated .mo files for the chauffeur booking system plugin?
How can I resolve the error related to _load_textdomain_just_in_time being called incorrectly?
2.- Please increase the WP memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:`
Ok can we return on first problem. I am still geting error -->hidden link
My problem is that I upload .mo files to plugin chauffer booking system and by the autor it should translate strings but it does not. I dont see strings in wpml string translation so wondering do you have some reccomended situation. Kind regards
Now you just need to go to WPML -> Theme and plugins localization (your last screenshot) -> Select the plugin and scan it for strings. Then the available strings will appear in WPML -> String Translation
I am really strugling with translation of this page.
This is how author suggest that we should do to translate plugin: hidden link
I use wpml for better doing but I am not sure if now wpml is my problem. When I translate this booking forms in chauffer booking plugin it does not recognize po files so for example if I translate home page on other language plugin cannot use english booking form for croatian language. So I need translate booking form... I do it by overwriting it with english and getting new problems. Booking form is consistent of cars, extra things, routes so I translate and that and its fine. But last thing that booking form using is pricing rules but they are not translatable by wpml so it looks I need create all new 6 pricing rules for every language
So wondering whould it be better to translate it without wpml or there is a way for translate this thing.
1.- I would like to closely examine the site configuration. I have set your next message private so you can securely share the access credentials to the site.
Please confirm you created a full site backup before sharing the credentials you can use to restore the site if necessary.
2.- Describe step-by-step how to edit the form in the original language. You can share a link to a screencast describing these steps. This will help me understand this issue better.