gocodebox / lifterlms

LifterLMS, a WordPress LMS Solution: Easily create, sell, and protect engaging online courses.
https://lifterlms.com
GNU General Public License v3.0
184 stars 135 forks source link

Warning loading translations in WP 6.7 #2807

Closed brianhogg closed 6 days ago

brianhogg commented 1 week ago

Reproduction Steps

  1. With LifterLMS and WP 6.7 installed, switch the site language to something other than English (ie. Español)

Expected Behavior

Translations are loaded and there are no warnings.

Actual Behavior

A warning is displayed and the translations do not load.

CleanShot 2024-11-18 at 9  10 48@2x

Error Messages / Logs

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

This issue has be recreated: