mautic / mautic

Mautic: Open Source Marketing Automation Software.
https://www.mautic.org
Other
7.25k stars 2.6k forks source link

Campaigns on new segments do not run... #4688

Closed Schokolader closed 5 years ago

Schokolader commented 7 years ago

What type of report is this:

Q A
Bug report? Y
Feature request?
Enhancement?

Description:

Contacts added to segments but the campaigns for that segments do not start.

Using honeypot method: https://www.mautic.org/community-blog/eliminate-spambots-using-the-honeypot-method/

This topic "https://github.com/mautic/mautic/issues/4525" was closed, but it's not solved...

If a bug:

Q A
Mautic version 2.9.2
PHP version 7.0

Steps to reproduce:

  1. Create a form and add it to your website
  2. Create a campaign that modifies the segments of a contact
  3. Create a campaign for the new segments contacts for sending mails
  4. Fill out the form on your website
  5. You see that the contact is in your "pending" segment but the email never went out.

Log errors:

[2017-08-18 11:06:15] mautic.CRITICAL: Uncaught PHP Exception Doctrine\ORM\ORMInvalidArgumentException: "A new entity was found through the relationship 'Mautic\CampaignBundle\Entity\LeadEventLog#lead' that was not configured to cascade persist operations for entity: Mautic\LeadBundle\Entity\Lead with ID #419. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"})." at /home/meditati/public_html/info/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 92 {"exception":"[object] (Doctrine\ORM\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'Mautic\CampaignBundle\Entity\LeadEventLog#lead' that was not configured to cascade persist operations for entity: Mautic\LeadBundle\Entity\Lead with ID #419. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). at /home/meditati/public_html/info/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)"} []

Schokolader commented 7 years ago

somehow my campaigns are running at the moment, but still there is this error in the log file above. I just changed some cronjobs. And there is a problem if mails are sent with campaigns. But I guess it's better to write a new issues for that.

escopecz commented 6 years ago

Please test with latest version. Campaigns were refactored in 2.14.0