• Resolved dubbyd

    (@dubbyd)


    I love this plugin. Recently it has been throwing an error and so when a customer makes an order, the new order email fails to send because the PDF cannot be created and attached to the email. I enabled mPDF debugging and the following info came up which may be helpful for debugging purposes:
    ===============================
    Error message detected – PDF file generation aborted.

    display_zero_rated_vat is deprecated since version WooCommerce PDF Invoices v2.8 with no alternative available.
    File: /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php
    Line: 3834
    ===============================
    I also switched on WP_DEBUG and the following info was written into the debug.log:

    [20-Jul-2017 09:41:54 UTC] PHP Notice: outlining_columns_html is deprecated since version WooCommerce PDF Invoices v2.8 with no alternative available. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3834
    [20-Jul-2017 09:41:54 UTC] PHP Notice: get_columns_count is deprecated since version WooCommerce PDF Invoices v2.8 with no alternative available. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3834
    [20-Jul-2017 09:41:54 UTC] PHP Notice: get_colspan is deprecated since version WooCommerce PDF Invoices v2.8 with no alternative available. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3834
    [20-Jul-2017 09:41:54 UTC] PHP Notice: display_purchase_order_number is deprecated since version WooCommerce PDF Invoices v2.8! Use WPI()->templater()->get_meta( ‘_po_number’ ) instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: display_vat_number is deprecated since version WooCommerce PDF Invoices v2.8! Use WPI()->templater()->get_meta( ‘_vat_number’ ) instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::has_meta( $order_item_id ) is deprecated since version 3.0! Use WC_Order_item::get_meta_data instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::has_meta( $order_item_id ) is deprecated since version 3.0! Use WC_Order_item::get_meta_data instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::has_meta( $order_item_id ) is deprecated since version 3.0! Use WC_Order_item::get_meta_data instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::has_meta( $order_item_id ) is deprecated since version 3.0! Use WC_Order_item::get_meta_data instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: get_colspan is deprecated since version WooCommerce PDF Invoices v2.8 with no alternative available. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3834
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: WC_Order::get_order_currency is deprecated since version 3.0! Use WC_Order::get_currency instead. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3831
    [20-Jul-2017 09:41:54 UTC] PHP Notice: display_zero_rated_vat is deprecated since version WooCommerce PDF Invoices v2.8 with no alternative available. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3834
    [20-Jul-2017 09:41:54 UTC] PHP Notice: display_zero_rated_vat is deprecated since version WooCommerce PDF Invoices v2.8 with no alternative available. in /webroot/c/l/cleve008/primary/www/cc/wp-includes/functions.php on line 3834
    [20-Jul-2017 09:41:55 UTC] PHP Warning: fopen(/webroot/c/l/cleve008/primary/www/cc/wp-content/uploads/woocommerce-pdf-invoices/attachments/Order / Invoice No #535.pdf): failed to open stream: No such file or directory in /webroot/c/l/cleve008/primary/www/cc/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php on line 9440
    [20-Jul-2017 09:41:55 UTC] PHP Fatal error: Uncaught exception ‘MpdfException’ with message ‘Unable to create output file: /webroot/c/l/cleve008/primary/www/cc/wp-content/uploads/woocommerce-pdf-invoices/attachments/Order / Invoice No #535.pdf’ in /webroot/c/l/cleve008/primary/www/cc/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php:9442
    Stack trace:
    #0 /webroot/c/l/cleve008/primary/www/cc/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-document.php(204): mPDF->Output(‘/webroot/c/l/cl…’, ‘F’)
    #1 /webroot/c/l/cleve008/primary/www/cc/wp-content/plugins/woocommerce-pdf-invoices/includes/abstracts/abstract-invoice.php(325): BEWPI_Abstract_Document->generate(‘F’)
    #2 /webroot/c/l/cleve008/primary/www/cc/wp-content/plugins/woocommerce-pdf-invoices/includes/woocommerce-pdf-invoices.php(345): BEWPI_Abstract_Invoice->generate()
    #3 [internal function]: BE_WooCommerce_PDF_Invoices->admin_pdf_callback(”)
    #4 /webroot/c/l/cleve008/primary/www/cc/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array)
    #5 /w in /webroot/c/l/cleve008/primary/www/cc/wp-content/plugins/woocommerce-pdf-invoices/vendor/mpdf/mpdf/mpdf.php on line 9442

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    Hi,

    You are using a forward slash in invoice number therefore the system cannot find the pdf invoice. Remove the slash and you should be good to go.

    Order / Invoice No #535.pdf): failed to open stream: No such file or directory

    Thread Starter dubbyd

    (@dubbyd)

    Awesome! That did the trick. Weird that it was working before. But hey I’m happy again 🙂 Thanks for taking the the time to troubleshoot my problem.

    • This reply was modified 8 years, 10 months ago by dubbyd.
    Plugin Author Bas Elbers

    (@baaaaas)

    Would you be so kind to rate the plugin? It will support future development a lot! Many thanks. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Great plugin! But have started having error…’ is closed to new replies.