문제

I've done an update to Magento and now I have a problem:

In the cron logs I have

main.ERROR: Cron Job sales_send_order_emails has an error: Return value of Magento\Framework\Filter\DirectiveProcessor\DependDirective::process() must be of the type string, object returned. Statistics: {"sum":0,"count":1,"realmem":0,"emalloc":0,"realmem_start":79691776,"emalloc_start":29990192} [] []
main.CRITICAL: Error when running a cron job {"exception":"[object] (RuntimeException(code: 0): Error when running a cron job at /vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php:330, TypeError(code: 0): Return value of Magento\\Framework\\Filter\\DirectiveProcessor\\DependDirective::process() must be of the type string, object returned at /vendor/magento/framework/Filter/DirectiveProcessor/DependDirective.php:53)"} []

Confirmation email is not sending and also when I got in admin to the order, and then click on Send Email is also not working.

I've tried to send a comment on an order, and that one is working.

Can someone help?

Thanks.

도움이 되었습니까?

해결책

You need to check the address templates in the configuration menu or other variables set up in your email templates. This class was added in 2.3.4 to process variables, I have it foul up the checkout, when there was an if mismatch in the address templates. So check you have the if and depends are correct and have there closing tags.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top