Home > Docs > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin > WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin – Troubleshooting Guide

WooCommerce PDF Invoices, Packing Slips and Credit Notes Plugin – Troubleshooting Guide

Last updated on January 24, 2024

The WebToffee’s WooCommerce PDF Invoices, Packing Slips, and Credit Notes plugin is a one-stop solution to customize, auto-generate, and print WooCommerce PDF invoices, packing slips, and credit notes. However, even the most reliable tools can face occasional hiccups. This troubleshooting guide will provide you with the common problems faced while using the plugin and their solutions.

1. Image missing/Corrupted issue in PDF documents

This issue can mainly occur due to the following reasons.:

a. Lack of an image processing library

Image-missing issues may arise when there is an absence of an image-processing library or when the existing library is incompatible with the uploaded image.

Solution

Make sure to use an image processing library that is compatible with the uploaded images.

b. Issue with the image size

Uploading images that exceed the server capacity can lead to image-missing issues.

Solution

Make sure to upload images that fit within the server’s capacity.

c. Server request restrictions

When your site’s images are hosted on an external server, there is a possibility that the server may block requests from external servers.

Solution

Get in touch with your server team and find a solution for unblocking the external server requests.

d. Permission issues

Insufficient permissions can hinder WordPress from reading files on the hosting server.

Solution

Ensure that WordPress has the necessary permissions to read files on the hosting server.

e. Issue with the dompdf library

The plugin uses the built-in dompdf library which may not support certain images while converting HTML to PDF documents. This can cause image missing issue in PDF documents.

Solution:

Install WebToffee’s free mPDF add-on and replace the dompdf library with the Mpdf library. To do so, follow the below steps:

  1. Install and activate WebToffee’s free mPDF add-on.
  2. Navigate to Invoice/Packing > General Settings > Advanced.
  3. Under PDF library, select Mpdf.
Switching Dompdf with Mpdf library
Switching Dompdf with Mpdf library
  1. Click on Update Settings.

2. Language Missing and RTL support issue in PDF documents

This issue occurs due to the limitation in the built-in dompdf library which is used for HTML to PDF conversion. The dompdf library doesn’t support RTL languages like Arabic and Hebrew.

Solution

A solution to this is to install WebToffee’s free mPDF add-on. Then enable RTL support for documents and replace the dompdf library with the mPDF library. Below is the step-by-step solution:

  1. Install and activate WebToffee’s free mPDF add-on.
  2. Navigate to Invoice/Packing > General Settings > Advanced.
  3. Head to the Enable RTL support option and enable it by marking the checkbox next to it.
  4. Under the PDF library option, select Mpdf to replace the existing library.
Enabling RTL support and switching the PDF library
Enabling RTL support and switching the PDF library
  1. Click on Update Settings.

3. ‘Unable to save settings’ issue

This issue commonly arises due to the presence of an installed firewall on your website. WordFence and Sucuri are common firewalls that can cause this issue. The firewall might be preventing the action required to save the plugin settings.

Workaround

Whitelist the action that is currently preventing the settings from being saved. Admins can allow certain actions by adding them to the whitelist.

4. Missing string translations issue

The plugin is compatible with popular translation plugins like WPML string translation, Loco Translate, etc, which are useful for translating strings within the plugin. While using the WPML string translation tool, there may be instances where certain strings within the plugin are not available for translation.

Solution

  1. From the WordPress dashboard, navigate to WPML > String Translation.
  2. Head to the ‘Look for strings while pages are rendered’ option and enable it by marking the checkbox.
Navigating to the option in the WPML string translation page
Navigating to the option in the WPML string translation page
  1. Proceed to the WooCommerce Orders page (WooCommerce > Orders) and generate the invoice (if the missing strings are present in the invoice document) for an order.
  2. Return to the WPML > String translation page, and you’ll see the previously missing strings are now added.
  3. Now, add the translations for the newly added strings.
  4. Finally, turn off the ‘Look for strings while pages are rendered’ option.

Is your issue not on the list?

If you continue to experience difficulties, feel free to contact our support team. Provide them with the error details to receive additional help and guidance.