Title: load_plugin_textdomain() Issue
Last modified: October 7, 2024

---

# load_plugin_textdomain() Issue

 *  [Johann Heyne](https://wordpress.org/support/users/jonua/)
 * (@jonua)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/load_plugin_textdomain-issue/)
 * Hi, there is a PHP error that appears when using the plugin.
 *     ```wp-block-code
       PHP Notice: Function load_plugin_textdomain was called <strong>incorrectly</strong>. Attempted to load translations for the <code>transients-manager</code> domain too early. Translations should be loaded after the <code>after_setup_theme</code> action has fired, to ensure that the current user is already set up. 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 6099
       ```
   
 * I could solve the issue with
 *     ```wp-block-code
       add_action( 'plugins_loaded', array( $this, 'text_domain' ) );
       ```
   
 * changing to this
 *     ```wp-block-code
       add_action( 'after_setup_theme', array( $this, 'text_domain' ) );
       ```
   
 * Thanks,
   Johann

Viewing 1 replies (of 1 total)

 *  [John Turner](https://wordpress.org/support/users/johnnytee/)
 * (@johnnytee)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/load_plugin_textdomain-issue/#post-18063028)
 * Thanks for the heads up! We will get this fixed in an upcoming release!

Viewing 1 replies (of 1 total)

The topic ‘load_plugin_textdomain() Issue’ is closed to new replies.

 * ![](https://ps.w.org/transients-manager/assets/icon.svg?rev=1671074)
 * [Transients Manager](https://wordpress.org/plugins/transients-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/transients-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/transients-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/transients-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/transients-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/transients-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Turner](https://wordpress.org/support/users/johnnytee/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/load_plugin_textdomain-issue/#post-18063028)
 * Status: not resolved