• Resolved nanadhdie

    (@nahdie)


    Hi there,

    The ActionScheduler requests cwg_sync_instock_data doesn’t run when starting server side crons.
    There isn’t a third party inventory, we just use WooCommerce stock function.

    How can we make it work proparly for server side cron jobs?

    Plugin works great! Thank you!

    P.S. I was forced to check the box concerning ‘affiliated with WP Engine’ during login, which is a violation of GDPR. I hereby state that I neither agree nor disagree concerning the checkbox-issue.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support CodeWooGeek Support

    (@codewoogeeksupport)

    Hello there,

    Good day!

    Thank you for your kind words about our plugin! We’re glad to hear it’s working well for you.

    Regarding the issue, here are the steps to resolve it:

    Steps to Resolve:

    • Ensure wp-cron is Disabled in wp-config.php:
      Since you’re using server-side cron jobs, make sure that WordPress’s default wp-cron is disabled by adding the following line to your wp-config.php file:
      define('DISABLE_WP_CRON', true);
    • Check Server-Side Cron Job Setup:
      Verify that your server-side cron job is correctly configured to run the wp-cron.php script. It should look something like this:
      wget -q -O - "https://yourdomain.com/wp-cron.php?doing_wp_cron" > /dev/null 2>&1

    Ensure it’s running at regular intervals (every 5-10 minutes) to trigger background tasks efficiently.

    • Manually Trigger cwg_sync_instock_data:
      If the cwg_sync_instock_data action is not running properly, you can try manually triggering it. To do this, install the WP Crontrol plugin to view and manage scheduled tasks:
      ? Go to Tools > Cron Events and find the cwg_sync_instock_data event.
      ? Check the status of this action and try manually running it to see if it executes correctly.
    • Check ActionScheduler Logs:
      WooCommerce uses ActionScheduler to handle background processes. To review the status of these jobs: ? Go to WooCommerce > Status > Scheduled Actions.
      ? Filter the list by cwg_sync_instock_data.
      ? Check if the action is scheduled, pending, or failed.
      ? If it’s stuck, retry it manually and check the logs for any errors.
    • Increase Server Cron Frequency:
      Sometimes server cron jobs run at longer intervals, which might cause delays in ActionScheduler tasks. Ensure your server-side cron job is running frequently enough (e.g., every 5 minutes):
      */5 * * * * wget -q -O - "https://yourdomain.com/wp-cron.php?doing_wp_cron" > /dev/null 2>&1
    • Check for Conflicting Plugins:
      Ensure no other plugins are conflicting with the ActionScheduler. Sometimes caching plugins or security plugins may block or delay cron events.

    Thanks!

    Thread Starter nanadhdie

    (@nahdie)

    Hi support,

    Thank you for the instructions! Tried them all but no success. I asked a friend who’s a WordPress developer and he helped me out. It seems the cron jobs don’t work server side with wp cli (i’m just a messenger, not sure what this means)

    Anyway, working on it, but nothing to do with the plugin! Thanks a lot again <3.

    Plugin Support CodeWooGeek Support

    (@codewoogeeksupport)

    Hello there,

    We assume your reported issue has been resolved.

    Please feel free to contact us anytime if you need further assistance in the future.

    Thanks.

    Thread Starter nanadhdie

    (@nahdie)

    Hi there, I am receiving loads of spam because of my stupido action about sharing the clean url. I can’t edit it, change it or delete it. Do you have any rights to do so?

    Plugin Support CodeWooGeek Support

    (@codewoogeeksupport)

    Hello there,

    Thank you for reaching out.

    Unfortunately, we don’t have access to edit support tickets once they’ve been submitted. We only have the ability to close or mark tickets as resolved.

    However, we recommend checking if there’s an option within the support platform to report or request a change. This option may allow you to explain the situation, and the forum moderator or support team can review it and take action as needed.

    Thanks.

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