# AB tests aren't sending, PHP error, our marketing is on pause

**URL:** <https://forum.mautic.org/t/ab-tests-arent-sending-php-error-our-marketing-is-on-pause/5305>\
**Category:** Product Support\
**Created:** [September 12, 2016, 10:06pm UTC](https://forum.mautic.org/t/ab-tests-arent-sending-php-error-our-marketing-is-on-pause/5305 "2016-09-12T22:06:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PatMifsud](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@PatMifsud](https://forum.mautic.org/u/PatMifsud)\
**Post date:** [September 12, 2016, 10:06pm UTC](https://forum.mautic.org/t/ab-tests-arent-sending-php-error-our-marketing-is-on-pause/5305/1 "2016-09-12T22:06:02Z")

</div>

Hey there,  
  
We’re having some issues sending out AB tests at the moment. Using a typical batch amount (100, 50, 30 etc) the emails just fail to send, the progress bar sitting at 0/700 indefinitely. Using something really small such as 5 or 3 the emails trickle out and then fail, with only the first variant being sent out. We have paused our emails until this is resolved.  
  
  
  
The following PHP error was noticed:  
  
[2016-09-09 01:08:07] mautic.ERROR: PHP Error: Argument 1 passed to MauticEmailBundleHelperMailHelper::setEmail() must be an instance of MauticEmailBundleEntityEmail, null given, called in /var/www/html/app/bundles/EmailBundle/Model/EmailModel.php on line 1242 and defined - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 1242 [] []  
  
  
  
Would really appreciate any help or hacky work arounds, worst possible timing as we are about to launch a product.  
  
  
  
Thanks!!

---

<div class="post-metadata">

**Author:** ![PatMifsud](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@PatMifsud](https://forum.mautic.org/u/PatMifsud)\
**Post date:** [September 12, 2016, 10:06pm UTC](https://forum.mautic.org/t/ab-tests-arent-sending-php-error-our-marketing-is-on-pause/5305/2 "2016-09-12T22:06:02Z")

</div>

Hey there,  
We’re having some issues sending out AB tests at the moment. Using a typical batch amount (100, 50, 30 etc) the emails just fail to send, the progress bar sitting at 0/700 indefinitely. Using something really small such as 5 or 3 the emails trickle out and then fail, with only the first variant being sent out. We have paused our emails until this is resolved.

The following PHP error was noticed:  
[2016-09-09 01:08:07] mautic.ERROR: PHP Error: Argument 1 passed to MauticEmailBundleHelperMailHelper::setEmail() must be an instance of MauticEmailBundleEntityEmail, null given, called in /var/www/html/app/bundles/EmailBundle/Model/EmailModel.php on line 1242 and defined - in file /var/www/html/app/bundles/EmailBundle/Helper/MailHelper.php - at line 1242 [] []

Would really appreciate any help or hacky work arounds, worst possible timing as we are about to launch a product.

Thanks!!
