censusbv / DitsNews

MODx Revolution Newsletter component
10 stars 5 forks source link

cron.php gives 500 internal server error #22

Closed okyn closed 12 years ago

okyn commented 12 years ago

Hello,

My cron.php gives a 500 internal server error but when I comment out $ditsnews->processQueue(); then it doesn't give the error but it doesn't send the mails ofcourse.

So it must be something to do with processQueue function

okyn commented 12 years ago

for some reason my server doesn't like dom to look up the url and this gave me a 500 internal server error. I commented this line out: $site_url = $dom->getElementsByTagName('base')->item(0)->getAttribute('href');

now using: $site_url = $this->modx->getOption('site_url');
that was in the class and removed the if statement of it also.