This question has been answered by omegerard. See the first response.
What happens if you try to load con.php directly in browser:
<siteurl>/assets/components/goodnews/crown.php
Does it sein mails then?</siteurl>
What happens if you try to load con.php directly in browser:
<siteurl>/assets/components/goodnews/crown.php
Does it sein mails then?</siteurl>
$mailingsToSend = $modx->goodnewsmailing->getMailingsToSend();
What happens if you try to load con.php directly in browser:
<siteurl>/assets/components/goodnews/crown.php
Does it sein mails then?</siteurl>
$modx->initialize('mgr');
$modx->initialize('web');
In my case (modx 2.6.5 / goodnews 1.5.1-pl2) cron.php appears to behave differently depending on whether it is run from the address bar or from cron.
Line 94 makes the difference
$mailingsToSend = $modx->goodnewsmailing->getMailingsToSend();
When run from cron, the array is empty even if there is a mailing to send.
If I run the cron command in the address bar, the array is not empty.
Why the difference?
Quote from: gadgetto at Nov 26, 2018, 08:21 PMWhat happens if you try to load con.php directly in browser:
<siteurl>/assets/components/goodnews/crown.php
Does it sein mails then?</siteurl>