Skip to content

WordPress 6.7 changes in translation throw a warning when WP_DEBUG is on #3239

@alexkuc

Description

@alexkuc

Description

After upgrading WordPress to version 6.7 and enabling WP_DEBUG, the following error/warning can be observed in the admin pages (at the very top, right under toolbar). This error/warning also shows up in the frontend.

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-graphql 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 wp-includes/functions.php on line 6114

Steps to reproduce

  • install WordPress version 6.7 or higher
  • install WPGraphQL plugin, latest version (1.29.2 at the time of writing)
  • set WP_DEBUG to true in wp-config.php
  • observe the error/warning as described earlier

Additional context

No other plugins are running. Theme is Twenty Twenty-Four.

WPGraphQL Version

1.29.2

WordPress Version

6.7.1

PHP Version

8.3.12

Additional environment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have disabled ALL plugins except for WPGraphQL.

  • Yes
  • My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: in progressCurrently being worked ontype: bugIssue that causes incorrect or unexpected behavior

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions