Cron job for advanced auto updates

I had to recreate a new MainWP dashboard. The last one had a Cron job setup in my hosting which forced advanced auto updates to run. I’ve copied this across to the new domain but they are not running. I can’t see info or help articles about where this could be going wrong?

This is my Cron URL
https://dashboarddomain.com//wp-content/plugins/mainwp/cron/updatescheck.php

Thanks for any help or direction to more details helped article.

I’m not sure, but I see a double / in the url, so first thing to try is to replace it with a single one.

Hey @ShortTech

As @josklever suggested, please check if that double // is just a typo here or also in the server settings.

Have you added any security measures on the new domain or server that might be blocking the Cron URL? For example, firewall rules, security plugins, or settings in .htaccess ?

Also, are any other scheduled actions running successfully, or does this issue seem specific to the advanced automatic updates?

You might want to double-check your configuration by following this guide: How to Disable WP-Cron.

Hi, thanks for the feedback. I just copied what I had on the old site, so I guess that never was working properly after all. Maybe even the cause of previous issues. I think I need to take a step back and figure out what I’m trying to achieve. I ‘thought’ that the automatic MainWP tasks did not run for some reason, so I had previously setup a Cron to force the auto updates of trusted plugins, but now i am questioning why I thought that. Can you tell me where I would be able to see if MainWP tasks are running successfully in the background? I think that’s whree I need to start and I can’t seem to find help articles about this. I’ve read the article about disabling the mainwp jobs and replacing them with cron jobs.

Thanks guys

1 Like

Sure, you can see the Cron Jobs schedules and Last Run information on the Cron Schedules page: your-mainwp-dashboard.com/wp-admin/admin.php?page=ServerInformationCron

Using the WP Cron would be simpler compared to setting up server-side cron jobs.
However, if there is no network activity on the website, such as you logging into the Dashboard site, WP-Cron will not trigger, and the cron jobs will not run.

So if you want to make sure that WP Cron jobs are regularly triggered on your MainWP Dashboard, you can add your Dashboard site as a monitor to an external uptime service such as Uptime Robot.
The Uptime Robot will ping your dashboard site regularly, which will provide network activity and make sure that all scheduled events are occurring.

Hi, Just looking at this now… The jobs are all running. The Check for Available updates is running reglarly it seems but I don’t believe the trusted update are updating. Is there a way to check something else?

Hi @ShortTech

If everything is configured as instructed in our KB, and the auto-updates are still not being performed, please open a private Help Desk ticket so we can collect some additional information & investigate further.

And please refer to this Managers thread by its URL in the ticket.