Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't sent out shipment email - Call to a member function getUrl() on null #77

Closed
loppp opened this issue Mar 31, 2020 · 1 comment
Closed

Comments

@loppp
Copy link

loppp commented Mar 31, 2020

Have been getting the

Call to a member function getUrl() on null

error.

In cron.log

[2020-03-31 09:39:09] main.INFO: Cron Job sales_send_order_shipment_emails is run [] []
[2020-03-31 09:39:09] main.ERROR: Cron Job sales_send_order_shipment_emails has an error: Call to a member function getUrl() on null. Statistics: {"sum":0,"count":1,"realmem":0,"emalloc":0,"realmem_start":88080384,"emalloc_start":58127880} [] []
[2020-03-31 09:39:09] main.CRITICAL: Error when running a cron job {"exception":"[object] (RuntimeException(code: 0): Error when running a cron job at /home/wwwroot/vendor/magento/module-cron/Observer/ProcessCronQueueObserver.php:330, Error(code: 0): Call to a member function getUrl() on null at /home/wwwroot/vendor/magento/module-sales/view/frontend/templates/email/shipment/track.phtml:28)"} []

Thought was the problem that left the Tracking URL field in blank in configuration, but the problem still exists after I fill in the Tracking URL field.

@owebia
Copy link
Owner

owebia commented Apr 1, 2020

Hi,

It seems to be a bug on Magento 2.3.3: magento/magento2#25221 (comment)

Best Regards,
A.L.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants