我正尝试发送新闻通讯,它以前曾起作用,但今天我才开始出现错误。
致命错误:未被捕获的多维数据集\异常:SQLSTATE [42000]:语法错误或访问冲突:1064您的SQL语法有错误;请参见参考。检查与您的MySQL服务器版本相对应的手册以获取正确的语法,以在第3行的[email FROM ppb_newsletters_subscribers]附近使用[查询]:INSERT INTO ppb_newsletters_recipients(newsletter_id,email)SELECT,email FROM ppb_newsletters_subscribers在/ home / nbauctions中的1 public_html / library / Cube / Db / Statement / Pdo.php:227堆栈跟踪:#0 /home/nbauctions/public_html/library/Cube/Db/Adapter/AbstractAdapter.php(180):Cube \ Db \ Statement \ Pdo- > execute(Array)#1 /home/nbauctions/public_html/library/Cube/Db/Adapter/PDO/Mysql.php(226):Cube \ Db \ Adapter \ AbstractAdapter-> query('INSERT INTO ppb ...' ,Array)#2 /home/nbauctions/public_html/library/Ppb/Service/Newsletters.php(140):Cube \ Db \ Adapter \ PDO \ Mysql-> query('INSERT INTO ppb ...')#3 / 227行上/home/nbauctions/public_html/library/Cube/Db/Statement/Pdo.php中的home / nbauctions / public_html / m
开始发送时事通讯时,它会显示正在发送,但接收者的数量却在不断增加(甚至超过已注册的人数)。我单击“取消发送”,这就是我收到错误消息的时间。
我尝试查看代码以在线上找到问题,但看不到任何错误。最近几天我们唯一要做的就是设置Mailgun
public function execute(array $params = null)
{
try {
return $this->_stmt->execute($params);
} catch (\PDOException $e) {
$errorMessage = $e->getMessage() . ' [Query]: ' . $this->_stmt->queryString;
throw new Exception($errorMessage, $e->getCode());
}
}