Cron jobs
Two JoomFunding tasks run from a cron job on your server: payment reminders and update emails. The installer puts the script in cli/joomfunding_cron.php of your site.
The script runs only on the command line. There is no web address to call it from a browser or an online cron service. Your hosting must offer cron jobs that run PHP; most hosting panels have a Cron Jobs page.
Intentions Notifier
When a logged-in user starts a payment but does not finish it, JoomFunding keeps an intention. JoomFunding CRON - Intentions Notifier emails these users so they can finish the payment, and then deletes the intention.
- Enable the plugin and set:
- Period in days: how old an intention must be before the reminder goes out. Default 7.
- EMail: the template, for example "[to BACKER] [via CRON] Intention mail to users".
- E-Mail Mode: HTML or Plain.
- Domain: the address of your site, such as
https://www.example.com. The script needs it to build links.
- Add a cron job, for example once a day:
php /path/to/your/site/cli/joomfunding_cron.php --notify --context=intentions
Updates Notifier
JoomFunding CRON - Updates Notifier emails the followers of a campaign the updates the owner posted, and marks those updates as sent.
- Enable the plugin and set:
- Period in days: only updates from this period are sent.
- Content length: cut each update to this length. Empty sends the full text.
- EMail: for example "[to BACKER] [via CRON] when new updates are available".
- E-Mail Mode and Domain as above.
- Add a cron job, for example once a day:
php /path/to/your/site/cli/joomfunding_cron.php --notify --context=updates
In 1.1.9 this notifier has a known problem: from the second follower on, every follower gets the name and update list of the first follower. Test it with two accounts before you turn it on for real followers. Until it is fixed, you can post important news to backers yourself, for example with the AcyMailing import.
Find the PHP path
Use the full path to PHP and to your site. Your hosting panel shows the PHP path, often /usr/bin/php or /usr/local/bin/php. The site path is the folder that holds configuration.php.
Errors
The script prints what it did and how long it took. Errors are also written to error_cron.txt in your Joomla logs folder.