Printing issue 20.14.0 #4843
Replies: 8 comments 1 reply
-
This appears to be loosely related to the logo found in system --> sales --> invoice and packing slip design. If I remove the logo for PDF print outs then it works. Add it back in it fails. I have tried multiple formats. |
Beta Was this translation helpful? Give feedback.
-
When you say multiple formats, which formats have you tried? There are some PNGs that Zend doesn't support but most common ones should work and if you use a different format altogether like JPG then there is no way it should cause this error. |
Beta Was this translation helpful? Give feedback.
-
Hi , thanks for the response. I have tried jpg and redone the png. All result in the same issue. The only way around is no image! Sent from my iPhone On 23 Jun 2025, at 17:39, Colin Mollenhour ***@***.***> wrote:
When you say multiple formats, which formats have you tried? There are some PNGs that Zend doesn't support but most common ones should work and if you use a different format altogether like JPG then there is no way it should cause this error.
I have edited this to make it cleared to read as replied via email
|
Beta Was this translation helpful? Give feedback.
-
I don't see how it could be trying to load the jpg as a png unless you're uploading the jpg with a .png extension: https://github.com/zf1s/zf1/blob/master/packages/zend-pdf/library/Zend/Pdf/Resource/ImageFactory.php#L45 |
Beta Was this translation helpful? Give feedback.
-
I don't see how it could be trying to load the jpg as a png unless you're uploading the jpg with a .png extension: https://github.com/zf1s/zf1/blob/master/packages/zend-pdf/library/Zend/Pdf/Resource/ImageFactory.php#L45
I haven’t changed the file. It’s the same as was working it the previous version. Sent from my iPhone On 23 Jun 2025, at 18:57, Colin
I have edited this to make it cleared to read as replied via email
|
Beta Was this translation helpful? Give feedback.
-
I don't see how it could be trying to load the jpg as a png unless you're uploading the jpg with a .png extension: https://github.com/zf1s/zf1/blob/master/packages/zend-pdf/library/Zend/Pdf/Resource/ImageFactory.php#L45
I’ll revise that - I hadn’t changed the file until it stopped working in the current version. Sent from my iPhone On 23 Jun 2025, at 18:57, Colin
|
Beta Was this translation helpful? Give feedback.
-
I reproduced the issue and found the bug but it looks like it was already fixed - just the fix was not released yet: |
Beta Was this translation helpful? Give feedback.
-
Do you know anything about this @sreichel ? It seems the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Team,
I have just updated to 20.14.0 and I get an error :
Steps to reproduce :
Admin panel --> Sales --> Invoices --> Click invoice -- > print
`There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 756294071196
Magento is a trademark of Magento Inc. Copyright © 2020 Magento Inc.`
If I dump the report it shows
a:5:{i:0;s:50:"Corrupt PNG Image. Mandatory IDAT chunk not found.";i:1;s:1770:"#0 /home/nginx/domains/seriouslylotus.com/public/vendor/shardj/zf1-future/library/Zend/Pdf/Resource/ImageFactory.php(54): Zend_Pdf_Resource_Image_Png->__construct() #1 /home/nginx/domains/seriouslylotus.com/public/vendor/shardj/zf1-future/library/Zend/Pdf/Image.php(124): Zend_Pdf_Resource_ImageFactory::factory() #2 /home/nginx/domains/seriouslylotus.com/public/app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php(137): Zend_Pdf_Image::imageWithPath() #3 /home/nginx/domains/seriouslylotus.com/public/app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php(101): Mage_Sales_Model_Order_Pdf_Abstract->insertLogo() #4 /home/nginx/domains/seriouslylotus.com/public/app/code/core/Mage/Adminhtml/Controller/Sales/Invoice.php(107): Mage_Sales_Model_Order_Pdf_Invoice->getPdf() #5 /home/nginx/domains/seriouslylotus.com/public/app/code/core/Mage/Adminhtml/controllers/Sales/Order/InvoiceController.php(470): Mage_Adminhtml_Controller_Sales_Invoice->printAction() #6 /home/nginx/domains/seriouslylotus.com/public/app/code/core/Mage/Core/Controller/Varien/Action.php(410): Mage_Adminhtml_Sales_Order_InvoiceController->printAction() #7 /home/nginx/domains/seriouslylotus.com/public/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(256): Mage_Core_Controller_Varien_Action->dispatch() #8 /home/nginx/domains/seriouslylotus.com/public/app/code/core/Mage/Core/Controller/Varien/Front.php(174): Mage_Core_Controller_Varien_Router_Standard->match() #9 /home/nginx/domains/seriouslylotus.com/public/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Controller_Varien_Front->dispatch() #10 /home/nginx/domains/seriouslylotus.com/public/app/Mage.php(743): Mage_Core_Model_App->run() #11 /home/nginx/domains/seriouslylotus.com/public/index.php(50): Mage::run() #12 {main}";s:3:"url";s:102:"/index.php/adminpanel/sales_order_invoice/print/invoice_id/38091/key/fda4de95cf1e90b25326f415ff27d4b6/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}
Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions