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

EmailValidator.php - Argument #1 ($emailAddress) must be of type string, null given #13728

Open
1 task done
wsarisslz opened this issue May 7, 2024 · 0 comments
Open
1 task done
Labels
bug Issues or PR's relating to bugs needs-triage For new issues/PRs that need to be triaged

Comments

@wsarisslz
Copy link

wsarisslz commented May 7, 2024

Mautic Version

5.0.x series

Way of installing

I installed with composer using https://github.com/mautic/recommended-project

PHP version

8.1.27

What browsers are you seeing the problem on?

Not relevant

What happened?

When creating a new campaign for a segment (which only has IP Addresses in this case) and you choose CONDITION: if email is valid

then you get the following error when executing mautic/bin/console mautic:campaigns:trigger

Triggering events for campaign 9
Triggering events for newly added contacts
2458 total events(s) to be processed in batches of 100 contacts
2458/2458 [============================] 100%
In InvalidEmailException.php line 9:

Mautic\EmailBundle\Exception\InvalidEmailException::__construct(): Argument #1 ($emailAddress) must be of type string, null given, called in /var/w
ww/html/mautic/docroot/app/bundles/EmailBundle/Helper/EmailValidator.php on line 30

How can we reproduce this issue?

Step 1: create a segment with IP's without an email address
Step 2: create a campaign that has a condition if valid email

Relevant log output

Triggering events for campaign 9
Triggering events for newly added contacts
2458 total events(s) to be processed in batches of 100 contacts
 2458/2458 [============================] 100%
In InvalidEmailException.php line 9:
                                                                                                                                                       
  Mautic\EmailBundle\Exception\InvalidEmailException::__construct(): Argument #1 ($emailAddress) must be of type string, null given, called in /var/w  
  ww/html/mautic/docroot/app/bundles/EmailBundle/Helper/EmailValidator.php on line 30

Code of Conduct

  • I confirm that I have read and agree to follow this project's Code of Conduct




Care about this issue? Want to get it resolved sooner? If you are a member of Mautic, you can add some funds to the Bounties Project so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs here.

@wsarisslz wsarisslz added bug Issues or PR's relating to bugs needs-triage For new issues/PRs that need to be triaged labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs needs-triage For new issues/PRs that need to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant