Closed
Description
Preconditions
- Magento version 2.2 (or previous)
Steps to reproduce
- In the method
Magento\Sales\Model\Order\Pdf\Invoice::getPdf
comment out the call to$this->insertOrder(
- Go to the backend and print an invoice
Expected result
- I should see the invoice without the order details
Actual result
- I get a fatal error because the class
Zend_Pdf_Color_RGB
is not found in the_drawHeader
method.
Additional info
This happens because the actual class name is Zend_Pdf_Color_Rgb
(lowercase g and b).
The fact that it works is just an accident. It's because that's how the php autoloader works. The correct class name is referenced in a method called above the _drawHeader
and the correct file is found. The second time the class is called the class is already loaded and since the class names are not case sensitive .... you get where this is going.
Same goes for creditmemo and shipping print. I guess copy/paste.
Metadata
Metadata
Assignees
Labels
Gate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release