Your software
My Mautic version is: 4.3.1
My PHP version is: 7.4.30
My Database type and version is: 10.4.24-MariaDB
Your problem
My problem is: Won’t update or rebuild segments
These errors are showing in the log:
SELECT count(leadIdPrimary) count, max(leadIdPrimary) maxId, min(leadIdPrimary) minId FROM (SELECT DISTINCT l.id as leadIdPrimary FROM leads l WHERE (l.id IN (SELECT pars.lead_id FROM lead_tags_xref pars WHERE pars.tag_id IN ())) AND (l.id NOT IN (SELECT part.lead_id FROM lead_lists_leads part WHERE part.leadlist_id = ?))) sss’ with params [18]: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘))) AND (l.id NOT IN (SELECT part.lead_id FROM lead_lists_leads part WHERE pa…’ at line 1 (uncaught exception) at /home/*/public_html/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 98 while running console command mautic:segments:update
[] {“hostname”:".com",“pid”:2054728}
Steps I have tried to fix the problem:
Was trying to find where to turn emulation off but can’t find out how to do this.
Maybe someone has an idea how to fix the problem column. look like a missing " ’ " tick or something like this…