• I have a problem with long loading times in my dashboard (around 8 seconds for each load). I’ve figured out most of the loading time comes from the following message:

    “Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce 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. (This message was added in version 6.7.0.)”
    With the following callers:

    1. _load_textdomain_just_in_time()
      wp-includes/l10n.php:1378
    2. get_translations_for_domain()
      wp-includes/l10n.php:1408
    3. translate()
      wp-includes/l10n.php:194
    4. __()
      wp-includes/l10n.php:306
    5. WC_CoolPay_Settings::get_fields()
      wp-content/plugins/woo-coolpay/classes/woocommerce-coolpay-settings.php:26
    6. WC_CoolPay->init_form_fields()
      wp-content/plugins/woo-coolpay/woocommerce-coolpay.php:1076
    7. WC_CoolPay->__construct()
      wp-content/plugins/woo-coolpay/woocommerce-coolpay.php:141
    8. WC_CoolPay::get_instance()
      wp-content/plugins/woo-coolpay/woocommerce-coolpay.php:102
    9. WC_CP()
      wp-content/plugins/woo-coolpay/woocommerce-coolpay.php:1610
    10. init_coolpay_gateway()
      wp-content/plugins/woo-coolpay/woocommerce-coolpay.php:1614
    11. do_action('plugins_loaded')
      wp-includes/plugin.php:517

    Can anyone here help me resolve this issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Looks like that’s coming from CoolPay:
    https://www.ads-software.com/plugins/woo-coolpay/

    Do you have this plugin? Its not been updated for 6 years and has several issues, not just that one, because things have changed in that time. To confirm, temporarily deactivate CoolPay. Do you still have the messages?

    Editing its code to bring it up to date will need plugin writing skills or a developer. I think you’ll need to look for an alternative plugin.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thanks for reaching out! The message you’re seeing indicates that translations for WooCommerce are being loaded too early, which can contribute to performance issues. Based on the stack trace, it looks like the issue is coming from the Woo CoolPay plugin.

    To check if this is the cause, try deactivating the Woo CoolPay plugin and see if the issue persists. If deactivating the plugin resolves the problem, we recommend reaching out to the plugin’s support for further assistance. They should be able to investigate why translations are loading too early and provide a fix.

    If you still face the same issue even after deactivating the that plugin, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report?which you can find via WooCommerce > Status
    • Fatal error logs?(if any) under WooCommerce > Status > Logs.

    Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.


    Thread Starter alexfuglkjaer

    (@alexfuglkjaer)

    Hello both,
    Thank you for your responses! It required an update of WordPress Core for some reason.

    I now have a second issue, with the following “WC_Connect_API_Client_Live->request()” being called everytime the admin page loads, which gives a loading time (for this single call) of 0.5 seconds.

    Is there any way to fix this to reduce the load time on the admin page?

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thanks for the update! I’m glad the WordPress Core update resolved the initial issue.

    Regarding the WC_Connect_API_Client_Live->request() call is related to WooCommerce Shipping & Tax and its connection to WooCommerce.com for live API requests. This function is used when WooCommerce needs to communicate with external services

    If you have WooCommerce Shipping, this call may be made to retrieve real-time shipping rates from carriers like USPS or Canada Post.

    To assist you further could you please share the System Status Report?which you can find via WooCommerce > Status

    Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.