• Resolved dw4y

    (@dway)


    Hello,

    Since WP 6.7 update, a warning appears in top of each page (tested with plugin v4.5.1 to v5.0.2) :

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the contact-form-7-dynamic-text-extension 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 /path/to/wp-includes/functions.php on line 6114

    It seems some translations are loaded before init action.

    I’ve tried to modified the code to use action ‘init’ in place of ‘plugins_loaded’ but it seems not sufficient.

    Also, it seems there is no use of translation loading anywhere in the code, like ‘load_plugin_textdomain’.

    Please can you look at it ?

    It seems many plugins for WP throw this error, because of a new test in WP 6.7.

    Some information here :

    https://stackoverflow.com/questions/79198701/notice-function-load-textdomain-just-in-time-was-called-incorrectly

    Thank you !

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,

    could you fix this notice ?
    Regards

    Hi there! Yes, I’ll address this issue in the coming week. I was out of office for the holidays. Thanks!

    While the comments were removed and the thread locked in the other post by a forum moderator, I still have the messages that were sent via email, so fret not @harm10 and @phildriscoll

    Thread Starter dw4y

    (@dway)

    Thank you ??

    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    I haven’t forgotten, time has just gotten away from me. I appreciate y’all’s patience <3

    Thread Starter dw4y

    (@dway)

    No problem Tessa, we’ll wait !

    Thread Starter dw4y

    (@dway)

    Hello @tessawatkinsllc, could you give us some news about this bug ?

    I have many WordPress waiting for update and stuck at 6.6.2…

    Do you think you could look at this as soon as possible ?

    Thank you again !

    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    Hi @dway and thank you so very much for your patience.

    I’m like 95% sure I know what the cause of the bug is. When my co-author was creating the settings pages for the allowlists to address the security issues, their implementation included translating some text in the $sections and $fields variables in the file here. I believe those are translations occurring too early, throwing the PHP notices.

    This has led me to start rewriting the code on that page, overhauling that class and optimizing stuff.

    In other words, I’m complete crap at prioritizing and managing my time lol, and will stage the complete overhaul to release just the fix to get rid of the dumb notices, and will eventually release the overhauled class when I can finish dedicating time to it.

    Honestly, it’s times like this I wish I worked for myself full time ??

    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    I just released what I think is the fix in version 5.0.3. The reason why I say “I think” is because I’ve never actually seen this error on any of my sites (even the ones on 6.7.x). I don’t know if it’s a logging level, php version, or what, but it’s a shot in the dark based on the info about the notice ??

    Please let me know if it sorts you out!

    Thread Starter dw4y

    (@dway)

    Hey @tessawatkinsllc !

    Thank you very very much, I’ve just tested WordPress 6.7.2 with the 5.0.3 update and it does the trick, no more warning shown ??

    To show warning, I’ve set this in my wp-config.php :

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_DISPLAY', true );

    About working for yourself full time, I know very well this feeling ??

    Have a nice day !

    • This reply was modified 2 weeks, 4 days ago by dw4y.
    Plugin Author Tessa (they/them), AuRise Creative

    (@tessawatkinsllc)

    Wonderful news, thank you for testing it for me!

    It just dawned on me that I’ve not seen the notice probably because all of the sites I manage are in English.

    Thread Starter dw4y

    (@dway)

    Oh ok, that makes sense, I’m using WordPress in French ??

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