Fatal Error and scheduler is not creating for some post
-
Hello,
Some of posts’s scheduler is not creating and the post notfication email is not sending for those.We have checked in the debug.log and found that the below errors are getting in regular interval
[06-Jan-2023 13:51:03 UTC] PHP Fatal error: Uncaught MailPoetVendor\Doctrine\ORM\ORMInvalidArgumentException: A new entity was found through the relationship ‘MailPoet\Entities\SendingQueueEntity#task’ that was not configured to cascade persist operations for entity: MailPoet\Entities\ScheduledTaskEntity@9727. 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 ‘MailPoet\Entities\ScheduledTaskEntity#__toString()’ to get a clue. in /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:45
Stack trace:
0 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(1827): MailPoetVendor\Doctrine\ORM\ORMInvalidArgumentException::newEntitiesFoundThroughRelationships()
1 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(138): MailPoetVendor\Doctrine\ORM\UnitOfWork->assertThatThereAreNoUnintentionallyNonPersistedAssociations()
2 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(171): MailPoetVendor\Doctrine\ORM\UnitOfWork->commit()
3 /public_html/wp-content/plugins/mailpoet/lib/Doctrine/Repository.php(118): MailPoetVendor\Doctrine\ORM\EntityManager->flush()
4 /public_html/wp-content/plugins/mailpoet/lib/Logging/LogHandler.php(65): MailPoet\Doctrine\Repository->flush()
5 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(18): MailPoet\Logging\LogHandler->write()
6 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/monolog/monolog/src/Monolog/Logger.php(114): MailPoetVendor\Monolog\Handler\AbstractProcessingHandler->handle()
7 /public_html/wp-content/plugins/mailpoet/vendor-prefixed/monolog/monolog/src/Monolog/Logger.php(218): MailPoetVendor\Monolog\Logger->addRecord()
8 /public_html/wp-content/plugins/mailpoet/lib/Cron/Daemon.php(63): MailPoetVendor\Monolog\Logger->error()
9 /public_html/wp-content/plugins/mailpoet/mailpoet-cron.php(61): MailPoet\Cron\Daemon->run()
10 {main}
thrown in /public_html/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php on line 45
Please let us know why this error has occurred and how we can fix this.
- The topic ‘Fatal Error and scheduler is not creating for some post’ is closed to new replies.