Execute cron jobs on the server
Hello,
I can't make the cron jobs working.
I've read the documentation here : https://docs.contao.org/books/cookbo...in-Contao.html
What I've done :
1. unchecked in the system configuration page the checkbox so the cron.php can be executed by a real cron job
2. create on my server a cron job like that : * * * * * wget -O /dev/null -q http://example.com/system/cron/cron.php
3. in the config.php file of my extension; I've added the classe :
$GLOBALS['TL_CRON'] = array
(
'monthly' => array(),
'weekly' => array(),
'daily' => array(),
'hourly' => array(),
'minutely' => array( array('STBRappels', 'envoyerRappels'))
);
That doesn't work. I only receive a mail from my server so I know that the cron job is fired.
But if I execute cron.php manually (as explained in the doc), it works.
Thanks a lot for your help.
Olivier