Closed VictorSoaresRedstage closed 4 months ago
update: I'm seeing an error on logs when the issue happens on "vendor/dotdigital/dotdigital-magento2-extension/Model/Connector/ContactData/Customer.php::getSubscriberStatus"
:
report.ERROR: Environment emulation nesting is not allowed.
Hi. This patch is designed to deal with any 'pending' automation rows in email_automation
once the old ddg_automation_status
cron is no longer running. As part of automation sync, we ensure that contacts are sent to Dotdigital, with all their required data fields, prior to enrolment. When we fetch data fields, we have this case where we need to use Magento\Store\Model\App\Emulation
to ensure we get the right store-scoped subscriber status value.
It appears that we're not allowed to use Emulation during the upgrade process. I get:
"Magento\\Framework\\Exception\\LocalizedException: Area code is not set
In my test (2.4.7), the exception is caught in the sync script, and the process completes - but seemingly for you that is not happening.
The steps for you to resolve this are:
INSERT INTO `patch_list` (patch_name) VALUES ('Dotdigitalgroup\Email\Setup\Patch\Data\ProcessPendingAutomations');
bin/magento dotdigital:sync Automation
Quick update on this: we'll be replacing usage of Emulation
in Model/Connector/ContactData/Customer
. So I'd advise waiting for 4.24.2 (coming this week) before deploying to production.
Quick update on this: we'll be replacing usage of
Emulation
inModel/Connector/ContactData/Customer
. So I'd advise waiting for 4.24.2 (coming this week) before deploying to production.
Got it - thank you for the updates!
Hello,
Store running on Adobe Commerce on PREM - 2.4.5-p6, with 2 websites, 2 stores and 2 store views.
I'm upgrading DotDigital extension from 4.21.1 to 4.24.1 and I'm facing an issue while running setup:upgrade on STAGING (no issues locally):
Issue seems to be on ProcessPendingAutomations data patch.
Can you help me?
Thank you, Victor Soares.