Mautic Community Forums

Send Emails DateInterval Error

Hello there Mautic people,



After creating a new Channels > Email and filling it out completely like subject, internal name, contact segment, category, published & email content (builder template blank). It’s not possible anymore to send emails, after confirming if you really want to send emails the “uh oh!” error appears, see Log errors for the php error. This error appears for every new created Email when trying to send.



Sending emails worked before on five different occasion without any problem, configuration changes since then have not been made.



To my limited knowledge with Mautic there is not a possibility to configure any kind of Date Interval while sending an Email through “Channels”.



The php error:

[2017-03-23 14:29:08] mautic.CRITICAL: Uncaught PHP Exception Exception: “DateInterval::__construct(): Unknown or bad format (PW)” at /home/mautic/app/bundles/ChannelBundle/Model/MessageQueueModel.php line 166 {“exception”:"[object] (Exception(code: 0): DateInterval::__construct(): Unknown or bad format (PW) at /home/mautic/app/bundles/ChannelBundle/Model/MessageQueueModel.php:166)"} []



Mautic version: v2.7 & v2.7.1

PHP version: 7.0.11



Does anyone know anything about this error or how to fix it?

Hello there Mautic people,

After creating a new Channels > Email and filling it out completely like subject, internal name, contact segment, category, published & email content (builder template blank). It’s not possible anymore to send emails, after confirming if you really want to send emails the “uh oh!” error appears, see Log errors for the php error. This error appears for every new created Email when trying to send.

Sending emails worked before on five different occasion without any problem, configuration changes since then have not been made.

To my limited knowledge with Mautic there is not a possibility to configure any kind of Date Interval while sending an Email through “Channels”.

The php error:
[2017-03-23 14:29:08] mautic.CRITICAL: Uncaught PHP Exception Exception: “DateInterval::__construct(): Unknown or bad format (PW)” at /home/mautic/app/bundles/ChannelBundle/Model/MessageQueueModel.php line 166 {“exception”:"[object] (Exception(code: 0): DateInterval::__construct(): Unknown or bad format (PW) at /home/mautic/app/bundles/ChannelBundle/Model/MessageQueueModel.php:166)"} []

Mautic version: v2.7 & v2.7.1
PHP version: 7.0.11

Does anyone know anything about this error or how to fix it?

For those who encounter this problem, here is how I fixed it.

There is a setting in
Configuration > Email Settings -> Default Frequency Rule
which had the configuration
Do not contact more than 0 each week

The setting obviously has to be greater than 0 if you want to send emails to the same contacts again, unfortunately the error message you get from Mautic is quite confusing.