• Since 6.7 I am seeing this:

    Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the baskerville 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.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @shawfactor,

    I can’t replicate the issue on my local setup with 6.7 active. Baskerville loads the text domain with the after_setup_theme hook, which is triggered after init. Can you confirm that you’re running the Baskerville theme and not Baskerville 2, and that you’re getting the warning without any plugins active?

    — Anders

    Lots of people are seeing these errors, which are related to this new error code which was added in WP6.7.

    The error is being shown incorrectly when certain WP functions are used- often in plugins.

    so for instance if a plugin calls say

    $parent = wp_get_theme()->parent(); 

    then when any value of $parent is tested, the error is thrown stating that the theme (in this case ‘Baskerville’) is at fault.

    I gather that this has been raised with WP for a fix. Woocommerce has an advisory for it

    https://developer.woocommerce.com/2024/11/11/developer-advisory-translation-loading-changes-in-wordpress-6-7/

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