Skip to content

Null order in Magento\Sales\Block\Order\PrintShipment.php #9830

@dnadle

Description

@dnadle

Viewing an order in the customer dashboard and clicking the print order link causes the following entry in httpd error_log:

PHP Fatal error: Call to a member function getRealOrderId() on null in /vendor/magento/module-sales/Block/Order/PrintShipment.php on line 58

Preconditions

Magento 2.1.6

Steps to reproduce

Log in as customer, go to Account Dashboard. Click My Orders, choose an order and click View Order, then click Print Order.

Expected result

No error in httpd error_log.

Actual result

The error described above is logged.

Metadata

Metadata

Labels

Component: SalesFixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions