• Resolved g-man-jones

    (@g-man-jones)


    Hello,

    MLA is effected by wordpress v 6.7 update.

    See error log:

    PHP Notice: Function load_textdomain_just_in_time was called incorrectly. Translation loading for the media-library-assistant 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 C:\wamp\www\david\wp\wp-includes\functions.php on line 6114

    [15-Nov-2024 07:07:19 UTC] PHP Stack trace: [15-Nov-2024 07:07:19 UTC] PHP 1. {main}() C:\wamp\www\david\index.php:0 [15-Nov-2024 07:07:19 UTC] PHP 2. require() C:\wamp\www\david\index.php:17 [15-Nov-2024 07:07:19 UTC] PHP 3. require_once() C:\wamp\www\david\wp\wp-blog-header.php:13 [15-Nov-2024 07:07:19 UTC] PHP 4. require_once() C:\wamp\www\david\wp\wp-load.php:50 [15-Nov-2024 07:07:19 UTC] PHP 5. require_once() C:\wamp\www\david\wp\wp-config.php:37 [15-Nov-2024 07:07:19 UTC] PHP 6. do_action($hook_name = ‘plugins_loaded’) C:\wamp\www\david\wp\wp-settings.php:559 [15-Nov-2024 07:07:19 UTC] PHP 7. WP_Hook->do_action($args = [0 => ”]) C:\wamp\www\david\wp\wp-includes\plugin.php:517 [15-Nov-2024 07:07:19 UTC] PHP 8. WP_Hook->apply_filters($value = ”, $args = [0 => ”]) C:\wamp\www\david\wp\wp-includes\class-wp-hook.php:348 [15-Nov-2024 07:07:19 UTC] PHP 9. MLACore::mla_plugins_loaded_action(”) C:\wamp\www\david\wp\wp-includes\class-wp-hook.php:324 [15-Nov-2024 07:07:19 UTC] PHP 10. MLACoreOptions::mla_localize_option_definitions_array() C:\wamp\www\david\wp\wp-content\plugins\media-library-assistant\includes\class-mla-core.php:675 [15-Nov-2024 07:07:19 UTC] PHP 11. _($text = ‘Attachment Categories’, $domain = ‘media-library-assistant’) C:\wamp\www\david\wp\wp-content\plugins\media-library-assistant\includes\class-mla-core-options.php:476
    [15-Nov-2024 07:07:19 UTC] PHP 12. translate($text = ‘Attachment Categories’, $domain = ‘media-library-assistant’) C:\wamp\www\david\wp\wp-includes\l10n.php:306
    [15-Nov-2024 07:07:19 UTC] PHP 13. get_translations_for_domain($domain = ‘media-library-assistant’) C:\wamp\www\david\wp\wp-includes\l10n.php:194
    [15-Nov-2024 07:07:19 UTC] PHP 14. _load_textdomain_just_in_time($domain = ‘media-library-assistant’) C:\wamp\www\david\wp\wp-includes\l10n.php:1385
    [15-Nov-2024 07:07:19 UTC] PHP 15. _doing_it_wrong($function_name = ‘_load_textdomain_just_in_time’, $message = ‘Translation loading for the media-library-assistant 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.’, $version = ‘6.7.0’) C:\wamp\www\david\wp\wp-includes\l10n.php:1355
    [15-Nov-2024 07:07:19 UTC] PHP 16. wp_trigger_error($function_name = ”, $message = ‘Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the media-library-assistant 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 ve’…, $error_level = uninitialized) C:\wamp\www\david\wp\wp-includes\functions.php:6054
    [15-Nov-2024 07:07:19 UTC] PHP 17. trigger_error($message = ‘Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the media-library-assistant 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 ve’…, $error_level = 1024) C:\wamp\www\david\wp\wp-includes\functions.php:6114

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi

    Message to the developer to reproduce this notice. You need to be in debug mode and set the site to a foreign language.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your report and for including the error log information; very helpful.

    I have not been able to reproduce the issue on my system despite following the tips provided by @f14m07. However, I have done some research and made code changes that should solve the problem.

    I have uploaded a new MLA Development Version dated 20241117 that corrects the problem. You can find step-by-step instructions for using the Development Version in this earlier topic:

    How to download & install the current development version of MLA

    Once the Development Version is installed you can retest the handling of i18n initialization.

    The fix will be part of my next MLA version, but in the interim it would be great if you could install the Development Version and let me know if it works for you. Thanks for alerting me to this MLA defect.

    Fred17

    (@f14m07)

    I’ve installed the dev version and no error so far. Thank you very much for your quick response.

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA version 3.21, which contains the fixes for this topic. I am marking the topic resolved, but please update it if you have any problems with the new version. Thanks again for reporting the problem and testing the fix.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.