• Resolved alijens

    (@alijens)


    I get thousands of scheduled tasks with status waiting like

    MailChimp_WooCommerce_Single_Product_Variation
    MailChimp_WooCommerce_Single_Order

    They seem to be created faster than our server can process them and keeps increasing.

    I have tried to force execute them with

    wp action-scheduler run –batch-size=500 –batches=0 –allow-root –force

    But when I do that I get

    Warning: Undefined array key “SERVER_NAME” in /customers/e/a/f/aveo.se/httpd.www/wp-content/plugins/mailchimp-for-woocommerce/includes/class-mailchimp-woocommerce-enhanced-logger.php on line 258
    please fix this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support khungate

    (@khungate)

    Hi @alijens,

    It sounds like you’re experiencing issues with the Action Scheduler not executing scheduled tasks, which can indeed be frustrating. From your description, it seems that the underlying cause might relate to how WordPress handles scheduled tasks, especially when relying on WP-Cron.

    Here are some steps you can take to troubleshoot and potentially resolve the issue:

    1. Check WP-Cron Configuration: Ensure that WP-Cron is not disabled. Sometimes, it may be turned off in the wp-config.php file. Look for a line like define('DISABLE_WP_CRON', true); and make sure it’s either removed or set to false.
    2. Plugin Conflicts: Deactivate other plugins temporarily to check if there’s a conflict that might be preventing the Action Scheduler from running correctly. Reactivate them one by one to identify any potential issues.
    3. Server Resources and Configuration: Verify that your server is configured correctly to handle cron jobs. If your website does not receive much traffic, the pseudo-cron nature of WP-Cron may lead to missed executions. In such cases, consider setting up a real cron job on your server to call wp-cron.php at regular intervals. This can help ensure that scheduled tasks are executed consistently, regardless of site traffic.
    4. Consult Hosting Support: Sometimes, server-side restrictions can affect cron jobs. It may be beneficial to contact your hosting provider’s support to check if there are any configurations or restrictions in place that could be impacting the execution of scheduled tasks.
    5. Action Scheduler Logs: Check the logs provided by the Action Scheduler (if available) for any errors that may indicate why tasks are not executing. This can provide insights into what might be going wrong.

    If you’ve tried these steps and are still experiencing issues, please provide additional details about your server environment, the plugins you’re using, and any specific error messages you may be encountering.

    Plugin Support KJ

    (@kjvextras)

    @alijens Hi! Letting you we began looking into this error – we will keep you posted

    josselynj

    (@josselynj)

    Hi

    Same problem here many MailChimp_WooCommerce_Single_Order in AS pending and past-due…
    I’ve made a purge yesterday to be sure its a MC problem, and yes it is.
    i’m doing the cron directly on cPanel and all was working perfectly till i reactive your plugin.

    Can you guy have a solution for that except to change the mailing provider 🙂 ?

    Plugin Support KJ

    (@kjvextras)

    Hi! We are adding this to our next release – we do have a potential fix in github that has not been merged but may help if you want to try it out. Try on staging first: https://github.com/mailchimp/mc-woocommerce/pull/1311

    hi,

    When are you going to release the new update ?

    Plugin Support KJ

    (@kjvextras)

    Hi @josselynj we are still in testing, it would be unfair to you to give an expectation and not deliver on that … I will swing back around early next week with more info.

    Plugin Support KJ

    (@kjvextras)

    Hi there, we have included this update in our latest release.

    Please let us know if you still need any help and we’ll be glad to reopen and troubleshoot further.

    Please note, that the best way to reach us is over at the GitHub plugin page: https://github.com/mailchimp/mc-woocommerce/. From there, you can receive direct responses from the development team, log new issues, download the latest version v6.0, and track existing support tickets. Thanks again!

    If you’re happy with this integration, please consider leaving a 5-star review. Your feedback helps other WooCommerce customers find this integration and helps support future development.

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

You must be logged in to reply to this topic.