I am facing this error in the admin side when viewing the orders.

It showing

Order View
Information Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving.

enter image description here

I am getting this error on that page.

<b>Fatal error</b>:  Uncaught Error: Call to a member function getValue()     on null in /home/oherron/public_html/vendor/magento/module-sales/view/adminhtml/templates/order/view/info.phtml:162

1 Answer 1


This is usually because of an Exception.

Looking at the PHP Logs

tail -50f  /var/log/php-fpm/www-error.log

I found this error:

[11-Jan-2020 04:53:51 UTC] PHP Fatal error:  Method Magento\Ui\TemplateEngine\Xhtml\Result::__toString() must not throw an exception, caught TypeError: Argument 2 passed to Magento\Sales\Model\ResourceModel\Order\Shipment\Relation::__construct() must be an instance of Magento\Sales\Model\ResourceModel\Order\Shipment\Track, instance of YYYY\OrderTrackingUpdate\Sales\Model\ResourceModel\Order\Shipment\Track given, called in /var/www/html/vhosts/sharath/XXXXXXXXXX/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php on line 111 in /var/www/html/vhosts/sharath/XXXXXXXXXX/vendor/magento/module-ui/Component/Wrapper/UiComponent.php on line 0

Turns out, in my case, there was a preference in one of my custom module's di.xml (that I had overlooked) that was causing the issue.

Once I fixed that - the Order Details pages rendered by just fine.

I hope this helps! :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.