pensareweb
New Member
I just updated to version 1.8.1.: when a campaign is sent to more than one list, the merge fails with this error Unable to acquire lock!
how can i solve?
how can i solve?
2019/09/18 19:27:04 [error] [system.db.CDbCommand] [x.x.x.x] CDbCommand::execute() failed: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`mailwizz_prod`.`mw_list_company`, CONSTRAINT `fk_customer_company_country100` FOREIGN KEY (`country_id`) REFERENCES `mw_country` (`country_id`) ON DELETE CASCADE ON UPDATE NO ACTION). The SQL statement executed was: INSERT INTO `mw_list_company` (`list_id`, `type_id`, `country_id`, `zone_id`, `name`, `website`, `address_1`, `address_2`, `zone_name`, `city`, `zip_code`, `phone`, `address_format`) VALUES (:yp0, :yp1, :yp2, :yp3, :yp4, :yp5, :yp6, :yp7, :yp8, :yp9, :yp10, :yp11, :yp12).
Were you able to solve this? I am getting the same error (using Redis) when trying to send campaigns to multiple lists, following the steps suggested doesn't help. If I turn off Redis for mutexes I get this error message instead: "Unable to copy the campaign initial list."
if (!Yii::app()->mutex->acquire($lockName, 30)) {
if (Yii::app()->request->isAjaxRequest) {
return $this->renderJson([
'finished' => true,
'progress_text' => Yii::t('campaigns', 'Unable to acquire lock!'),
]);
}
Yii::app()->notify->addError(Yii::t('campaigns', 'Unable to acquire lock!'));
return $this->redirect(array('campaigns/confirm', 'campaign_uid' => $campaign_uid));
}