{"id":9335917,"date":"2017-07-20T09:51:32","date_gmt":"2017-07-20T09:51:32","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/great-plugin-but-have-started-having-error\/"},"modified":"2017-07-20T12:18:29","modified_gmt":"2017-07-20T12:18:29","slug":"great-plugin-but-have-started-having-error","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/great-plugin-but-have-started-having-error\/","title":{"rendered":"Great plugin! But have started having error&#8230;"},"content":{"rendered":"<p>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:<br \/>\n===============================<br \/>\nError message detected &#8211; PDF file generation aborted.<\/p>\n<p>display_zero_rated_vat is deprecated since version WooCommerce PDF Invoices v2.8 with no alternative available.<br \/>\nFile: \/webroot\/c\/l\/cleve008\/primary\/www\/cc\/wp-includes\/functions.php<br \/>\nLine: 3834<br \/>\n===============================<br \/>\nI also switched on WP_DEBUG and the following info was written into the debug.log:<\/p>\n<p>[20-Jul-2017 09:41:54 UTC] PHP Notice:  outlining_columns_html is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  get_columns_count is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  get_colspan is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  display_purchase_order_number is <strong>deprecated<\/strong> since version WooCommerce PDF Invoices v2.8! Use WPI()-&gt;templater()-&gt;get_meta( &#8216;_po_number&#8217; ) instead. in \/webroot\/c\/l\/cleve008\/primary\/www\/cc\/wp-includes\/functions.php on line 3831<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  display_vat_number is <strong>deprecated<\/strong> since version WooCommerce PDF Invoices v2.8! Use WPI()-&gt;templater()-&gt;get_meta( &#8216;_vat_number&#8217; ) instead. in \/webroot\/c\/l\/cleve008\/primary\/www\/cc\/wp-includes\/functions.php on line 3831<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::get_order_currency is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::has_meta( $order_item_id ) is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::get_order_currency is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::get_order_currency is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::has_meta( $order_item_id ) is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::get_order_currency is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::get_order_currency is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::has_meta( $order_item_id ) is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::get_order_currency is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::get_order_currency is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::has_meta( $order_item_id ) is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::get_order_currency is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::get_order_currency is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  get_colspan is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::get_order_currency is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  WC_Order::get_order_currency is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  display_zero_rated_vat is <strong>deprecated<\/strong> 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<br \/>\n[20-Jul-2017 09:41:54 UTC] PHP Notice:  display_zero_rated_vat is <strong>deprecated<\/strong> 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<br \/>\n[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<br \/>\n[20-Jul-2017 09:41:55 UTC] PHP Fatal error:  Uncaught exception &#8216;MpdfException&#8217; with message &#8216;Unable to create output file: \/webroot\/c\/l\/cleve008\/primary\/www\/cc\/wp-content\/uploads\/woocommerce-pdf-invoices\/attachments\/Order \/ Invoice No #535.pdf&#8217; in \/webroot\/c\/l\/cleve008\/primary\/www\/cc\/wp-content\/plugins\/woocommerce-pdf-invoices\/vendor\/mpdf\/mpdf\/mpdf.php:9442<br \/>\nStack trace:<br \/>\n#0 \/webroot\/c\/l\/cleve008\/primary\/www\/cc\/wp-content\/plugins\/woocommerce-pdf-invoices\/includes\/abstracts\/abstract-document.php(204): mPDF-&gt;Output(&#8216;\/webroot\/c\/l\/cl&#8230;&#8217;, &#8216;F&#8217;)<br \/>\n#1 \/webroot\/c\/l\/cleve008\/primary\/www\/cc\/wp-content\/plugins\/woocommerce-pdf-invoices\/includes\/abstracts\/abstract-invoice.php(325): BEWPI_Abstract_Document-&gt;generate(&#8216;F&#8217;)<br \/>\n#2 \/webroot\/c\/l\/cleve008\/primary\/www\/cc\/wp-content\/plugins\/woocommerce-pdf-invoices\/includes\/woocommerce-pdf-invoices.php(345): BEWPI_Abstract_Invoice-&gt;generate()<br \/>\n#3 [internal function]: BE_WooCommerce_PDF_Invoices-&gt;admin_pdf_callback(&#8221;)<br \/>\n#4 \/webroot\/c\/l\/cleve008\/primary\/www\/cc\/wp-includes\/class-wp-hook.php(298): call_user_func_array(Array, Array)<br \/>\n#5 \/w in \/webroot\/c\/l\/cleve008\/primary\/www\/cc\/wp-content\/plugins\/woocommerce-pdf-invoices\/vendor\/mpdf\/mpdf\/mpdf.php on line 9442<\/p>\n","protected":false},"template":"","class_list":["post-9335917","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9335917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9335917\/revisions"}],"predecessor-version":[{"id":9336323,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9335917\/revisions\/9336323"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9335917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}