• Hello. Since WP 6.7 there is a PHP notice that clutters the debug log:

    PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the events-manager 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.

    It appears when WP language is set to other than English (US).

    Best regards.

Viewing 1 replies (of 1 total)
  • Hi, I have the same problem. I traced this to where the error is generated. It seems some translation are called too early:

    • In function em_plugins_loaded() in the events-manager.php
    • In construct() of class BP_EM_Component in bp-em-core.php

    When ‘events-manager’ is specified as domain e.g. in parent::start(‘events’, __(‘Events’, ‘events-manager’), EM_DIR); in bp-em-core.php, this error occurs. If you use another domain there that was already correctly loaded, the error goes away. Unfortunately this can only be done with a change in the plugin code, and I still have not found a more elegant way to fix this (how to make sure that the domain is correctly loaded in the first place, before the functions mentioned above are called …)

    It would be nice if the support of the Events Manager plugin could address this problem …

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