Title: PHP Notice Issue
Last modified: December 9, 2024

---

# PHP Notice Issue

 *  Resolved [ytshandygaff](https://wordpress.org/support/users/ytshandygaff/)
 * (@ytshandygaff)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-notice-issue/)
 * Dear myCRED Development Team,
 * I am experiencing a PHP Notice error while using the myCRED plugin on my WordPress
   site. Below are the details of the error message:
 * `PHP Notice: Function _load_textdomain_just_in_time was called <strong>incorrectly
   </strong>. Translation loading for the <code>mycred</code> 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 <code>init</code> action
   or later. 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 /var/www/html/wp-includes/functions.php
   on line 6114`
 * **PHP Stack Trace:**
 * `PHP Notice: Function _load_textdomain_just_in_time was called **incorrectly**.
   Translation loading for the mycred 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 /var/www/
   html/wp-includes/functions.php on line 6114
   PHP Stack trace:PHP 1. {main}() /
   var/www/html/wp-admin/update-core.php:0PHP 2. require_once() /var/www/html/wp-
   admin/update-core.php:10PHP 3. require_once() /var/www/html/wp-admin/admin.php:
   34PHP 4. require_once() /var/www/html/wp-load.php:50PHP 5. require_once() /var/
   www/html/wp-config.php:129PHP 6. include_once() /var/www/html/wp-settings.php:
   526PHP 7. mycred_core() /var/www/html/wp-content/plugins/mycred/mycred.php:1244PHP
   8. myCRED_Core::instance() /var/www/html/wp-content/plugins/mycred/mycred.php:
   1242PHP 9. myCRED_Core->**construct() /var/www/html/wp-content/plugins/mycred/
   mycred.php:47 PHP 10. myCRED_Core->internal() /var/www/html/wp-content/plugins/
   mycred/mycred.php:126 PHP 11. mycred_get_types($name_first = TRUE) /var/www/html/
   wp-content/plugins/mycred/mycred.php:350 PHP 12. mycred_get_point_type_name($
   point_type = 'mycred_default', $singular = FALSE) /var/www/html/wp-content/plugins/
   mycred/includes/mycred-functions.php:2469 PHP 13. mycred($point_type = 'mycred_default')/
   var/www/html/wp-content/plugins/mycred/includes/mycred-functions.php:2614 PHP
   14. myCRED_Settings->__construct($point_type = _uninitialized_) /var/www/html/
   wp-content/plugins/mycred/includes/mycred-functions.php:1784 PHP 15. myCRED_Settings-
   >get_point_type_settings() /var/www/html/wp-content/plugins/mycred/includes/mycred-
   functions.php:99 PHP 16. myCRED_Settings->defaults() /var/www/html/wp-content/
   plugins/mycred/includes/mycred-functions.php:164 PHP 17. **($text = 'Point', 
   $domain = 'mycred') /var/www/html/wp-content/plugins/mycred/includes/mycred-functions.
   php:132PHP 18. translate($text = 'Point', $domain = 'mycred') /var/www/html/wp-
   includes/l10n.php:306PHP 19. get_translations_for_domain($domain = 'mycred') /
   var/www/html/wp-includes/l10n.php:194PHP 20. _load_textdomain_just_in_time($domain
   = 'mycred') /var/www/html/wp-includes/l10n.php:1408PHP 21. _doing_it_wrong($function_name
   = '_load_textdomain_just_in_time', $message = 'Translation loading for the mycred
   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.', $version = '6.7.0') /var/www/html/wp-includes/l10n.php:1378PHP
   22. wp_trigger_error($function_name = '', $message = 'Function _load_textdomain_just_in_time
   was called **incorrectly**. Translation loading for the mycred 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.)', $error_level
   = _uninitialized_) /var/www/html/wp-includes/functions.php:6054PHP 23. trigger_error(
   $message = 'Function _load_textdomain_just_in_time was called **incorrectly**.
   Translation loading for the mycred 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.)', $error_level
   = 1024) /var/www/html/wp-includes/functions.php:6114
 * The issue seems to occur because translation loading for the `mycred` domain 
   is being triggered too early, which is not in compliance with the guidelines 
   mentioned in the WordPress documentation. The recommended approach is to load
   translations during the `init` action or later.
 * I would greatly appreciate it if you could investigate this issue and provide
   guidance or a fix for this problem. Please let me know if you need further details
   or access to my environment for debugging.
 * Thank you for your attention to this matter.

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

 *  Plugin Support [bukhari10](https://wordpress.org/support/users/bukhari10/)
 * (@bukhari10)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-notice-issue/#post-18186738)
 * Hello [@ytshandygaff](https://wordpress.org/support/users/ytshandygaff/),
 * Thanks for contacting us,
 * I hope you are doing well. Could you please confirm the <span style=”box-sizing:
   border-box; margin: 0px; padding: 0px;”>**WordPress**, **myCred**, and **PHP**
   versions </span>you are currently using? This will help us replicate the issue
   in our environment and assist you promptly.
 * Looking forward to getting your issue resolved.
 * Thanks & Regards
   WP Experts Support Team.
 *  Thread Starter [ytshandygaff](https://wordpress.org/support/users/ytshandygaff/)
 * (@ytshandygaff)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-notice-issue/#post-18188602)
 * Hello WP Experts Support Team,
 * Thank you for your prompt response.
 * Here are the requested details:
    - **WordPress version:** 6.7.1
    - **myCred version:** 2.7.6.1
    - **PHP version:** 8.0.16
 * Please let me know if you need any further information to assist with resolving
   the issue.
 * Looking forward to your guidance.
 * Thanks & Regards,
 *  Plugin Support [bukhari10](https://wordpress.org/support/users/bukhari10/)
 * (@bukhari10)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-notice-issue/#post-18191329)
 * Hello [@ytshandygaff](https://wordpress.org/support/users/ytshandygaff/),
 * We have forwarded your query to our technical team and will notify you as soon
   as they respond.
 * Thanks
 *  Plugin Support [bukhari10](https://wordpress.org/support/users/bukhari10/)
 * (@bukhari10)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-notice-issue/#post-18221342)
 * Hello [@ytshandygaff](https://wordpress.org/support/users/ytshandygaff/),
 * <span style=”box-sizing: border-box; margin: 0px; padding: 0px;”>We need more
   information to assist you further. Please click [here](https://mycred.me/support/)
   to create a ticket on our official website so we can connect you directly with
   our Technical Team and resolve your issue promptly.</span>
 * Looking forward to getting your issue resolved.
 * Thank you.

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

The topic ‘PHP Notice Issue’ is closed to new replies.

 * ![](https://ps.w.org/mycred/assets/icon-128x128.gif?rev=2544137)
 * [Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program - myCred](https://wordpress.org/plugins/mycred/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mycred/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mycred/)
 * [Active Topics](https://wordpress.org/support/plugin/mycred/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mycred/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mycred/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [bukhari10](https://wordpress.org/support/users/bukhari10/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/php-notice-issue/#post-18221342)
 * Status: resolved