Hallo, (bitte nicht jemand speziell ansprechen)
ich weiß das mail to date eigentlich hier nicht das Thema ist und ob wenn überhaupt das Thema hier in der richtigen Kategorie ist.
Da ich aber völliger Laie bin hoffe ich trotzdem auf eine Antwort.
Ich habe Shop to date 8 installiert - es funktioniert.
Nun habe ich mail to date 5 installiert, doch da treten Probleme auf die wahrscheinlich mit der PHP Version zusammenhängen!?
1. Es werden keine Mails versendet, auch keine Testmail - trotz mehrer Versuche mit diversen Mailadressen und Einstellungen.
2. Bei Empfäner/ Statistik wird folgende Fehlermeldung angezeigt: ( Siehe weiter unten)
3. Ob noch mehr Fehlermeldungen auftreten habe ich noch nicht herausgefunden.
Es wäre wirklich sehr nett wenn mir jemand bei dem Problem helfen könnte.
Herzlichen Dank im Voraus an ALLE.........
Jörg
PHP Error
Only variables should be passed by reference
/homepages/5/d451357455/htdocs/newsletter/protected/models/Group.php(108)
096 097 public function getActiveRecipientCount() { 098 $sql = "SELECT COUNT(*) FROM {{recipient_group_connector}} AS t1 LEFT JOIN {{recipient}} AS t2 ON t2.idrecipient = t1.recipient_idrecipient WHERE t1.group_idgroup=".$this->idgroup." AND t2.status=0"; 099 $rows = self::model()->dbConnection->createCommand($sql)->queryScalar(); 100 return $rows; 101 } 102 103 // find recipients count on period 104 public function Stat1($start_date, $end_date, $status) { 105 $sql = "SELECT COUNT(*) FROM {{recipient_group_connector}} AS t1 LEFT JOIN {{recipient}} AS t2 ON t2.idrecipient = t1.recipient_idrecipient WHERE t1.group_idgroup=".$this->idgroup." AND t2.status=:status AND registered>=:start_date AND registered<:end_date"; 106 $command = self::model()->dbConnection->createCommand($sql); 107 $command = $command->bindParam(":status", $status); 108 $command = $command->bindParam(":start_date", date('Y-m-d', $start_date)); 109 $command = $command->bindParam(":end_date", date('Y-m-d', $end_date)); 110 return $command->queryScalar(); 111 } 112 113 // count letters 114 public function Stat2($start_date, $end_date) { 115 116 $sql = "SELECT SUM(t1.amountrecipients) FROM {{sendjob}} AS t1 LEFT JOIN {{sendjob_group_connector}} AS t2 ON t2.sendjob_idsendjob = t1.idsendjob WHERE (t1.type=0 OR t1.type=2) AND (start>=:start_date AND start<=:end_date) AND t2.group_idgroup=:group_id"; 117 $command = self::model()->dbConnection->createCommand($sql); 118 $command = $command->bindParam(":group_id", $this->primarykey); 119 $command = $command->bindParam(":start_date", date('Y-m-d', $start_date)); 120 $command = $command->bindParam(":end_date", date('Y-m-d', $end_date));
Stack Trace
#046 'value'=>'$data->Stat2('.$start_date.', '.$end_date.')', 47 'filter'=>false, 48 'htmlOptions'=>array('width'=>'100px'), 49 ), 50 ), 51 )); 52 53 ?>
18 $start_date = (checkdate((int)$m, (int)$d, (int)$y))?mktime(0,0,0, $m, $d, $y):mktime(0,0,0,date('m')-1, date('d'), date('Y')); 19 list($d,$m,$y) = preg_split('/[^0-9]+/', trim($_POST['end_date'])); 20 $end_date = (checkdate((int)$m, (int)$d, (int)$y))?mktime(0,0,0, $m, $d, $y):time(); 21 22 $data = $model->stat_search(); 23 $this->render('statistic',array('start_date'=>$start_date, 'end_date'=>$end_date, 'data'=>$data)); 24 } 25 26 public function actionCreate() { 27 $model=new Recipient; 28 if(isset($_POST['Recipient'])) {