Your software
My Mautic version is: 2.16.2
My PHP version is: 7.2
Your problem
I create a segment that should include all the contacts who have open a specific mail.
However, even if it should have 104 contacts (I can see this number in the statistic of the mail), it stays empty -> 0 contact.
When I manually enter “php -q console mautic:segments:update” in the console, I get the following error messages:
[Doctrine\DBAL\Exception\InvalidFieldNameException]
An exception occurred while executing 'SELECT count(leadIdPrimary) count, max(leadIdPrimary) maxId, min(leadIdPrimary) minId F
ROM (SELECT DISTINCT l.id as leadIdPrimary, iQbuzmtl.lead_id AS iQbuzmtl_lead_id FROM maleads l LEFT JOIN malead_lists_leads i
Qbuzmtl ON iQbuzmtl.lead_id = l.id and (iQbuzmtl.leadlist_id = 112) WHERE (EXISTS(SELECT NULL FROM maemail_stats PzuwTRFM WHER
E (PzuwTRFM.lead_id = l.id) AND (email_stats.is_read = 1) AND (PzuwTRFM.email_id IN (?)))) AND (iQbuzmtl.lead_id IS NULL)) sss
’ with params [88]:
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘email_stats.is_read’ in ‘where clause’
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘email_stats.is_read’ in ‘where clause’
[PDOException]
SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘email_stats.is_read’ in ‘where clause’
Any idea what happens? Everything else is working fine with this mautic installation.
Thanks for your support.
Claude