Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pods domain was triggered too early. #7386

Open
shterev opened this issue Jan 6, 2025 · 0 comments

Comments

@shterev
Copy link

shterev commented Jan 6, 2025

Description

When I enable WP debug mode I have this error message:

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pods 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](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/) for more information. (This message was added in version 6.7.0.) in /home/sitedomain/public_html/wp-includes/functions.php on line 6115

WP version: 6.7.1
Pods - Custom Content Types and Fields version: 3.2.8.1

Well updating lines 154,155,156 of pods/classesPodsInit.php to the following hides / fixes this error. Not sure If this is the exact fix.

add_action( 'init', [ $this, 'init' ], 0 );
add_action( 'init', [ $this, 'run' ] );
add_action( 'init', [ $this, 'activate_install' ], 9 );

Version

3.2.8.1

Testing Instructions

Enable debug mode define( 'WP_DEBUG', true );

No response

Screenshots / Screencast

No response

Possible Workaround

Well updating lines 154,155,156 of pods/classesPodsInit.php to the following hides / fixes this error. Not sure If this is the exact fix.

add_action( 'init', [ $this, 'init' ], 0 );
add_action( 'init', [ $this, 'run' ] );
add_action( 'init', [ $this, 'activate_install' ], 9 );

Site Health Information


Pods Package

Pods - Custom Content Types and Fields

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant