• gwertul

    (@gwertul)


    I get this error upon updating to WordPress 6.8:

    Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the <span style="font-family: inherit; font-size: 0.8rem;">eventorganiser</span> 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 <span style="font-family: inherit; font-size: 0.8rem;">init</span> action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6121
Viewing 3 replies - 1 through 3 (of 3 total)
  • Same problem for me. And the login page goes blank with notice errors 🙁
    I tried to replace “add_action( ‘plugins_loaded’, ‘eventorganiser_load_textdomain’ );” by “add_action( ‘init’, ‘eventorganiser_load_textdomain’ );” (line 107 of event-organiser.php) but nothing change…

    Thread Starter gwertul

    (@gwertul)

    You’re right, it also breaks my login page!

    Thread Starter gwertul

    (@gwertul)

    Replacing

    global $eventorganiser_roles;
    $eventorganiser_roles = array(
    'edit_events' => __( 'Edit Events', 'eventorganiser' ),
    // …
    );

    with

    function eventorganiser_register_cap_labels() {
    global $eventorganiser_roles;

    $eventorganiser_roles = array(
    'edit_events' => __( 'Edit Events', 'eventorganiser' ),
    'publish_events' => __( 'Publish Events', 'eventorganiser' ),
    'delete_events' => __( 'Delete Events', 'eventorganiser' ),
    'edit_others_events' => __( 'Edit Others\' Events', 'eventorganiser' ),
    'delete_others_events' => __( 'Delete Other\'s Events', 'eventorganiser' ),
    'read_private_events' => __( 'Read Private Events', 'eventorganiser' ),
    'manage_venues' => __( 'Manage Venues', 'eventorganiser' ),
    'manage_event_categories' => __( 'Manage Event Categories & Tags', 'eventorganiser' ),
    );

    }
    add_action( 'init', 'eventorganiser_register_cap_labels' );

    in event-organiser.php fixed it for me.

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

The topic ‘WordPress 6.8 compatibility’ is closed to new replies.