For months I updated the PHP, WordPress and Woocommerce, the plugin does not generate the shipping and invoice pdf due to a critical error.
Is there a problem connecting the plugin with PHP version 8.1.20?
An error of the type E_ERROR has occurred on line 507 of the file:
/homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/dompdf/src/Helpers.php. Mensaje de error: Uncaught Dompdf\Exception: file_get_contents(): Passing null to parameter #2 ($use_include_path) of type bool is deprecated 8192 in /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/dompdf/src/Helpers.php:507
Stack trace:
#0 [internal function]: Dompdf\Helpers::record_warnings()
#1 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/dompdf/src/Helpers.php(839): file_get_contents()
#2 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/dompdf/src/Css/Stylesheet.php(367): Dompdf\Helpers::getFileContent()
#3 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/dompdf/src/Dompdf.php(572): Dompdf\Css\Stylesheet->load_css_file()
#4 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/dompdf/src/Dompdf.php(724): Dompdf\Dompdf->processHtml()
#5 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/class.yith-document.php(85): Dompdf\Dompdf->render()
#6 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/class.yith-document.php(61): YITH_Document->generate_template()
#7 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/class.yith-shipping.php(91): YITH_Document->save_file()
#8 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/class.yith-woocommerce-pdf-invoice.php(421): YITH_Shipping->save()
#9 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/class.yith-woocommerce-pdf-invoice.php(401): YITH_WooCommerce_Pdf_Invoice->save_document()
#10 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/class.yith-woocommerce-pdf-invoice.php(328): YITH_WooCommerce_Pdf_Invoice->create_document()
#11 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-includes/class-wp-hook.php(308): YITH_WooCommerce_Pdf_Invoice->init_plugin_actions()
#12 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#13 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-includes/plugin.php(517): WP_Hook->do_action()
#14 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-settings.php(623): do_action()
#15 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-config.php(80): require_once('/homepages/10/d...')
#16 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-load.php(50): require_once('/homepages/10/d...')
#17 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-admin/admin.php(34): require_once('/homepages/10/d...')
#18 /homepages/10/d756136762/htdocs/clickandbuilds/ZambraShop/wp-admin/post.php(12): require_once('/homepages/10/d...')
#19 {main}
? thrown
]]>
Hi,
I am trying to find out how one would go about placing pagination at the bottom of PDF invoices as some invoices run to multiple pages.
]]>Hello,
I’m trying to add order status to the print invoice.
Whenever I generate a pdf, I want that invoice to have order status as well. Please help. Thanks and regards
Hello,
On orders from our customers we are adding some meta text on the product in the order.
This meta text does not show on the product in the invoice they get in PDF.
Is it possible to add this text on invoices?
]]>Hi, I want to get rid of the Invoice Number and use the Order Number instead.
How do I hide the invoice number completely on the PDF?
Thanks in advance!
Regards.
]]>I’m building an e-commerce site with woocommerce and theme Flatsome, I’ve add the plugin Pdf invoice and shipping list. When I process an order in the right section of the page I can create and delete the invoice and the printing list but when I click the buttons for view them, they only refresh the page and they don’t open or show me the invoice or the shipping list. At the same time the invoice is send to the customer’s e-mail so it seems to work. In the setting panel I can only customize the invoice template but nothing about the shipping, is that right? How can I solve it?
]]>Hello, I started to use your plugin but I noticed a problem with the currency. Unfortunately the currency chosen in the generated invoice is always the euro when in reality I use the dollar.
How do I fix this? It would be perfect if it would take the currency with which the user makes the payment.
thanks
]]>I would like to be able to send proforma invoice only to specific customer group: B2B
The specific group in created using another plugin: WooCommerce B2B
customer group
I guess I need some custom action hook which I couldn’t find in any of both plugin documentation.
Any help is appreciated.
]]>Thanks to everyone who contribute this Plugin
We have a woocommerce website in Persian language. I was surprised that YITH WooCommerce PDF Invoice and Shipping List doesn’t work properly and css not support rtl
Name of products, Company Name, Company Details, Invoice Notes, Invoice Footer, Monetary Unit of product are in Persian language.
How to enable Right-to-left (RTL) language support?
meta charset="utf-8"; lang="fa";
direction: rtl; Unicode: UTF-8;
]]>
We have Invoices set to get generated on order creation but in the use case where we have a manual subscription expire and create a renewal order with a Pending Payment status, the Invoice does not get created. This is also true in the case where someone buys a subscription with check payment as the payment method and the order gets created with Pending Payment status an no invoice. Is this a bug? Is there a way we can create a cron job or something that runs after the fact to automatically create the invoices.
Thanks
]]>Dear Support
Im using local-delivery-drivers-for-woocommerce plugin and each order assigned to driver
how i can add the Driver name in PDF order list – in invoice
i Tried the column name but didn’t work
{{_lddfw_driverid}}
Please help
]]>Hi guys hope your are fine
been using your Pdf invoice plugin smoothly for some years but this last update crashed the site
here is the log it may be usefull
hoping i can get a feedback from you guys, thanks for the great work ??
best regards Armand
YITH WooCommerce PDF Invoice and Shipping List
Version 1.2.30 | By YITH | View details
This plugin failed to load properly and is paused during recovery mode.
An error of type E_COMPILE_ERROR was caused in line 28 of the file /home/sartorybup/www/wp-content/plugins/yith-woocommerce-pdf-invoice/plugin-fw/yit-plugin.php. Error message: require_once(): Failed opening required ‘includes/class-yit-help-desk.php’ (include_path=’.:/usr/local/php7.4/lib/php’)
Hi,
there is any way to add new placeholder for information about product variation in note section on invoice template?
Now i can add this information checking the option “Product variation” in “Visible columns” – but i need add this same info in text on note section.
Maybe I can create something like {{_product_variations}} by adding some code? Can you help me?
]]>Détails de l’erreur
======================
Une erreur de type E_ERROR a été causée dans la ligne 28 du fichier /*/*/*/*httpdocs/wp-content/plugins/yith-woocommerce-pdf-invoice/plugin-fw/yit-plugin.php. Message d’erreur : Uncaught Error: Failed opening required ‘includes/class-yit-help-desk.php’ (include_path=’.:/opt/plesk/php/8.0/share/pear’) in /*/*/*/*httpdocs/wp-content/plugins/yith-woocommerce-pdf-invoice/plugin-fw/yit-plugin.php:28
Stack trace:
#0 /*/*/*/*httpdocs/wp-content/plugins/yith-woocommerce-pdf-invoice/lib/class.yith-ywpi-plugin-fw-loader.php(97): require_once()
#1 /*/*/*/*httpdocs/wp-includes/class-wp-hook.php(292): YITH_YWPI_Plugin_FW_Loader->plugin_fw_loader()
#2 /*/*/*/*httpdocs/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters()
#3 /*/*/*/*httpdocs/wp-includes/plugin.php(484): WP_Hook->do_action()
#4 /*/*/*/*httpdocs/wp-settings.php(423): do_action()
#5 /*/*/*/*httpdocs/wp-config.php(97): require_once(‘…’)
#6 /*/*/*/*httpdocs/wp-load.php(37): require_once(‘…’)
#7 /*/*/*/*httpdocs/wp-admin/admin.php(34): require_once(‘…’)
#8 /*/*/*/*httpdocs/wp-admin/update-core.php(10): require_once(‘…’)
#9 {main}
thrown
[Moderator note: Please, No bumping].
]]>I have an constant error with the plugin yith-woocommerce-pdf-invoice
– [Thu Jul 08 15:39:27.187656 2021] [lsapi:error] [pid 3047274:tid 140296574625536] [client 185.130.218.87:59875] [host heren-armband.nl] Backend fatal error: PHP Fatal error: require_once(): Failed opening required ‘includes/class-yit-help-desk.php’ (include_path=’.:/opt/alt/php74/usr/share/pear’) in /home/deb78245/domains/heren-armband.nl/public_html/wp-content/plugins/yith-woocommerce-pdf-invoice/plugin-fw/yit-plugin.php on line 28\n, referer: https://heren-armband.nl/
I got advised to contact the maker of the plugin. Can you help me out?
]]>Hi this error is causing wordpress issues can it be fixed I use this plug in for sales invoices
YITH WooCommerce PDF Invoice and Shipping List
An error of type E_COMPILE_ERROR was caused in line 28 of the file /home/sites/8a/0/02c44bf75a/public_html/wp-content/plugins/yith-woocommerce-pdf-invoice/plugin-fw/yit-plugin.php. Error message: require_once(): Failed opening required ‘includes/class-yit-help-desk.php’ (include_path=’.:/usr/share/pear’)
]]>Hi,
As soon as YITH WooCommerce PDF Invoice and Shipping List has been updated from Version 1.2.29 to Version 1.2.30 the fatal error appears and the following message is except of an admin pannel and the site:
Warning: require_once(includes/class-yit-help-desk.php): failed to open stream: No such file or directory in /wp-content/plugins/yith-woocommerce-pdf-invoice/plugin-fw/yit-plugin.php on line 28
Fatal error: require_once(): Failed opening required ‘includes/class-yit-help-desk.php’ (include_path=’.:/opt/alt/php74/usr/share/pear’) in /wp-content/plugins/yith-woocommerce-pdf-invoice/plugin-fw/yit-plugin.php on line 28
]]>YITH WooCommerce PDF Invoice and Shipping List plugin was working since may 18 2021.after that when creating invoice http 500 error is showing.when clicking on reload are ypo sure you want to do this question is asking and if presses yes the create invoice option is changed to show invoice.but the invoice is not downloaded and we cannot see it in uploads/ywpi-pdf-invoice folder.when showing show invoice the page is simply refreshing.
i am attcahing the versions below.
wordpress-4.7.21
woocommerce-3.1.2
YITH WooCommerce PDF Invoice and Shipping List-1.1.19
Hi
In the last update the php help is missing, it is not inside the includes folder and the web is broken
I have solved it commenting on the call:
/*require_once ‘includes/class-yit-help-desk.php’;*/
]]>Hello,
I added the product image on my invoice to be printed, but is there a way of making the image size bigger? Our products are very similar so we need the pictures to be bigger in order to identify them.
thanks and regards,
]]>Hello.
in the invoice the order discount is showing 0 even when the regular price is higher then the sale price.
also the discount percent on each line product shows 0%
PDF files have not been downloaded to my local folder for a month, everything has worked fine for 1 year.
Please I need a solution
Thank you very much
I am using yith plugin on woocommerce store and when I click on plugin>>premium version, I get 2 errors as below –
Notice: Undefined index: premium in D:\inetpub\IICJWooStore\wp-content\plugins\yith-woocommerce-pdf-invoice\plugin-fw\includes\class-yit-plugin-panel-woocommerce.php on line 258
Warning: Invalid argument supplied for foreach() in D:\inetpub\IICJWooStore\wp-content\plugins\woocommerce\includes\admin\class-wc-admin-settings.php on line 208
Can you let me know the reason of that.
]]>Hi,
I would have liked to change the “Shipping” text at the invoice to show a standard “Postage & Packing” text instead. How can I achieve this?
Thank you
]]>Hi,
How to completely reset this plugin from ftp?
]]>When generating the invoice, not all fields of the order are showing up. I have 2 different scenarios that might be adressed differently on your side:
A. In the ADMIN dashboard, into the woocommerce order, we can edit the order to add meta fields. This comes with the woocommerce Custom Product Addons plugin. I don’t know if your plugin is compatible with this one. I would like to include them in the invoice details. Can you please tell me what is the code to add to the file functions.php of my theme ?
B. In the ADMIN dashboard, into the woocommerce order, we can also add additional fees. This is part of a series of buttons below the order where you can add fees, add a product, add shipping, add taxes, etc. Unfortunately, when additional fields are added, they are not showing on the invoice neither. This is very important.
Here is a reference image to illustrate the topics: https://www.strateisqm.ca/wp-content/uploads/2021/04/Woocommerce-order-information-and-details.png
I have seen the following article to add the notes on the invoice: https://support.yithemes.com/hc/en-us/articles/360017737113-How-to-show-order-notes-in-the-invoice
I guess there is also something similar we can program to add additional fields as well as meta information coming from the plugin woocommerce Custom Product Addons ?
Thanks again for your precious help !!!
]]>It is possible to specify a quantity that is stored in the product meta data and comes from the calculation tool (woocommerce-measurement-price-calculator). to be stated as quantity?
I sell by the meter and have to indicate both the basic price and the efective item price on the invoice. I was able to save the prices, but unfortunately that doesn’t work with the quantity. I imagine a function file for my kids theme.
Sry my english
I am happy with this plugin but the finishing touches are still missing
Hi there,
In order to alleviate the job of our workers, I am wondering whether it would be possible to include the short description of the products to the pdf invoice?
If not, can you propose an alternative?
Many thx !
]]>Hi team
A few weeks ago you helped me in adding the SKU field to the invoice pdf. Thx for that ?? Now we have had our first real auctions and we will have to adapt our working methods to the remarks of our management board. Could you please help me in deleting this SKU again? I use the following code in the invoice-details.php. THANK YOU !
<?php global $ywpi_document; ?>
<table class="invoice-details">
<thead>
<tr>
<th class="column-product"><?php _e ( 'Product', 'yith-woocommerce-pdf-invoice' ); ?></th>
<th class="column-quantity"><?php _e ( 'Qty', 'yith-woocommerce-pdf-invoice' ); ?></th>
</tr>
</thead>
<tbody>
<?php
$order_items = $ywpi_document->order->get_items ();
foreach ( $order_items as $item_id => $item ) {
if ( isset( $item['qty'] ) ) {
$price_per_unit = $item["line_subtotal"] / $item['qty'];
$price_per_unit_sale = $item["line_total"] / $item['qty'];
$discount = $price_per_unit - $price_per_unit_sale;
}
$tax = $item["line_tax"];
$product = wc_get_product( $item['product_id'] );
?>
<tr>
<td class="column-product"><?php echo $item['name']; ?>
<br>
<?php echo "SKU: " . $product->get_sku(); ?>
</td>
<td class="column-quantity"><?php echo ( isset( $item['qty'] ) ) ? esc_html ( $item['qty'] ) : ''; ?></td>
</tr>
<?php };
foreach ( $order_shipping as $item_id => $item ) {
if ( isset( $item['cost'] ) ) {
$total_shipping += $item['cost'];
}
?>
<tr>
<td class="column-product">
<?php echo ! empty( $item['name'] ) ? esc_html ( $item['name'] ) : __ ( 'Shipping', 'yith-woocommerce-pdf-invoice' ); ?>
</td>
<td class="column-quantity">
</td>
</tr>
<?php
};
foreach ( $order_fees as $item_id => $item ) {
if ( isset( $item['line_total'] ) ) {
$total_fee += $item['line_total'];
}
if ( isset( $item['line_tax'] ) ) {
$total_fee_tax += $item['line_tax'];
}
?>
<tr>
<td class="column-product">
<?php echo ! empty( $item['name'] ) ? esc_html ( $item['name'] ) : __ ( 'Fee', 'yith-woocommerce-pdf-invoice' ); ?>
</td>
<td class="column-quantity">
</td>
</tr>
<?php
};
?>
</tbody>
</table>
<table>
<tr>
<td class="column1">
</td>
<td class="column2">
</td>
</tr>
</table>
]]>
Buenos días, tengo instalada la versión gratuita, y he estado generando facturas sin problemas, pero al ir a generar las últimas facturas no aparece el logo en ellas.
Tengo este código personalizado en functions.php
`if ( ! function_exists(‘yith_ywpi_company_image_path_call_back’ ) ) {
function yith_ywpi_company_image_path_call_back($company_logo_path)
{
$uploads = wp_upload_dir();
$array_company_logo_path = explode(“uploads”, $company_logo_path);
return $uploads[‘basedir’] . $array_company_logo_path[1];
}
add_filter(‘yith_ywpi_company_image_path’, ‘yith_ywpi_company_image_path_call_back’, 10, 1);
}
Como les digo hasta hoy no he tenido ningún problema, creo que se ha producido después de la última actualización.
Un saludo y muchas gracias por la atención
]]>