• Resolved namehidden

    (@namehidden)


    I recently signed up for a basic hosting account to explore building a basic webstore. I installed WordPress and also a few of themes and plugins. After that, I keep getting this message: Action Scheduler:?266?past-due actions?found; something may be wrong.?Read documentation ?

    I attempted to run a few of them. They were run successfully with one failure. I’m not sure if I should run each and every one, and there must be a better way to run all these through the UI at once or by batch instead of me manually running them all.

    I then delved deeper into the issue and found that the problem is caused by this error:

    There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron events on your site may not work. The problem was: Unexpected HTTP response code: 403

    According to the documentation, this means an access control restriction such as BasicAuth, a firewall, a security or privacy plugin, some form of password protection, or an?.htaccess?rule is preventing your server from accessing?wp-cron.php. But, I have not edited the .htacess file so I dont think thats the issue. I also dont think its my plugins:

    Blocksy Companion: by CreativeThemes – 2.0.53
    Elementor: by Elementor.com – 3.21.8
    Image Optimizer by Elementor – Compress, Resize and Optimize Images: by Elementor.com – 1.3.0
    Maintenance: by WebFactory Ltd – 4.12
    WooCommerce: by Automattic – 8.9.3
    WPForms Lite: by WPForms – 1.8.9.1

    However, I found a thread here which may resolve my issue. But where do I insert these 2 lines as mentioned by @supermichalpol in wp-cron.php:

    wget -q -O –?https://[website_address]/wp-cron.php?doing_wp_cron?>/dev/null 2>&1; define(‘DISABLE_WP_CRON’, true);
    I would be most grateful if someone on the forum could let me know where to insert these 2 lines. Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Barry

    (@barryhughes-1)

    I would be most grateful if someone on the forum could let me know where to insert these 2 lines.

    Assuming you are hosted on a Linux system or similar, the first line (the wget command) would usually be added to crontab. If you use a typical shared hosting package with a control panel, you may be able to locate a Cron tool that helps you to do this.

    Lots of web hosts will provide additional information in their knowledge bases to guide you.

    define(‘DISABLE_WP_CRON’, true);

    This line would be added to your site’s wp-config.php file.

    Plugin Author Barry

    (@barryhughes-1)

    …Forums being forums, various characters are sometimes transformed automatically—and that can cause problems in some cases. So, let me just clarify that the line you add to wp-config.php should look like this:

    define( 'DISABLE_WP_CRON', true);

    (The critical difference is that you need regular straight quotes, not fancy curly ones.)

    Thread Starter namehidden

    (@namehidden)

    Hi @barryhughes-1. Thank you for your reply. I have inserted the line at the end of the wp-config.php file, and trying visiting the website URL (https://example.com/wp-cron.php). So when visited, it is just a blank page. I understand this means the server is blocking the automatic execution of WP-Cron, and I will need to set up a real cron job or run the cron jobs manually.

    Since I am just using a free hosting account (shared hosting), I may not have access to Crontab. So I will need to run Cron jobs manually, how does one do that? I have installed WP-Control plugin in my WordPress. Is there where I can run the jobs manually?

    • This reply was modified 5 months, 1 week ago by namehidden.
    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @namehidden

    To manually run cron jobs, you can indeed use the WP-Control plugin which you’ve already installed. Here’s how you can do it:

    1. Navigate to your WordPress dashboard.
    2. Go to “Tools” and then click on “Cron Events”.
    3. Here, you’ll see a list of all the scheduled tasks. You can run them manually by clicking on the “Run Now” link next to each task.

    However, manually running cron jobs can be tedious if you have a lot of them. So, it would be best to find a permanent solution to the WP-Cron issue.

    Since you’re on shared hosting, you might want to contact your hosting provider and ask them to check if any server-level restrictions might be blocking WP-Cron.

    I hope this helps! If you have any other questions, feel free to ask.

    Thread Starter namehidden

    (@namehidden)

    Hi @shameemreza. Thank you for your reply. Looks like I have to do this manually for now.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @namehidden,

    Sounds like a plan. Please try out the aforementioned steps and update us on how it goes.

    Should you need further assistance, please feel free to reach out.

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @namehidden

    I’m marking this topic as “resolved” due to recent inactivity. If more assistance is needed, feel free to post back here or open a new topic.

    Thanks!

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