Your software
My Mautic version is: 4.4.5
My PHP version is: 7.4.30
My Database type and version is: 10.6.9-MariaDB
Your problem
My problem is:
Issue 1: I created a segment to add Unsubscribed and bounced contacts automatically using filter as shown in image.
but my segment is not updating with those contacts at all.
Issue 2: Campaigns with contact source as segments are not working.
I did check and it works fine when there is a decision step in between but here, we don’t have any decision, I want the campaign to start as soon as someone enters the campaign which is not happening.
most of the time, I am uploading contacts from my other marketing platforms to mautic, so, I don’t yet have a decision from contact side
These errors are showing in the log:
[2023-01-05 13:28:15] mautic.ERROR: PHP Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) - in file /opt/bitnami/apache/htdocs/app/bundles/LeadBundle/Helper/CustomFieldValueHelper.php - at line 28 {“hostname”:“ip-172-26-4-11”,“pid”:658040}
[2023-01-05 13:28:15] mautic.ERROR: Symfony\Component\Debug\Exception\OutOfMemoryException: Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) - in file /opt/bitnami/apache/htdocs/app/bundles/LeadBundle/Helper/CustomFieldValueHelper.php - at line 28 {“hostname”:“ip-172-26-4-11”,“pid”:658040}
[2023-01-05 13:28:53] mautic.ERROR: PHP Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) - in file /opt/bitnami/apache/htdocs/app/bundles/LeadBundle/Helper/CustomFieldValueHelper.php - at line 28 {“hostname”:“ip-172-26-4-11”,“pid”:658047}
[2023-01-05 13:28:53] mautic.ERROR: Symfony\Component\Debug\Exception\OutOfMemoryException: Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) - in file /opt/bitnami/apache/htdocs/app/bundles/LeadBundle/Helper/CustomFieldValueHelper.php - at line 28 {“hostname”:“ip-172-26-4-11”,“pid”:658047}
[2023-01-05 13:29:34] mautic.ERROR: PHP Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) - in file /opt/bitnami/apache/htdocs/app/bundles/LeadBundle/Helper/CustomFieldValueHelper.php - at line 28 {“hostname”:“ip-172-26-4-11”,“pid”:658042}
[2023-01-05 13:29:34] mautic.ERROR: Symfony\Component\Debug\Exception\OutOfMemoryException: Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) - in file /opt/bitnami/apache/htdocs/app/bundles/LeadBundle/Helper/CustomFieldValueHelper.php - at line 28 {“hostname”:“ip-172-26-4-11”,“pid”:658042}
[2023-01-05 14:17:10] mautic.ERROR: PHP Error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 96473088 bytes) - in file /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php - at line 268 {“hostname”:“ip-172-26-4-11”,“pid”:886517}
[2023-01-05 14:17:10] mautic.NOTICE: PHP Notice - Undefined variable: inline - in file /opt/bitnami/apache/htdocs/offline.php - at line 77 {“hostname”:“ip-172-26-4-11”,“pid”:886517}
[2023-01-05 14:17:10] mautic.ERROR: Symfony\Component\Debug\Exception\OutOfMemoryException: Error: Allowed memory size of 792723456 bytes exhausted (tried to allocate 96473088 bytes) - in file /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php - at line 268 {“hostname”:“ip-172-26-4-11”,“pid”:886517}
[2023-01-05 08:47:10] mautic.WARNING: PHP Warning - session_start(): Failed to decode session object. Session has been destroyed - in file /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php - at line 156 {“file”:“”,“line”:0} {“hostname”:“ip-172-26-4-11”,“pid”:886518}
[2023-01-05 08:47:10] mautic.CRITICAL: Uncaught PHP Exception RuntimeException: “Failed to start the session.” at /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 157 {“exception”:“[object] (RuntimeException(code: 0): Failed to start the session. at /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:157)”} {“hostname”:“ip-172-26-4-11”,“pid”:886518}
[2023-01-05 08:47:10] mautic.WARNING: PHP Warning - session_start(): Failed to decode session object. Session has been destroyed - in file /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php - at line 156 {“file”:“”,“line”:0} {“hostname”:“ip-172-26-4-11”,“pid”:886520}
[2023-01-05 08:47:10] mautic.CRITICAL: Uncaught PHP Exception RuntimeException: “Failed to start the session.” at /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 157 {“exception”:“[object] (RuntimeException(code: 0): Failed to start the session. at /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:157)”} {“hostname”:“ip-172-26-4-11”,“pid”:886520}
[2023-01-05 08:47:10] mautic.WARNING: PHP Warning - session_start(): Failed to decode session object. Session has been destroyed - in file /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php - at line 156 {“file”:“”,“line”:0} {“hostname”:“ip-172-26-4-11”,“pid”:886521}
[2023-01-05 08:47:10] mautic.CRITICAL: Uncaught PHP Exception RuntimeException: “Failed to start the session.” at /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 157 {“exception”:“[object] (RuntimeException(code: 0): Failed to start the session. at /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:157)”} {“hostname”:“ip-172-26-4-11”,“pid”:886521}
[2023-01-05 08:47:10] mautic.WARNING: PHP Warning - session_start(): Failed to decode session object. Session has been destroyed - in file /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php - at line 156 {“file”:“”,“line”:0} {“hostname”:“ip-172-26-4-11”,“pid”:886522}
[2023-01-05 08:47:10] mautic.CRITICAL: Uncaught PHP Exception RuntimeException: “Failed to start the session.” at /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 157 {“exception”:“[object] (RuntimeException(code: 0): Failed to start the session. at /opt/bitnami/apache/htdocs/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:157)”} {“hostname”:“ip-172-26-4-11”,“pid”:886522}
[2023-01-05 13:11:04] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /opt/bitnami/apache/htdocs/app/bundles/PageBundle/Entity/HitRepository.php - at line 267 {“options”:{“leadId”:“8492”,“0”:“%www.domain.com/%“,“second_to_last”:“17547”},“sq”:”[object] (Doctrine\DBAL\Query\QueryBuilder: SELECT h.date_hit latest_hit FROM page_hits h WHERE (h.lead_id = 8492) AND (h.id <> 17547))”,“result”:false} {“hostname”:“ip-172-26-4-11”,“pid”:887830}
[2023-01-05 13:11:08] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /opt/bitnami/apache/htdocs/app/bundles/PageBundle/Entity/HitRepository.php - at line 267 {“options”:{“leadId”:“8650”,“0”:“%www.domain.com/%“,“second_to_last”:“17548”},“sq”:”[object] (Doctrine\DBAL\Query\QueryBuilder: SELECT h.date_hit latest_hit FROM page_hits h WHERE (h.lead_id = 8650) AND (h.id <> 17548))”,“result”:false} {“hostname”:“ip-172-26-4-11”,“pid”:887833}
Steps I have tried to fix the problem:
I have tried alternative ways like using forms contact source, which works right, but I had to fill form thousands of times which also I did automate using python.
That is not important,
I had to add contacts to a specific segment based on the actions they took like if they get more points, they will be added to a segment; in that case, I am helpless.
Any help will be appreciated.