Mautic Version
4.2.x series
PHP version
8.0
What browsers are you seeing the problem on?
Firefox, Chrome, Microsoft Edge
What happened?
Dynamic content filter not working with Custom object filtering. I am getting the following error:
How can we reproduce this issue?
Step 1:
Edit Dynamic Content and add Custom object filter if the product title is not empty, for example
Relevant log output
mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "MauticPlugin\CustomObjectsBundle\Helper\QueryFilterHelper::addContactIdRestriction(): Argument #1 ($queryBuilder) must be of type Mautic\LeadBundle\Segment\Query\QueryBuilder, MauticPlugin\CustomObjectsBundle\Segment\Query\UnionQueryContainer given, called in /var/www/mautic-composer/docroot/plugins/CustomObjectsBundle/EventListener/DynamicContentSubscriber.php on line 93" at /var/www/mautic-composer/docroot/plugins/CustomObjectsBundle/Helper/QueryFilterHelper.php line 72 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): MauticPlugin\\CustomObjectsBundle\\Helper\\QueryFilterHelper::addContactIdRestriction(): Argument #1 ($queryBuilder) must be of type Mautic\\LeadBundle\\Segment\\Query\\QueryBuilder, MauticPlugin\\CustomObjectsBundle\\Segment\\Query\\UnionQueryContainer given, called in /var/www/mautic-composer/docroot/plugins/CustomObjectsBundle/EventListener/DynamicContentSubscriber.php on line 93 at /var/www/mautic-composer/docroot/plugins/CustomObjectsBundle/Helper/QueryFilterHelper.php:72)
Code of Conduct
Mautic Version
4.2.x series
PHP version
8.0
What browsers are you seeing the problem on?
Firefox, Chrome, Microsoft Edge
What happened?
Dynamic content filter not working with Custom object filtering. I am getting the following error:
How can we reproduce this issue?
Step 1:
Edit Dynamic Content and add Custom object filter if the product title is not empty, for example
Relevant log output
mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "MauticPlugin\CustomObjectsBundle\Helper\QueryFilterHelper::addContactIdRestriction(): Argument #1 ($queryBuilder) must be of type Mautic\LeadBundle\Segment\Query\QueryBuilder, MauticPlugin\CustomObjectsBundle\Segment\Query\UnionQueryContainer given, called in /var/www/mautic-composer/docroot/plugins/CustomObjectsBundle/EventListener/DynamicContentSubscriber.php on line 93" at /var/www/mautic-composer/docroot/plugins/CustomObjectsBundle/Helper/QueryFilterHelper.php line 72 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): MauticPlugin\\CustomObjectsBundle\\Helper\\QueryFilterHelper::addContactIdRestriction(): Argument #1 ($queryBuilder) must be of type Mautic\\LeadBundle\\Segment\\Query\\QueryBuilder, MauticPlugin\\CustomObjectsBundle\\Segment\\Query\\UnionQueryContainer given, called in /var/www/mautic-composer/docroot/plugins/CustomObjectsBundle/EventListener/DynamicContentSubscriber.php on line 93 at /var/www/mautic-composer/docroot/plugins/CustomObjectsBundle/Helper/QueryFilterHelper.php:72)Code of Conduct