friends-of-hyva / magento2-hyva-checkout-purchase-order-number

MIT License
7 stars 1 forks source link

Possible incompatibility with Netresearch DHL Shipping module #7

Open OvalMedia opened 4 months ago

OvalMedia commented 4 months ago

Magento 2.4.7-p1 PHP 8.2 Installed modules (among others):

Whenever I open an order in backend I get this error:

Error: Call to a member function setData() on bool in /vendor/netresearch/module-shipping-ui/Observer/AddRecipientStreetInfoBlock.php:80

In the DHL Shipping module there is an observer (https://github.com/netresearch/module-shipping-ui/blob/master/Observer/AddRecipientStreetInfoBlock.php) trying to get the child block nrshipping_recipient_street and add DHL stuff to it. That block is a child block of order_info which your module happens to add it's own child block to (purchase_order_number).

The weird part is that once I remove your child block everything works fine. When your module adds its block the order_info in the observer that block has no child blocks.

Not sure if this an issue in your module or in the DHL module though.