Title: Error when making PDF invoice
Last modified: January 14, 2025

---

# Error when making PDF invoice

 *  Resolved [NickSuy](https://wordpress.org/support/users/nicksuy/)
 * (@nicksuy)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/)
 * Hi guys,
 * Last week, my client noticed that her PDF’s and packing slips gave errors when
   trying to create one. I noticed the error saying something about an image wich
   was being used. It was the logo, so I replaced it with a JPG logo instead of 
   PNG, and it worked fine again.
 * However, since a few days, creating PDF invoices doesn’t work anymore. It gives
   the same (old) logo image name in the error. Making packing slips however works
   fine.
 * This is the error:
 * Exception: UnableToOpenBlob `file:///home2/qewyszit/public_html/wp-content/uploads/
   2022/09/Logo-Karen___serialized1.png’: No such file or directory @ error/blob.
   c/OpenBlob/2967/home2/qewyszit/public_html/wp-content/plugins/woocommerce-pdf-
   invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php (5726)#0 /home2/qewyszit/
   public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/
   dompdf/dompdf/lib/Cpdf.php(5726): Imagick->readImage(‘file:///home2/q…’) #1 /
   home2/qewyszit/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-
   slips/vendor/dompdf/dompdf/lib/Cpdf.php(5869): WPO\IPS\Vendor\Dompdf\Cpdf->addImagePngAlpha(‘
   file:///home2/q…’, 57.442913385827, 727.75417322835, 220.37980546549, 85.03937007874,
   6) #2 /home2/qewyszit/public_html/wp-content/plugins/woocommerce-pdf-invoices-
   packing-slips/vendor/dompdf/dompdf/src/Adapter/CPDF.php(670): WPO\IPS\Vendor\
   Dompdf\Cpdf->addPngFromFile(‘file:///home2/q…’, 57.442913385827, 727.75417322835,
   220.37980546549, 85.03937007874) #3 /home2/qewyszit/public_html/wp-content/plugins/
   woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer/Image.
   php(65): WPO\IPS\Vendor\Dompdf\Adapter\CPDF->image(‘file:///home2/q…’, 57.442913385827,
   29.096456692913, 220.37980546549, 85.03937007874, ‘normal’) #4 /home2/qewyszit/
   public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/
   dompdf/dompdf/src/Renderer.php(307): WPO\IPS\Vendor\Dompdf\Renderer\Image->render(
   Object(WPO\IPS\Vendor\Dompdf\FrameDecorator\Image)) #5 /home2/qewyszit/public_html/
   wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/
   src/Renderer.php(142): WPO\IPS\Vendor\Dompdf\Renderer->_render_frame(‘image’,
   Object(WPO\IPS\Vendor\Dompdf\FrameDecorator\Image)) #6 /home2/qewyszit/public_html/
   wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/
   src/Renderer.php(209): WPO\IPS\Vendor\Dompdf\Renderer->render(Object(WPO\IPS\
   Vendor\Dompdf\FrameDecorator\Image)) #7 /home2/qewyszit/public_html/wp-content/
   plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.
   php(209): WPO\IPS\Vendor\Dompdf\Renderer->render(Object(WPO\IPS\Vendor\Dompdf\
   FrameDecorator\TableCell)) #8 /home2/qewyszit/public_html/wp-content/plugins/
   woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(
   209): WPO\IPS\Vendor\Dompdf\Renderer->render(Object(WPO\IPS\Vendor\Dompdf\FrameDecorator\
   TableRow)) #9 /home2/qewyszit/public_html/wp-content/plugins/woocommerce-pdf-
   invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(209): WPO\IPS\Vendor\
   Dompdf\Renderer->render(Object(WPO\IPS\Vendor\Dompdf\FrameDecorator\TableRowGroup))#
   10 /home2/qewyszit/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-
   slips/vendor/dompdf/dompdf/src/Renderer.php(209): WPO\IPS\Vendor\Dompdf\Renderer-
   >render(Object(WPO\IPS\Vendor\Dompdf\FrameDecorator\Table)) #11 /home2/qewyszit/
   public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/
   dompdf/dompdf/src/FrameReflower/Page.php(151): WPO\IPS\Vendor\Dompdf\Renderer-
   >render(Object(WPO\IPS\Vendor\Dompdf\FrameDecorator\Block)) #12 /home2/qewyszit/
   public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/
   dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(907): WPO\IPS\Vendor\
   Dompdf\FrameReflower\Page->reflow(NULL) #13 /home2/qewyszit/public_html/wp-content/
   plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.
   php(810): WPO\IPS\Vendor\Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()#
   14 /home2/qewyszit/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-
   slips/includes/Makers/PDFMaker.php(54): WPO\IPS\Vendor\Dompdf\Dompdf->render()#
   15 /home2/qewyszit/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-
   slips/includes/Documents/OrderDocument.php(1329): WPO\IPS\Makers\PDFMaker->output()#
   16 /home2/qewyszit/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-
   slips/includes/Documents/OrderDocument.php(1395): WPO\IPS\Documents\OrderDocument-
   >get_pdf() #17 /home2/qewyszit/public_html/wp-content/plugins/woocommerce-pdf-
   invoices-packing-slips/includes/Main.php(528): WPO\IPS\Documents\OrderDocument-
   >output_pdf(‘inline’) #18 /home2/qewyszit/public_html/wp-includes/class-wp-hook.
   php(324): WPO\IPS\Main->generate_document_ajax(”) #19 /home2/qewyszit/public_html/
   wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #20 /home2/
   qewyszit/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #
   21 /home2/qewyszit/public_html/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_generat…’)#
   22 {main}
 * How could I fix this?
 * Kind regards,
 * Nick

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18243008)
 * Thanks for providing more details, [@nicksuy](https://wordpress.org/support/users/nicksuy/),
   but this seems to be a different error.
 * Just to rule out that this is not related with a corrupt update, please try downloading
   a fresh installation file of the latest release, here: [https://downloads.wordpress.org/plugin/woocommerce-pdf-invoices-packing-slips.3.9.4.zip](https://downloads.wordpress.org/plugin/woocommerce-pdf-invoices-packing-slips.3.9.4.zip)
 * Then, follow these steps to reinstall the plugin:
    - Go to **Plugins > Add New Plugin**
    - Click on the “**Upload Plugin**” button, choose the file you will download
      using the link I shared above, and then click on “**Install Now**”
    - Finally, **replace **your installed version **with the new one**.
 * Let me know whether it worked or not!
 *  Thread Starter [NickSuy](https://wordpress.org/support/users/nicksuy/)
 * (@nicksuy)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18243090)
 * Hi Yordan,
 * Thanks for helping me out. Unfortunately, reïnstalling the plugin didn’t solve
   the issue.
 * Kind regards, Nick
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18243241)
 * Thanks for trying that, [@nicksuy](https://wordpress.org/support/users/nicksuy/):
 * Could you send us a screenshot of your **System Configuration** and **Write Permissions**,
   that you’ll find under **WooCommerce > PDF Invoices > Advanced > Status** tab?
 * ![](https://i0.wp.com/i.ibb.co/swhbJrF/PDF-Invoices-System-Configuration.png?
   ssl=1)
 * ![](https://i0.wp.com/i.ibb.co/M8J2qTq/PDF-Invoices-Write-Permissions.png?ssl
   =1)
 * _The above are reference screenshots of the **System Configuration** and __**
   Write Permissions **areas._
 *  Thread Starter [NickSuy](https://wordpress.org/support/users/nicksuy/)
 * (@nicksuy)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18243261)
 * ![](https://wordpress.org/6177788e-5e95-41e5-932f-608fbc46e418)
 * ![](https://wordpress.org/345fe08e-528d-4131-96df-3360fb7474f3)
 * Hi Yordan,
 * Unfortunately, my screenshots don’t want to upload to this site.
 * I’ve noticed that the WP Memory limit is red. It says “WordPress: 40M, PHP: 256M”.
   
   I’ve tried increasing the memory limit but in my php config file it already has
   256M as its limit.
 * What’s the difference between WordPress and PHP in this case?
 * Kind regards,
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18243338)
 * WordPress applies its own memory limits, so we show the limit set for PHP so 
   you know if you can increase your WordPress limit beyond the current limit. See:
   [Increasing the WordPress Memory Limit](https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/)
 * Back to the issue, please answer these questions to try to understand what is
   happening here:
    1. Are you still using the PNG logo in your settings in WooCommerce > PDF Invoices
       > General > Shop logo? I mean the file named `Logo-Karen___serialized1.png`.
       If so, could you please try to switch to a JPEG image file instead?
    2. Is this happening in an old invoice or in a new one?
 * This last question is because you have to be aware that PDF invoices created 
   previously are not updated when you change the plugin’s settings in a latter 
   stage, therefore, if you change your settings for the shop or the document (like
   the shop logo), the previous invoices will not be affected, displaying nothing(
   if there was not a shop logo set at the moment of its generation) or the previous
   value for the setting, if it was different… or continue producing the issue, 
   because it is trying to get the old shop logo, which could be your case.
 * In brief, we store the settings for both, document and shop, per-order basis 
   for historical reasons. For instance, if you change your shop address in the 
   future, it should not affect old PDF invoices that you generated when your store
   was located in the old address.
 * That said, if you are just playing with the plugin configuration, this is a new
   installation, or you are debugging an issue, you could try to activate the “Test
   mode” temporarily, under WooCommerce > PDF Invoices > General > Test mode. See:
   [Show PDF documents with the latest settings](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/show-pdf-documents-with-the-latest-settings/).
 *  Thread Starter [NickSuy](https://wordpress.org/support/users/nicksuy/)
 * (@nicksuy)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18243350)
 * Hi Yordan,
    1. No, I haven’t been using the old logo for 2 weeks now. The weird thing is, while
       I have only 1 template for PDF and packing slip, the second works while the 
       PDF creation doesn’t work.
    2. I thought clicking the button “PDF invoice” created a new one. Seems like it
       doesn’t. I added a new order for myself, tried creating an invoice, and that
       one works fine…
 * I’ll let the client know that the issue has been solved. However, is their a 
   way now to create an invoice for the existing orders?
 * Kind regards,
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18243500)
 * > I’ll let the client know that the issue has been solved.
 * I’m glad to hear that!
 * > However, is their a way now to create an invoice for the existing orders?
 * Yes, there is. Just follow the instructions I have shared [above](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18243350:~:text=try%20to%20activate%20the%20%E2%80%9CTest%20mode%E2%80%9D%20temporarily%2C%20under%20WooCommerce%C2%A0%3E%20PDF%20Invoices%20%3E%20General%C2%A0%3E%20Test%20mode.%20See%3A%C2%A0Show%20PDF%20documents%20with%20the%20latest%20settings.)
   to achieve it 😉
 * In brief, temporarily activate the “Test mode” and open the invoices with the
   issue, to regenerate them with the latest settings. Please note that this will
   not change anything regarding the order data itself nor the invoice number/date,
   but it will update your shop (logo, address, etc.) and document settings.
 *  Thread Starter [NickSuy](https://wordpress.org/support/users/nicksuy/)
 * (@nicksuy)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18243523)
 * This works great. The issue has been solved. Thanks for your help! 🙂
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18245207)
 * I’m glad to hear that, [@nicksuy](https://wordpress.org/support/users/nicksuy/)!
   🎉
 * If you don’t mind and have the time, do you think you could [leave us a review](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/#new-post)?
 * Thanks in advance and all the best with your store!
 *  Thread Starter [NickSuy](https://wordpress.org/support/users/nicksuy/)
 * (@nicksuy)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18248180)
 * I just did, thanks!
 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18249534)
 * I just read your amazing 5-stars review, [@nicksuy](https://wordpress.org/support/users/nicksuy/)!
   ❤️
 * Thank you so much, and do not hesitate to write again if you need more help! 
   😉

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Error when making PDF invoice’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/error-when-making-pdf-invoice/#post-18249534)
 * Status: resolved