I’m having a error on Sales > Invoice > Print which will be downloading the PDF invoice file.
error log shows
[18-Aug-2017 06:48:32 UTC] PHP Fatal error: Uncaught Error: Call to a member function toPdf() on null in /…/vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php:428
and on AbstractPdf.php:428
/* Payment */
$paymentInfo = $this->_paymentData->getInfoBlock($order->getPayment())->setIsSecureMode(true)->toPdf();
if I will remove ->setIsSecureMode(true)
, it will work just that it will show all the sensitive payment data like card expiry and will also affect other payment methods and show their full data.
module versions
mage2pro/core: 2.10.28
mage2pro/stripe: 1.10.3
I’ve got other payment method paypal, not having this issue I’ve figured the cause might be the stripe module,
And on my sandbox/test site this issue is not occuring with older versions of the module
mage2pro/core (2.8.22) and mage2pro/stripe (1.9.23) installed
can anyone replicate the issue?