Running cron doesn't send anything but displays a message :

warning: Parameter 1 to theme_simplenews_digest_format_newsletter() expected to be a reference, value given in /var/www/cs/includes/theme.inc on line 656.

Drupal 6.20 - PHP 5.3

Comments

ytokan’s picture

Hi i have the same problem with pressflow (drupal 6.20) and php 5.3.XX

Simplenews 6.x-1.3 and Simplenews Digest 6.x-1.x-dev (2011-févr.-25)

I modify simplenews_digest.module

Line 487
//function theme_simplenews_digest_format_newsletter(&$newsletter) {
function theme_simplenews_digest_format_newsletter($newsletter) {

//and the function
simplenews_digest_inject_node

//$node->s_format = variable_get('simplenews_digest_format', 'plain');
//$node->priority = 0;
//$node->receipt = 0;
$node->simplenews = array();
$node->simplenews['send'] = 'SIMPLENEWS_COMMAND_SEND_NOW'; // Necessary to send out the newsletter without further user interaction.
$node->simplenews['s_format'] = variable_get('simplenews_digest_format', 'plain');
$node->simplenews['priority'] = 0;
$node->simplenews['receipt'] = 0;

And now it's works

G

eL’s picture

same problem here, normal Drupal 6 and PHP 5.3.3

for now, just removing & from theme_simplenews_digest_format_newsletter(&$newsletter)

but I am not sure about rest of your changes...