Your software
My Mautic version is: 2.15.2
My PHP version is: 7.1.25
Your problem
My problem is: I’ve created a dynamic segment. It uses the filter statement email not empty. After creating the segment it never shows having any contacts. We have around 200,000 contacts with a valid email address in our instance. I should eventually see contacts listed in the segment or am I misunderstanding how dynamic segments work? I was able to setup a campaign with this segment and it did appear to work so I’m confused if I’m just not understanding the dynamic segments based on filters correctly.
These errors are showing in the log:
These all appear to be related to tracking the referral URL’s and not related to contact or segment filtering. I also have the Mautic website markup in my log but that appears to be related to a different bug.
[2020-01-02 09:41:50] mautic.WARNING: String could not be parsed as XML
[2020-01-02 16:42:16] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/PageBundle/Controller/PublicController.php - at line 452 {“redirectId”:“07d3e6dad18f835e576fc619e”,“logger”:"[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #3882)",“url”:“https://vimeo.com/302287607","query”:}
[2020-01-02 16:48:48] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “The string ��5�{s�<��y�w��Ȼ��2�{i�6�s:1��"�g�ra��n.��nz��i:��i�9���}s:5�(�oa�mȻj�3�9�s:4�(�va�;s�8��(�����9����ܹ�6���6�ڶ�;s�:��le� ��i:�ٳ��7��s�7:�i��n�“�g���{s:5�(�oa�mȻj�3�9� is not a serialized array.” at /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Helper/ClickthroughHelper.php line 46
[2020-01-02 16:58:27] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/PageBundle/Controller/PublicController.php - at line 452 {“redirectId”:“e757c0b0805ff139015cde763”,“logger”:”[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #3863)",“url”:“https://cyclingtips.com/2019/10/could-you-live-with-just-one-bike-for-a-year/","query”:}
[2020-01-02 17:00:54] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/PageBundle/Controller/PublicController.php - at line 452 {“redirectId”:“cf3f8bfebf48fad5af7b4c106”,“logger”:"[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #3867)",“url”:“https://www.adventurecycling.org/membership/renew-membership/?ruid={contactfield=userid}&utm_source=BE&utm_campaign=20200101_bikebits","query”:}
[2020-01-02 17:01:53] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/PageBundle/Controller/PublicController.php - at line 452 {“redirectId”:“69a308789e1769c91a89b9eb1”,“logger”:"[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #3879)",“url”:“https://www.bicycling.com/rides/a29817451/bears-ears-national-monument-under-threat/","query”:}
[2020-01-02 17:19:25] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/PageBundle/Controller/PublicController.php - at line 452 {“redirectId”:“e757c0b0805ff139015cde763”,“logger”:"[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #3863)",“url”:“https://cyclingtips.com/2019/10/could-you-live-with-just-one-bike-for-a-year/","query”:}
[2020-01-02 17:19:31] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/PageBundle/Controller/PublicController.php - at line 452 {“redirectId”:“cf3f8bfebf48fad5af7b4c106”,“logger”:"[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #3867)",“url”:“https://www.adventurecycling.org/membership/renew-membership/?ruid={contactfield=userid}&utm_source=BE&utm_campaign=20200101_bikebits","query”:}
[2020-01-02 17:20:09] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/PageBundle/Controller/PublicController.php - at line 452 {“redirectId”:“05be281b8070989954e199b26”,“logger”:"[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #3880)",“url”:“https://www.kayakcobber.com/","query”:}
[2020-01-02 19:53:21] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/PageBundle/Controller/PublicController.php - at line 452 {“redirectId”:“2e41adf06f26c636a1e6671c6”,“logger”:"[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #3877)",“url”:“https://www.smithsonianmag.com/innovation/fight-scooters-common-19th-century-battle-over-bicycles-180973510/","query”:}
[2020-01-02 19:54:12] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/PageBundle/Controller/PublicController.php - at line 452 {“redirectId”:“69d72207b15b24c4a1ad61cc1”,“logger”:"[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #3878)",“url”:“https://www.joplinglobe.com/news/local_news/carthage-man-determined-to-finish-cross-country-ride-on-amphibious/article_63e0f01e-62dc-5016-a54f-049164e1721b.html","query”:}
[2020-01-02 19:55:17] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/PageBundle/Controller/PublicController.php - at line 452 {“redirectId”:“69a308789e1769c91a89b9eb1”,“logger”:"[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #3879)",“url”:“https://www.bicycling.com/rides/a29817451/bears-ears-national-monument-under-threat/","query”:}
[2020-01-02 19:55:55] mautic.NOTICE: PHP Notice - Undefined index: ct - in file /opt/bitnami/apps/mautic/htdocs/app/bundles/PageBundle/Controller/PublicController.php - at line 452 {“redirectId”:“07d3e6dad18f835e576fc619e”,“logger”:"[object] (Symfony\Bridge\Monolog\Logger: {})",“redirectModel”:"[object] (Mautic\PageBundle\Model\RedirectModel: {})",“redirect”:"[object] (Mautic\PageBundle\Entity\Redirect: Mautic\PageBundle\Entity\Redirect with ID #3882)",“url”:“https://vimeo.com/302287607","query”:}
[2020-01-02 22:16:35] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “The string ,f��&a�U�"���0U{,f��a{�f��/d��4�3n!0�2���alzdhaddh=�f��������{�f�f{�f����4�W&ae�u0c�0��d�3 �devlub�W&a�W92,��alzvfc{�f����4��2W.az�vzf�0�n���alzfjfa}}� is not a serialized array.” at /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Helper/ClickthroughHelper.php line 46
[2020-01-02 22:20:21] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “The string ,f��&a�U�"���0U{,f��a{�f��/d��4�3n!0�2���alzdhaddh=�f��������{�f�f{�f����4�W&ae�u0c�0��d�3 �devlub�W&a�W92,��alzvfc{�f����4��2W.az�vzf�0�n���alzfjfa}}� is not a serialized array.” at /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Helper/ClickthroughHelper.php line 46
[2020-01-02 22:37:01] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “The string ,f��&a�U�"���0U{,f��a{�f��/d��4�3n!0�2���alzdhaddh=�f��������{�f�f{�f����4�W&ae�u0c�0��d�3 �devlub�W&a�W92,��alzvfc{�f����4��2W.az�vzf�0�n���alzfjfa}}� is not a serialized array.” at /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Helper/ClickthroughHelper.php line 46
[2020-01-02 22:37:54] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “The string ,f��&a�U�"���0U{,f��a{�f��/d��4�3n!0�2���alzdhaddh=�f��������{�f�f{�f����4�W&ae�u0c�0��d�3 �devlub�W&a�W92,��alzvfc{�f����4��2W.az�vzf�0�n���alzfjfa}}� is not a serialized array.” at /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Helper/ClickthroughHelper.php line 46
[2020-01-02 22:37:58] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “The string ,f��&a�U�"���0U{,f��a{�f��/d��4�3n!0�2���alzdhaddh=�f��������{�f�f{�f����4�W&ae�u0c�0��d�3 �devlub�W&a�W92,��alzvfc{�f����4��2W.az�vzf�0�n���alzfjfa}}� is not a serialized array.” at /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Helper/ClickthroughHelper.php line 46
[2020-01-02 15:56:25] mautic.CRITICAL: Uncaught PHP Exception InvalidArgumentException: “Malformed UTF-8 characters, possibly incorrectly encoded” at /opt/bitnami/apps/mautic/htdocs/vendor/symfony/http-foundation/JsonResponse.php line 164 {“exception”:"[object] (InvalidArgumentException(code: 0): Malformed UTF-8 characters, possibly incorrectly encoded at /opt/bitnami/apps/mautic/htdocs/vendor/symfony/http-foundation/JsonResponse.php:164)"}
Steps I have tried to fix the problem: I’ve attempted to run the mautic:segments:update cron task from the command line to check for errors and have also piped the results to a log file. In both situations I get “Script with pid 28344 in progress. Script in progress. Can force execution by using --force.”