Tuesday 30 December 2008 2:43:42 am
Hello everybody, I have nearly the same problem like Laurent when I am running the cronjob (php runcronjobs.php -s send_newsletter). I can send previews of my personnalized newsletters but when I trying to send by using the cronjob, this error message appears :
Archiving newsletter: 18 New "Newsletter issue" newsletter.
PHP Fatal error: Call to a member function attribute() on a non-object in /home/mysite/public_html/extension/eznewsletter/classes/eznewsletter.php on line 583
It is corresponding to :
$newsletter_type = eZNewsletterType::fetch( $newsletterTypeID );
echo $newsletterTypeID; //a line I add to see the ID and It works
$send_date_modifier = $newsletter_type->attribute( 'send_date_modifier' );
$pretext = $newsletter_type->attribute('pretext');
$posttext = $newsletter_type->attribute('posttext');
If someone have some idea or can help me, it would be helpful.
Thanks a lot. Roland
|