cancel
Showing results for 
Search instead for 
Did you mean: 

Shipping Exception

SOLVED

Shipping Exception

Running Magento CE 2.2.9.  Not really sure what started this error, but I need some help in figuring out what is causing it as it is slowing down our shipping process.

 

We use an ERP add-on, but their support says it is not their issue.

 

When trying to work on Sales->Shipments some orders that were done come up with the follow exception:

Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Framework\DataObject::__construct() must be of the type array, null given, called in /var/www/vendor/magento/module-shipping/view/adminhtml/templates/order/packaging/packed.phtml on line 14 and defined in /var/www/vendor/magento/framework/DataObject.php:38 Stack trace: #0 /var/www/vendor/magento/module-shipping/view/adminhtml/templates/order/packaging/packed.phtml(14): Magento\Framework\DataObject->__construct(NULL)


#1 /var/www/vendor/magento/framework/View/TemplateEngine/Php.php(59): include('/var/www/vendor...')


#2 /var/www/vendor/magento/framework/View/Element/Template.php(270): Magento\Framework\View\TemplateEngine\Php->render(Object(Magento\Shipping\Block\Adminhtml\Order\Packaging\Interceptor), '/var/www/vendor...', Array)


#3 /var/www/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Element\Template->fetchView('/var/www/vendor...')


#4 /var/www/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Shipping\Bloc in /var/www/vendor/magento/framework/DataObject.php on line 38

 

The owner of the web site makes changes to the config also, and so I'm kind of at a loss as for what has changed and where to start looking.  I've taken a look at the core_config tables from a couple of weeks ago when it was working, and not much has changed except for some free shipping methods.  I tried to put those values back in place, but without success.

 

Some expert advise would be helpful.

 

Thanks in advance,

 

Kevin

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Shipping Exception

I've got it resolved.  The problem wasn't actually in the Magento code, but in the 3rd party's Shipping/Packing Module.  The vendor originally told us, the problem wasn't theirs because the error was in a magento-module.  So, in order to prove my point, I installed remote debugging and traced the execution to the point of failure, and could then show the vendor that it was during pulling their stored data that the object framework was crashing.  I had never remote debugged a php app before, but will for sure be using that method of debugging again.

 

 

 

View solution in original post

2 REPLIES 2

Re: Shipping Exception

Did you recently upgrade from any old version? 

Magento 2 Professional Developer
https://nslayout.com/

Re: Shipping Exception

I've got it resolved.  The problem wasn't actually in the Magento code, but in the 3rd party's Shipping/Packing Module.  The vendor originally told us, the problem wasn't theirs because the error was in a magento-module.  So, in order to prove my point, I installed remote debugging and traced the execution to the point of failure, and could then show the vendor that it was during pulling their stored data that the object framework was crashing.  I had never remote debugged a php app before, but will for sure be using that method of debugging again.