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
PHP error on checkout when the order only contains virtual products, e.g. gift vouchers. Looks like it is because there is no shipping address on the order.
PHP Fatal error: Uncaught Error: Call to a member function getCountryId() on null in /app/code/Remarkety/Mgconnector/Serializer/AddressSerializer.php:28
Stack trace:
#0 /app/code/Remarkety/Mgconnector/Serializer/OrderSerializer.php(180): Remarkety\Mgconnector\Serializer\AddressSerializer->serialize(NULL) #1 /app/code/Remarkety/Mgconnector/Observer/TriggerOrderUpdated.php(40): Remarkety\Mgconnector\Serializer\OrderSerializer->serialize(Object(Magento\Sales\Model\Order\Interceptor)) #2 /vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Remarkety\Mgconnector\Observer\TriggerOrderUpdated->execute(Object(Magento\Framework\Event\Observer)) #3 /vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object in /app/code/Remarkety/Mgconnector/Serializer/AddressSerializer.php on line 28,
The text was updated successfully, but these errors were encountered:
PHP error on checkout when the order only contains virtual products, e.g. gift vouchers. Looks like it is because there is no shipping address on the order.
PHP Fatal error: Uncaught Error: Call to a member function getCountryId() on null in /app/code/Remarkety/Mgconnector/Serializer/AddressSerializer.php:28
Stack trace:
#0 /app/code/Remarkety/Mgconnector/Serializer/OrderSerializer.php(180): Remarkety\Mgconnector\Serializer\AddressSerializer->serialize(NULL)
#1 /app/code/Remarkety/Mgconnector/Observer/TriggerOrderUpdated.php(40): Remarkety\Mgconnector\Serializer\OrderSerializer->serialize(Object(Magento\Sales\Model\Order\Interceptor))
#2 /vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Remarkety\Mgconnector\Observer\TriggerOrderUpdated->execute(Object(Magento\Framework\Event\Observer))
#3 /vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod(Object in /app/code/Remarkety/Mgconnector/Serializer/AddressSerializer.php on line 28,
The text was updated successfully, but these errors were encountered: