• I get debug errors all the time and warnigs i wordfence and health check. When are these fixed?

    [21-Mar-2026 14:10:45 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>complianz-terms-conditions</code> 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 <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6131

    [21-Mar-2026 14:10:45 UTC] PHP Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>complianz-gdpr</code> 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 <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6131

    PHP 8.3
    TT5 latest
    WordPress Latest

    Thx

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hebhansen

    (@hebhansen)

    Fix:

    class Cmplz_TC_Config {
    protected $label = __('Label Text', 'complianz-terms-conditions'); // ❌ early
    }

    should change to:

    class Cmplz_TC_Config {
    protected $label;

    public function __construct() {
    add_action('init', function() {
    $this->label = __('Label Text', 'complianz-terms-conditions'); // ✅ at init or later
    });
    }
    }

    Hi @hebhansen ,

    With the latest update 1.3.0 we have updated our codebase to match the latest WordPress requirements, including a fix for this issue.

    I hope this helps!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.