You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Email sending functionality using EmailModelSender throws an error after the update to 5.1.3 version from 4.2. Before the update all worked as expected
Using Oro\Bundle\EmailBundle\Sender\EmailModelSender to send this Email Model (without passing any additional arguments) $this->emailProcessor->send($emailModel);
Actual Result
Getting an exception: Uncaught Error: Call to a member function getId() on null {"exception":"[object] (Error(code: 0): Call to a member function getId() on null at /var/domains/zinkunie-zinkunie-upgrade.test-madia.nl /releases/175/vendor/oro/platform/src/Oro/Bundle/ EmailBundle/Entity/Manager/EmailAddressVisibilityManager.php:55)"}
This is caused because code is trying to access EmailUser::Organization::id while organization is actually empty. Please look at the xdebug screen how EmailUser look like:
Considering EmailUser entity is created by oro from EmailOrigin which I also did not provide by my own. I think this is oro internal bug.
Expected Result
Email sending using EmailModelSender::send() while providing only on Email Model as an argument should work.
Details about your environment
OroPlatform version: 5.1.3
PHP version: 8.2.7
The text was updated successfully, but these errors were encountered:
Summary
Steps to reproduce
I am creating
Oro\Bundle\EmailBundle\Form\Model\Email
and fill all the data. This is how Email Model look like on xdebug screen:Oro\Bundle\EmailBundle\Sender\EmailModelSender
to send this Email Model (without passing any additional arguments)$this->emailProcessor->send($emailModel);
Actual Result
Getting an exception:
Uncaught Error: Call to a member function getId() on null {"exception":"[object] (Error(code: 0): Call to a member function getId() on null at /var/domains/zinkunie-zinkunie-upgrade.test-madia.nl /releases/175/vendor/oro/platform/src/Oro/Bundle/ EmailBundle/Entity/Manager/EmailAddressVisibilityManager.php:55)"}
This is caused because code is trying to access EmailUser::Organization::id while organization is actually empty. Please look at the xdebug screen how EmailUser look like:
Considering EmailUser entity is created by oro from EmailOrigin which I also did not provide by my own. I think this is oro internal bug.
Expected Result
Email sending using EmailModelSender::send() while providing only on Email Model as an argument should work.
Details about your environment
The text was updated successfully, but these errors were encountered: