{
"message": "Uncaught PHP Exception Doctrine\\ORM\\Exception\\EntityManagerClosed: \"The EntityManager is closed.\" at EntityManagerClosed.php line 13",
"context": {
"exception": {
"class": "Doctrine\\ORM\\Exception\\EntityManagerClosed",
"message": "The EntityManager is closed.",
"code": 0,
"file": "/app/vendor/doctrine/orm/src/Exception/EntityManagerClosed.php:13",
"previous": {
"class": "Symfony\\Component\\Messenger\\Exception\\HandlerFailedException",
"message": "Handling \"Sylius\\InvoicingPlugin\\Event\\OrderPaymentPaid\" failed: Handling \"Sylius\\InvoicingPlugin\\Command\\SendInvoiceEmail\" failed: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'sylius_payment'; try restarting transaction",
"code": 1020,
"file": "/app/vendor/symfony/messenger/Middleware/HandleMessageMiddleware.php:121",
"previous": {
"class": "Symfony\\Component\\Messenger\\Exception\\HandlerFailedException",
"message": "Handling \"Sylius\\InvoicingPlugin\\Command\\SendInvoiceEmail\" failed: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'sylius_payment'; try restarting transaction",
"code": 1020,
"file": "/app/vendor/symfony/doctrine-bridge/Messenger/DoctrineTransactionMiddleware.php:44",
"previous": {
"class": "Doctrine\\DBAL\\Exception\\DriverException",
"message": "An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'sylius_payment'; try restarting transaction",
"code": 1020,
"file": "/app/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:129",
"previous": {
"class": "Doctrine\\DBAL\\Driver\\PDO\\Exception",
"message": "SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'sylius_payment'; try restarting transaction",
"code": 1020,
"file": "/app/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:24",
"previous": {
"class": "PDOException",
"message": "SQLSTATE[HY000]: General error: 1020 Record has changed since last read in table 'sylius_payment'; try restarting transaction",
"code": 0,
"file": "/app/vendor/doctrine/dbal/src/Driver/PDO/Statement.php:130"
}
}
}
}
}
}
},
"level": 500,
"level_name": "CRITICAL",
"channel": "request",
"datetime": "2026-07-20T10:44:05.810761+00:00",
"extra": {}
}
This error appeared twice last week in one of our Sylius projects: