Hi @traeonna
That’s odd. Are you using a custom template or running any custom code snippets?
Not to my knowledge. Everything was fine when I was using 4.5.2-pr1188.1, but recently updated to 4.6.0 and that’s when everything stopped working.
When I try to generate an invoice (or packing slip):
InvoiceFatal error: Class “DOMDocument” not found/home/epub/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/wpo-ips-functions.php (623)#0 /home/epub/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocumentMethods.php(99): wpo_wcpdf_sanitize_html_content() #1 /home/epub/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocumentMethods.php(111): WPO\IPS\Documents\OrderDocumentMethods->get_billing_address() #2 /home/epub/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php(48): WPO\IPS\Documents\OrderDocumentMethods->billing_address() #3 /home/epub/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1783): include(‘/home/epub/publ…’) #4 /home/epub/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1639): WPO\IPS\Documents\OrderDocument->render_template() #5 /home/epub/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1596): WPO\IPS\Documents\OrderDocument->get_html() #6 /home/epub/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1663): WPO\IPS\Documents\OrderDocument->get_pdf() #7 /home/epub/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Main.php(517): WPO\IPS\Documents\OrderDocument->output_pdf() #8 /home/epub/public_html/wp-includes/class-wp-hook.php(324): WPO\IPS\Main->generate_document_ajax() #9 /home/epub/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #10 /home/epub/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #11 /home/epub/public_html/wp-admin/admin-ajax.php(192): do_action() #12 {main}
-
This reply was modified 10 months, 3 weeks ago by
Traeonna.
OMG I figured it out. I recently changed my PHP version and didn’t realize it would disable a bunch of extensions (like dom)!
Glad you found the solution!
Have a nice day!