Scheduled tasks
What it does
Section titled “What it does”| Area | What runs |
|---|---|
| Invoices | Generates recurring invoices when they fall due, and sends overdue reminders. |
| Subscriptions | Renews subscriptions and takes the payment for the next period. |
| Sends anything queued rather than sent immediately, which is how large newsletter runs are paced. | |
| Tickets | Collects replies from the mailbox you configured and files them against the right ticket. |
| Newsletters | Works through a scheduled send, and processes bounces and unsubscribes. |
| Jobs, customers, suppliers | Scheduled reminders and notifications. |
Finding the command
Section titled “Finding the command”The application works out the exact command for your installation and shows it on a screen of its own. There is no entry for it in the Settings menu, so there are two ways to reach it:
- If the task has not run in the last day, the dashboard shows an alert reading CRON Job Not Setup. Click it — on a new installation this is how you will find the screen.
- Otherwise go to it directly, by adding
?m=config&p=config_cronto your site address.
That screen shows two things, both filled in with the real paths for your installation:
- A command line, for hosts that let you schedule a command.
- A web address, for hosts that only let you schedule a URL fetch.
Use whichever your hosting supports. The command line version is preferable where you have the choice — it is not reachable from the internet and it is not subject to a web server’s time limit.
Setting it up with a command
Section titled “Setting it up with a command”The screen shows something close to this, with your real path:
php /home/youraccount/public_html/cron.phpIn cPanel, Plesk or DirectAdmin, find Cron Jobs and add a new one with that command, running every 15 minutes. In the five-field form that is:
| Minute | Hour | Day of month | Month | Day of week |
|---|---|---|---|---|
*/15 | * | * | * | * |
If your control panel offers a plain crontab line instead:
*/15 * * * * php /home/youraccount/public_html/cron.phpSetting it up with a web address
Section titled “Setting it up with a web address”If your host only offers scheduled URL fetches, or you want to use an external cron service, use the full address shown on the Cron screen. It looks like this:
https://example.com/cron.php?hash=…a long string…Schedule a fetch of that address every 15 minutes. Any free cron service will do it, as will your host’s own scheduler.
How often
Section titled “How often”Every 15 minutes is the recommendation and suits almost everyone. Once a day is enough if all you use is recurring invoicing.
There is no point going below every three minutes: the task refuses to do any work if it ran less than three minutes ago, so more frequent runs exit immediately without doing anything.
Checking it is working
Section titled “Checking it is working”If the task has not run in the last day, the dashboard shows a CRON Job Not Setup alert telling you when it last ran, or Never if it never has. No alert means it ran within the last day, which is the result you want.
To test it by hand, open the web address version in a browser. A working run returns a page with little or nothing on it — that is correct, it is not meant to be read. If you see failed - please check cron.php link in settings, the hash in the address is wrong; copy it again from the Cron screen.
If you want to watch what it does, turn on cron debugging in Settings and run it again. It then prints each plugin as it starts and finishes, which tells you where it is stopping.
Common problems
Section titled “Common problems”| Symptom | Usually means |
|---|---|
| Last run says Never | The cron entry was never created, or the command path is wrong. |
| It runs but nothing happens | The command is calling an older PHP than 8.2. Use a version-specific PHP binary. |
failed - please check cron.php link in settings | Wrong or missing hash in the web address. |
| Cron emails you errors every 15 minutes | Something inside a plugin’s scheduled work is failing. Turn on cron debugging to find which, then look at that area’s settings. |
| Recurring invoices go out late | The task is only running once a day. Move it to every 15 minutes. |
| Ticket replies are not collected | The imap PHP extension is missing, or the mailbox settings are wrong. Everything else in cron still runs. |