PDF Invoices
Use this when checkout or the Tools tab shows “ERROR Generating PDF,” tofu boxes instead of letters, or a PHP error inside Dompdf. Start with the latest zip from your account, then match the symptom in the table.
If File downloads lists 2.1 but the zip still installs as 2.0, stop and contact support. Mixed Dompdf files from a partial update can fatally error.
| What you see | Likely cause | What to try |
|---|---|---|
| “ERROR Generating PDF. Please try again.” | The HTML template or a font failed while Dompdf rendered the file. | Download Sample PDF. Simplify the template. Check debug.log. See fonts below. |
| Blank squares (□) instead of letters | The PDF font does not include those glyphs. | Embed a font that covers the language. Japanese: Noto Sans JP guide linked below. |
Call to undefined method Dompdf\Helpers::uniord() | Incomplete or mixed plugin files (old and new Dompdf together). | Delete the plugin folder and install a fresh zip from File downloads. Do not copy over the old folder. |
| Sample PDF works, old orders do not | Old stored files, or a template change not regenerated. | Generate Missing or Regenerate All on the Tools tab. |
Dompdf only draws characters that exist in the font used by the template. Arial or Times on the server often lack Slovak, Czech, Japanese, and similar glyphs.
Leftover Dompdf files from 2.0 mixed with 2.1 cause fatal errors such as missing Helpers::uniord().
Fix: Remove wp-content/plugins/pmpro-pdf-invoices, then install the zip from File downloads.
The PDF does not use your theme stylesheet.
Fix: Set the font inside the invoice template HTML/CSS, and make sure that font file is available to Dompdf.