Mautic: Unknown or bad format (PT3D) EventModel.php line 1694 while running console command `mautic:campaigns:trigger` [] []

Created on 26 Jun 2017  路  3Comments  路  Source: mautic/mautic

What type of report is this:

| Q | A
| ---| ---
| Bug report? | Y
| Feature request? | N
| Enhancement? | N

Description:

Mautic was running well. I was using CRONFIG.io to run crons. Until i got this error report

[2017-06-26 03:26:51] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []

If a bug:

| Q | A
| --- | ---
| Mautic version | V 2.8.2
| PHP version | PHP. Version 7.0.14

Steps to reproduce:

  1. Run Mautic Crons from Cronfig.io
  2. 2.

Log errors:

[2017-06-23 05:30:50] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 06:00:56] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 06:31:03] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 06:31:04] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 07:01:09] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 07:31:21] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 07:31:22] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 08:01:26] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 08:31:34] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 09:01:44] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 09:31:51] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 20:48:33] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 20:52:49] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-23 21:57:25] mautic.CRITICAL: Uncaught PHP Exception Doctrine\ORM\ORMInvalidArgumentException: "A new entity was found through the relationship 'MauticPlugin\MauticFocusBundle\Entity\Stat#lead' that was not configured to cascade persist operations for entity: Mautic\LeadBundle\Entity\Lead with ID #. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"})." at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 92 {"exception":"[object] (Doctrine\ORM\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'MauticPlugin\MauticFocusBundle\Entity\Stat#lead' that was not configured to cascade persist operations for entity: Mautic\LeadBundle\Entity\Lead with ID #. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)"} []

[2017-06-24 03:47:43] mautic.CRITICAL: Uncaught PHP Exception Doctrine\ORM\ORMInvalidArgumentException: "A new entity was found through the relationship 'MauticPlugin\MauticFocusBundle\Entity\Stat#lead' that was not configured to cascade persist operations for entity: Mautic\LeadBundle\Entity\Lead with ID #. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"})." at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 92 {"exception":"[object] (Doctrine\ORM\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'MauticPlugin\MauticFocusBundle\Entity\Stat#lead' that was not configured to cascade persist operations for entity: Mautic\LeadBundle\Entity\Lead with ID #. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)"} []
[2017-06-24 11:48:49] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 12:18:51] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 12:48:54] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 13:18:58] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 13:48:59] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 14:19:03] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 14:19:03] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 14:49:08] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 15:19:21] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 15:19:21] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 15:19:23] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 15:49:26] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-24 16:19:28] mautic.NOTICE: Exception: DateInterval::__construct(): Unknown or bad format (PT3D) (uncaught exception) at /home/citywatch/www/inbound/app/bundles/CampaignBundle/Model/EventModel.php line 1694 while running console command mautic:campaigns:trigger [] []
[2017-06-22 06:58:48] mautic.CRITICAL: Uncaught PHP Exception Doctrine\ORM\ORMInvalidArgumentException: "A new entity was found through the relationship 'Mautic\EmailBundle\Entity\StatDevice#stat' that was not configured to cascade persist operations for entity: Mautic\EmailBundle\Entity\Stat@0000000063efb734000000002cbbd68d. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}). If you cannot find out which entity causes the problem implement 'Mautic\EmailBundle\Entity\Stat#__toString()' to get a clue." at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 92 {"exception":"[object] (Doctrine\ORM\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'Mautic\EmailBundle\Entity\StatDevice#stat' that was not configured to cascade persist operations for entity: Mautic\EmailBundle\Entity\Stat@0000000063efb734000000002cbbd68d. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). If you cannot find out which entity causes the problem implement 'Mautic\EmailBundle\Entity\Stat#__toString()' to get a clue. at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)"} []
[2017-06-22 12:38:58] mautic.CRITICAL: Uncaught PHP Exception Doctrine\ORM\ORMInvalidArgumentException: "A new entity was found through the relationship 'Mautic\EmailBundle\Entity\StatDevice#stat' that was not configured to cascade persist operations for entity: Mautic\EmailBundle\Entity\Stat@000000000ff52c0200000000334c7b4a. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}). If you cannot find out which entity causes the problem implement 'Mautic\EmailBundle\Entity\Stat#__toString()' to get a clue." at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 92 {"exception":"[object] (Doctrine\ORM\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'Mautic\EmailBundle\Entity\StatDevice#stat' that was not configured to cascade persist operations for entity: Mautic\EmailBundle\Entity\Stat@000000000ff52c0200000000334c7b4a. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). If you cannot find out which entity causes the problem implement 'Mautic\EmailBundle\Entity\Stat#__toString()' to get a clue. at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)"} []
[2017-06-22 14:40:48] mautic.CRITICAL: Uncaught PHP Exception Doctrine\ORM\ORMInvalidArgumentException: "A new entity was found through the relationship 'Mautic\EmailBundle\Entity\StatDevice#stat' that was not configured to cascade persist operations for entity: Mautic\EmailBundle\Entity\Stat@0000000005789bb80000000034856cee. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}). If you cannot find out which entity causes the problem implement 'Mautic\EmailBundle\Entity\Stat#__toString()' to get a clue." at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 92 {"exception":"[object] (Doctrine\ORM\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'Mautic\EmailBundle\Entity\StatDevice#stat' that was not configured to cascade persist operations for entity: Mautic\EmailBundle\Entity\Stat@0000000005789bb80000000034856cee. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). If you cannot find out which entity causes the problem implement 'Mautic\EmailBundle\Entity\Stat#__toString()' to get a clue. at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)"} []
[2017-06-22 17:36:45] mautic.CRITICAL: Uncaught PHP Exception Doctrine\ORM\ORMInvalidArgumentException: "A new entity was found through the relationship 'Mautic\EmailBundle\Entity\StatDevice#stat' that was not configured to cascade persist operations for entity: Mautic\EmailBundle\Entity\Stat@000000000522568b00000000049cf167. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}). If you cannot find out which entity causes the problem implement 'Mautic\EmailBundle\Entity\Stat#__toString()' to get a clue." at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php line 92 {"exception":"[object] (Doctrine\ORM\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship 'Mautic\EmailBundle\Entity\StatDevice#stat' that was not configured to cascade persist operations for entity: Mautic\EmailBundle\Entity\Stat@000000000522568b00000000049cf167. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). If you cannot find out which entity causes the problem implement 'Mautic\EmailBundle\Entity\Stat#__toString()' to get a clue. at /home/citywatch/www/inbound/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)"} []

bug pending-feedback

All 3 comments

The code on line 1694: $date->add(new \DateInterval($this->scheduleTimeForFailedEvents));. It seems like a bug.

Please can you provide additional info like on what segment filter or campaign event it fails?

After update to latest version bug disappeared... also deleted campaign. But At this latest version seems like Focus Itens CSS and Forms are not working well...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RCheesley picture RCheesley  路  4Comments

RCheesley picture RCheesley  路  3Comments

namankumar picture namankumar  路  4Comments

wderuijter picture wderuijter  路  3Comments

dennisameling picture dennisameling  路  3Comments