Error with MPDF
-
The plugin was working great. But suddendly stopped working and now returns a blank page with error:
Fatal error: Uncaught Mpdf\MpdfException: Data has already been sent to output, unable to output PDF file in /home/vangartc/vangartdecoracion.com/wp-content/plugins/wc-cart-pdf/vendor/mpdf/mpdf/src/Mpdf.php:9547 Stack trace: #0 /home/vangartc/vangartdecoracion.com/wp-content/plugins/wc-cart-pdf/wc-cart-pdf.php(176): Mpdf\Mpdf->Output('WC_Cart-2021072...', 'D') #1 /home/vangartc/vangartdecoracion.com/wp-includes/class-wp-hook.php(292): wc_cart_pdf_process_download('') #2 /home/vangartc/vangartdecoracion.com/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #3 /home/vangartc/vangartdecoracion.com/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #4 /home/vangartc/vangartdecoracion.com/wp-includes/template-loader.php(13): do_action('template_redire...') #5 /home/vangartc/vangartdecoracion.com/wp-blog-header.php(19): require_once('/home/vangartc/...') #6 /home/vangartc/vangartdecoracion.com/index.php(17): require('/home/vangartc/...') #7 {main} thrown in /home/vangartc/vangartdecoracion.com/wp-content/plugins/wc-cart-pdf/vendor/mpdf/mpdf/src/Mpdf.php on line 9547
Settings:
- WordPress 5.7.2
- Woocommerce 5.1.1
- Woocommerce CartPDF 2.1.3
- Send copy to admin enabled
- Using a personalized template to add more data to the pdf
- Also using a custom function to adds customer ID to filename for logged-in users
I tried disabling all plugins except for WC itself and WCPDF and also disabling my custom scripts and template, but the same happens. I searched the forum and saw a thread from a year ago with the same issue, but no info in there, nor a posibble solution.
I don’t now if this error came with the last update. but as far as I remember that was about a week ago.
Despite the error, this is really a great plugin!!
Hope someone can help, thanks.
The page I need help with: [log in to see the link]
- The topic ‘Error with MPDF’ is closed to new replies.