Scheduled action continues to fail

#759676
  • Resolved Kerry Houston
    Rank Math free

    Hello, I have the following scheduled action that continues to fail. rank_math/content-ai/update_plan

    I have cron schedules running from my host and all others appear to be doing their job. I have also noticed my AI credits have not updated since this scheduled action hasn’t been running.

    The task appears in Cron Events but not in Scheduled Tasks

    I have tried running it manually in Cron Events but a duplicate task appears that says it’s 54 years past it’s scheduled date. Obviously something is going wonky.

    I’ve attached a temporary login to my website.

    Any insights appreciated.
    Kerry

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    Thank you for reaching out to us regarding the issue with the scheduled action rank_math/content-ai/update_plan failing and affecting your AI credits update.

    Based on the information provided, it seems like there might be an issue with the execution of the scheduled action. To troubleshoot this, you can try the following steps:

    1. Check the status of the scheduled actions under WordPress Dashboard → Tools → Scheduled Actions → Pending to see if the WP-cron has run the actions as scheduled. If you’re unable to find the scheduled actions in your WordPress dashboard, you can use the following URL to reach the page:
      https://yourdomain.com/wp-admin/tools.php?page=action-scheduler&status=pending

    2. From the pending actions, look for any Rank Math analytics actions and manually run them to fetch the data. The Rank Math analytics hook goes by the name rank_math/analytics/data_fetch.

    3. Once you run the data fetch manually, you should see a success notice indicating that Rank Math has executed the action to start fetching the data.

    If these steps do not resolve the issue, please assign this ticket to a human agent for further investigation and assistance.

    Thank you for your cooperation, and we appreciate your patience while we work on resolving this issue for you.

    Best regards.

    Hello,

    Thank you for your query, and we are so sorry about the trouble this must have caused.

    This issue is often associated with WordPress’s cron system and your hosting environment.

    WordPress uses a scheduling system called WP-Cron to handle time-based tasks like these.

    If there’s an issue with WP-Cron or it’s not functioning correctly on your hosting environment, it can lead to problems such as this.

    We recommend reaching out to your hosting provider for assistance. They can check if there are any issues with WP-Cron on their end or any server configurations affecting WordPress’s ability to check sync data.

    In a managed WordPress environment where cron jobs are disabled by default, triggering immediate actions like imports can be challenging.

    However, some managed hosts offer tools or dashboard options to manually run cron jobs.

    You might want to check with your host if such a feature is available.

    Alternatively, you can temporarily enable WP-Cron by editing your wp-config.php file or using a plugin that allows you to manage cron jobs.

    As you can see that Rank Math and other WordPress plugins can schedule a variety of cron jobs throughout the day.

    While these jobs are integral for maintaining site functionality, I understand your concern about them potentially impacting your site’s performance during its usage at times for refreshing the analytics data.

    A solution to this issue is to configure a server-side cron job, allowing you to have control over the timeframe at which these tasks are executed.

    Here’s how you can achieve this:

    Disable WP-Cron:

    You can stop the WP-Cron system by adding the following line to your wp-config.php file:

    define('DISABLE_WP_CRON', true);

    This will disable the default WordPress cron system.

    Set up a Server-Side Cron Job:

    You can then set up a server-side cron job through your hosting control panel (like cPanel).

    This will allow you to define when the cron jobs should run. You can then set the specific times you want the cron job to run.

    We have noticed, one of our users was able to successfully manage this via their cPanel: https://support.rankmath.com/ticket/analytics-overview/?view=all#post-189423

    Also you can refer to this blog “How to Disable WP-Cron (wp-cron.php) for Faster Performance” here : https://kinsta.com/knowledgebase/disable-wp-cron/

    Please remember that making these changes requires a certain level of technical knowledge and could have unexpected effects if not done correctly, so proceed with caution or ask for help from a developer if needed.

    We hope that helps, and please don’t hesitate to get in touch if you have any other questions.

    Thank you.

    This has already been done from having several other issues with Rank Math’s scheduled tasks. My cron jobs run directly from my host. You can see that reflected in Cron Events via WP Crontrol plugin on my site.

    I’ve already given my login details for temporary login as I mentioned all of this in my initial query.

    Please let me know when you’ve looked at my site.
    Thanks
    Kerry

    Hello,

    This is the expected behavior since you don’t have any Content AI subscription on your account so there’s no need to run the action to update the credits and the plan.

    This will only run if you have a Content AI subscription to update the credit count and monitor the plan.

    Don’t hesitate to get in touch if you have any other questions.

    Hi,

    Thanks for the speedy reply 🙂

    Even with the free version we get 750 ai credits and mine haven’t been update to their full value again. They were supposed to run on January 29, but still nothing. I’m wondering if this task not running is causing the issue?

    Image showing credits  not updated

    Please let me know how to fix this 🙂
    Thanks
    Kerry

    Hello,

    Please ensure you have updated to the latest version of our plugin which Rank Math Free v1.0.214 according to the Rank Math changelog https://rankmath.com/changelog,

    Then follow the guide below to restore the credit on your website:
    https://rankmath.com/kb/how-to-restore-missing-content-ai-credits/

    However, if the issue persists, please share a screenshot of the pop-up notification with us by using a tool like https://imgur.com/upload so that we can check the issue further for you.

    Hope this helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Hi again,

    Rank math is updated to current version.

    I use the free version of rank math therefore I don’t buy ai credits, we are allotted 750 ai credits per month on this version.

    My credits have never updated. They were supposed to have updated starting January 29, 2024 and they still fail to update. See image attached to this reply.

    I run Cron Jobs from my host as WP Cron stopped running scheduled tasks when Rank Math was first installed. All task other than the one in question from the first message in this thread runs (rank_math/content-ai/update_plan)

    I have given access for you to go and look at my site from the start so please feel free to access it via the sensitive data.

    Thank you
    Kerry

    Hello,

    Please check now. You should be able to use your free Content AI credits.

    Hi,

    Thanks for having a look but still the credits haven’t been updated. Here’s a couple screen shots for ya. Two showing the credits still at what they were when originally awaiting their refresh date of January 29th and one showing that the scheduled task (rank_math/content-ai/update_plan) is no longer overdue, but now looks to be scheduled for a week and 6 days from now. Should I try running it manually to see?

    https://imgur.com/5xzpzVq
    https://imgur.com/OBsZeOw
    https://imgur.com/wWOk2Cr

    Look forward to hearing from you again,
    Kerry

    Hello,

    We just reset it manually for you. Please check.

    I see them! They’re all there now. I also see it’s set to renew March 29th, so fingers crossed it continues to update.

    Thank you so much for your help!
    Kerry

    Hello,

    We are glad that it works now.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Scheduled action continues to fail’ is closed to new replies.