Fixing Blank PDF Invoices and Packing Slips in WooCommerce
Content
One of the most common issues users encounter with the 'PDF Invoices & Packing Slips for WooCommerce' plugin is documents generating as blank or white pages. This problem can be frustrating, especially after a site migration, update, or change in hosting environment. Based on community reports and solutions, this guide outlines the primary causes and the most effective troubleshooting steps to resolve blank PDF generation.
Why Do Blank PDFs Occur?
Blank PDFs are almost always related to one of two core issues: missing plugin fonts or a server configuration conflict. The fonts required for PDF generation are stored in a temporary directory within your site's uploads folder. If these fonts are missing, corrupted, or inaccessible, the PDF engine cannot render the document text, resulting in a blank page. Server changes, migrations, or even certain cleanup routines can accidentally remove these essential files.
How to Fix Blank PDF Invoices and Packing Slips
1. Reinstall the Plugin Fonts (The Most Common Fix)
This is the first and most successful step for the majority of users. The process forces the plugin to recreate its necessary font files.
- Navigate to WooCommerce > PDF Invoices > Advanced.
- Click on the Tools tab.
- Click the 'Reinstall fonts' button.
- After the process completes, test by generating a new PDF invoice or packing slip.
2. Check for PHP Memory Limit Errors
Insufficient PHP memory can cause the PDF generation process to fail silently. This often manifests as a blank page or a critical error.
- Contact your web host and ask them to check your server's error logs for memory-related issues.
- Request that they increase your PHP memory limit. A limit of 256MB or higher is often sufficient to resolve the problem.
3. Investigate Plugin or Theme Conflicts
A conflict with another plugin or your theme can interfere with PDF generation.
- Temporarily switch your WordPress theme to a default theme like Twenty Twenty-Four.
- Deactivate all other plugins except for WooCommerce and the PDF Invoices plugin.
- Test if the PDFs generate correctly. If they do, reactivate your plugins and theme one by one to identify the culprit.
4. Review WooCommerce Error Logs
The plugin often logs specific errors that can pinpoint the exact issue.
- Go to WooCommerce > Status > Logs.
- Look for log files that start with
fatal-errors,wpo-wcpdf, or the current date. - Open the most relevant log file and look for any error messages related to PDF generation, missing files, or permissions.
5. Verify Temporary Folder Permissions
The plugin needs write permissions to its temporary folder inside wp-content/uploads.
- Use an FTP client or your hosting provider's file manager.
- Navigate to
/wp-content/uploads/. - Ensure the
wpo_wcpdffolder (or similarly named folder) exists and has write permissions (usually 755 for folders and 644 for files).
When to Seek Further Help
If the steps above do not resolve the issue, the problem may be more complex. Common advanced issues include custom template errors, specific server module requirements (like GD or MBString), or conflicts with optimization/security plugins that modify URLs or block admin-ajax.php requests. In these cases, providing your system status report and error logs to a knowledgeable developer is the best next step.
By methodically working through these common solutions, you can quickly identify and fix the cause of your blank PDF invoices and packing slips.
Related Support Threads Support
-
Blank PDF invoice after host migrationhttps://wordpress.org/support/topic/blank-pdf-invoice-after-host-migration/
-
The header image is not visiblehttps://wordpress.org/support/topic/the-header-image-is-not-visible/
-
Problem with 3.8.5.and 3.8.6 updatehttps://wordpress.org/support/topic/problem-with-3-8-5-and-3-8-6-update/
-
Images not showinghttps://wordpress.org/support/topic/images-not-showing-291/
-
Blank Preview and missing order confirmationhttps://wordpress.org/support/topic/blank-preview-and-missing-order-confirmation/
-
PDF Invoices & Packing Sliips return 404 Errorhttps://wordpress.org/support/topic/pdf-invoices-packing-sliips-return-404-error/
-
You do not have sufficient permissions to access this page. Reason: empty accesshttps://wordpress.org/support/topic/you-do-not-have-sufficient-permissions-to-access-this-page-reason-empty-access/
-
Invoice Generation Brokenhttps://wordpress.org/support/topic/invoice-generation-broken/
-
Error: Exception: unable to open imagehttps://wordpress.org/support/topic/error-exception-unable-to-open-image/
-
There has been a critical error on this websitehttps://wordpress.org/support/topic/there-has-been-a-critical-error-on-this-website-285/
-
After moving hosting it creates white invoices and packing slipshttps://wordpress.org/support/topic/after-moving-hosting-it-creates-white-invoices-and-packing-slips/
-
Error Permission message when click to download pdf in thank you pagehttps://wordpress.org/support/topic/error-permission-message-when-click-to-download-pdf-in-thank-you-page/
-
Problem displaying invoiceshttps://wordpress.org/support/topic/problem-displaying-invoices/
-
I can’t edit pdfs from todayhttps://wordpress.org/support/topic/i-cant-edit-pdfs-from-today/
-
Pdf Invoices SHOWS UP CRASHEDhttps://wordpress.org/support/topic/pdf-invoices-shows-up-crashed/
-
The plugin gives a blank pdf invoicehttps://wordpress.org/support/topic/the-plugin-gives-a-blank-pdf-invoice/
-
Error page Missinghttps://wordpress.org/support/topic/error-page-missing/
-
Images Broken in PDF Invoiceshttps://wordpress.org/support/topic/images-broken-in-pdf-invoices/
-
Separate problem with pdf invoice plugin on 2 siteshttps://wordpress.org/support/topic/separate-problem-with-pdf-invoice-plugin-on-2-sites/
-
Since the last update the pluggin it isnt working properlyhttps://wordpress.org/support/topic/since-the-last-update-the-pluggin-it-isnt-working-properly/
-
Blank pagehttps://wordpress.org/support/topic/blank-page-326/
-
Don´t works pdf invoiceshttps://wordpress.org/support/topic/dont-works-pdf-invoices/
-
PDF Plugin Not Workinghttps://wordpress.org/support/topic/pdf-plugin-not-working/
-
The invoice appears full-screenhttps://wordpress.org/support/topic/the-invoice-appears-full-screen/
-
Invoice pre-view not showinghttps://wordpress.org/support/topic/invoice-pre-view-not-showing/
-
Broken Invoiceshttps://wordpress.org/support/topic/broken-invoices/
-
When plugin is enabled it stops working bank transferhttps://wordpress.org/support/topic/when-plugin-is-enabled-it-stops-working-bank-transfer/
-
PDF is blank but html okhttps://wordpress.org/support/topic/pdf-is-blank-but-html-ok/
-
Empty blankhttps://wordpress.org/support/topic/empty-blank/
-
PDF wrong formathttps://wordpress.org/support/topic/pdf-wrong-format/
-
PDF invoices are not loadinghttps://wordpress.org/support/topic/pdf-invoices-are-not-loading/
-
Blank page when activating the pluginhttps://wordpress.org/support/topic/blank-page-when-activating-the-plugin/
-
There has been a critical error on this website. Please check your site admin emhttps://wordpress.org/support/topic/there-has-been-a-critical-error-on-this-website-please-check-your-site-admin-em-44/
-
Error trying to generate document: parent table not found for table cellhttps://wordpress.org/support/topic/error-trying-to-generate-document-parent-table-not-found-for-table-cell/
-
PDF folder deleted for my custom templatehttps://wordpress.org/support/topic/pdf-folder-deleted-for-my-custom-template/
-
Not create PDF Invoiceshttps://wordpress.org/support/topic/not-create-pdf-invoices/
-
Premium Templates version 2.21.12https://wordpress.org/support/topic/premium-templates-version-2-21-12/
-
Invoices are generating blankhttps://wordpress.org/support/topic/invoices-are-generating-blank/
-
Invoices don’t print – 404 errorhttps://wordpress.org/support/topic/invoices-dont-print-404-error/