Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Content filtering #314

Open
1 task done
ahmedalmulki opened this issue May 4, 2023 · 0 comments
Open
1 task done

Dynamic Content filtering #314

ahmedalmulki opened this issue May 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ahmedalmulki
Copy link

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

  • I confirm that I have read and agree to follow this project's Code of Conduct
@ahmedalmulki ahmedalmulki added the bug Something isn't working label May 4, 2023
@ahmedalmulki ahmedalmulki changed the title Your bug title goes here! Dynamic Content filtering May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant