Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function _load_textdomain_just_in_time was called incorrectly #981

Closed
tobiashaas opened this issue Jan 9, 2025 · 0 comments · Fixed by #967
Closed

Function _load_textdomain_just_in_time was called incorrectly #981

tobiashaas opened this issue Jan 9, 2025 · 0 comments · Fixed by #967

Comments

@tobiashaas
Copy link

Hey dear team,
Wordpress changed something with version 6.7.0 and since then a PHP error/notice keeps coming up. Can you please fix this?

Thank you very much

Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce 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:1370 get_translations_for_domain() wp-includes/l10n.php:1408 translate() wp-includes/l10n.php:194 _get_plugin_data_markup_translate() wp-admin/includes/plugin.php:163 get_plugin_data() wp-admin/includes/plugin.php:114 Mollie\I\E\C\PluginConstraint->check() wp-content/plugins/mollie-payments-for-woocommerce/pluginEnvironmentChecker/Constraints/PluginConstraint.php:45 Mollie\I\E\EnvironmentChecker->check() wp-content/plugins/mollie-payments-for-woocommerce/pluginEnvironmentChecker/EnvironmentChecker.php:33 Mollie\W\A\ConstraintsChecker->handleActivation() wp-content/plugins/mollie-payments-for-woocommerce/src/Activation/ConstraintsChecker.php:51 Mollie\WooCommerce\initialize() wp-content/plugins/mollie-payments-for-woocommerce/mollie-payments-for-woocommerce.php:105 do_action('plugins_loaded') wp-includes/plugin.php:517

Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the mollie-payments-for-woocommerce 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:1370 get_translations_for_domain() wp-includes/l10n.php:1408 translate() wp-includes/l10n.php:194 _get_plugin_data_markup_translate() wp-admin/includes/plugin.php:163 get_plugin_data() wp-admin/includes/plugin.php:114 Mollie\I\M\P\PluginProperties->__construct() wp-content/plugins/mollie-payments-for-woocommerce/vendor/inpsyde/modularity/src/Properties/PluginProperties.php:53 Mollie\I\M\P\PluginProperties::new() wp-content/plugins/mollie-payments-for-woocommerce/vendor/inpsyde/modularity/src/Properties/PluginProperties.php:40 Mollie\WooCommerce\initialize() wp-content/plugins/mollie-payments-for-woocommerce/mollie-payments-for-woocommerce.php:114 do_action('plugins_loaded') wp-includes/plugin.php:517

@InpsydeNiklas InpsydeNiklas linked a pull request Jan 9, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant