Translation function called too early
-
Please check out this improvement that can be made. I am using WP 6.8.1 and HappyForms 1.26.9.
TLDR: The translation function__()is being called atplugins_loadedinstead of atinitaction or later.Details from. Query Monitor:
Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the happyforms 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. (This message was added in version 6.7.0.)-_load_textdomain_just_in_time()
wp-includes/l10n.php:1379get_translations_for_domain()
wp-includes/l10n.php:1409translate()
wp-includes/l10n.php:195__()
wp-includes/l10n.php:307HappyForms_Part_SingleLineText->__construct()
wp-content/plugins/happyforms/core/classes/parts/class-part-single-line-text.php:7HappyForms_Form_Part_Library->register_part()
wp-content/plugins/happyforms/core/classes/class-form-part-library.php:74HappyForms_Form_Part_Library->__construct()
wp-content/plugins/happyforms/core/classes/class-form-part-library.php:46HappyForms_Form_Part_Library::instance()
wp-content/plugins/happyforms/core/classes/class-form-part-library.php:30happyforms_get_part_library()
wp-content/plugins/happyforms/core/classes/class-form-part-library.php:294HappyForms_Core->initialize_plugin()
wp-content/plugins/happyforms/core/classes/class-happyforms-core.php:75HappyForms->initialize_plugin()
wp-content/plugins/happyforms/inc/classes/class-happyforms.php:13do_action('plugins_loaded')
wp-includes/plugin.php:517
The topic ‘Translation function called too early’ is closed to new replies.