bklogos
Forum Replies Created
-
Forum: Plugins
In reply to: [Nexi XPay] Is Nexi XPay compatible with PHP v8.1.29 ?The following warning was logged PHP v8.1.29 / Nexi v7.3.4
PHP message: PHP Warning: Undefined array key “tab” in /var/www/html/wp-content/plugins/cartasi-x-pay/src/classes/Nexi/WC_Gateway_Nexi_Register_Available.php on line 111″
[error] 160#160: *1489 FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key “tab” in /var/www/html/wp-content/plugins/cartasi-x-pay/src/classes/Nexi/WC_Gateway_Nexi_Register_Available.php on line 111″ while reading response header from upstream, request: “GET /wp-admin/admin.php?page=wc-settings HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php-fpm.sock:”
Thanks, I confirm no repeat of warning/error after update.
After following all your suggestions for upgrading to v0.7.6, saving all the settings, and replacing the receipt.php file. On the PDF Invoices & Packing Slips for WooCommerce admin page > Documents > Invoice > Previewing an EU based order. The following warning is stated. ( the warning does not show for non-EU orders )
PHP message: PHP Warning: Undefined array key “txtVatExemptUE” in /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/includes/class-wcpdf-integration3.php on line 448″
2024/11/13 13:16:15 [error] 160#160: *422 FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key “txtVatExemptUE” in /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/includes/class-wcpdf-integration3.php on line 448″ while reading response header from upstream , request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php-fpm.sock:”, page=wpo_wcpdf_options_page&tab=documents§ion=invoice”
If I then go to the order page and and use the “PDF Receipt” button a similar warning is created.
PHP message: PHP Warning: Undefined array key “txtVatExemptUE” in /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/includes/class-wcpdf-integration3.php on line 448″
2024/11/13 13:25:51 [error] 160#160: *630 FastCGI sent in stderr: “PHP message: PHP Warning: Undefined array key “txtVatExemptUE” in /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/includes/class-wcpdf-integration3.php on line 448″ while reading response header from upstream, request: “GET /wp-admin/admin-ajax.php?action=generate_wpo_wcpdf&document_type=receipt&order_ids=26832&access_key=4bc7189859 HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php-fpm.sock:”, post=26832&action=edit”
Settings: VAT/Tax Code always required = depends on billing country and user selection, (1) Hide the Italian Add-on fields if billing country is outside UE? = not required, If customer does not choose between invoice or receipt = Don’t issue any invoice or receipt, VAT/Tax Code field position = after Email field, VAT/Tax Code field width = Wide, Adds the fields for Electronic Invoicing = No
Forum: Plugins
In reply to: [WooCommerce Amazon Pay] Is Amazon Pay plugin compatible with PHP v8.1.29 ?Hi Christian,
Thanks for the reply, I just wanted to pre-check, one less thing to worry about when switching.
Best regards,
Brian
I saved the options page first, but just to double check I saved them again and ran the tests, same PHP Warning
Nov 11, 2024 12:19:24 PM
PHP message: PHP Warning: Undefined array key “txtVatExemptUE” in /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/includes/class-wcpdf-integration3.php
on line 448″Tried to display a few different orders and received this PHP Warning
PHP message: PHP Warning: Undefined array key “txtVatExemptUE” in /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/includes/class-wcpdf-integration3.php on line 448″
I duplicated the last invoice.php template, named it receipt.php and uploaded it to yourtemplates. This resolved any PHP errors, HOWEVER the Receipt Number & Receipt Date fields are now empty.
OK… If I change relevant code from invoice_number() & invoice_date() to receipt_number() & receipt_date() respectively, it appears to function correctly.
- This reply was modified 1 week, 4 days ago by bklogos.
Original template in the above post = the template from WooCommerce PDF Invoices Italian Add-on v0.7.4
There is only 1 template file in the folder under WooCommerce PDF Invoices Italian Add-on v0.7.6, it is named receipt.php and it has only a few lines of code.
<?php
if(defined("WP_PLUGIN_DIR") && file_exists(WP_PLUGIN_DIR . "/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php")){
include WP_PLUGIN_DIR . "/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php";
}Comparison of the original to the custom, there is only one difference. We removed the meta section Lines 90, 91 & 92.
<?php $description_label = __( 'SKU', 'woocommerce-pdf-italian-add-on' ); // registering alternate label translation ?>
<?php if( !empty( $item['sku'] ) ) : ?><dt class="sku"><?php _e( 'SKU:', 'woocommerce-pdf-italian-add-on' ); ?></dt><dd class="sku"><?php echo $item['sku']; ?></dd><?php endif; ?>
<?php if( !empty( $item['weight'] ) ) : ?><dt class="weight"><?php _e( 'Weight:', 'woocommerce-pdf-italian-add-on' ); ?></dt><dd class="weight"><?php echo $item['weight']; ?><?php echo get_option('woocommerce_weight_unit'); ?></dd><?php endif; ?>Same results, and if I roll-back to WooCommerce PDF Invoices Italian Add-on v0.7.4 both work
Forum: Plugins
In reply to: [BSK PDF Manager] PHP Warning: Undefined variableadditionally these warnings also apply.
Nov 8, 2024 1:01:12 PM PHP message: PHP Warning: Undefined array key “plugins” in /var/www/html/wp-content/plugins/bsk-pdf-manager-pro/classes/updater/update-helper.php on line 525″
Nov 8, 2024 1:01:12 PM PHP message: PHP Warning: foreach() argument must be of type array|object, null given in /var/www/html/wp-content/plugins/bsk-pdf-manager-pro/classes/updater/update-helper.php on line 525
The options are set for both the invoice and receipt, and the logo is set. The invoice document works properly, the receipt document does not.
Under PHP v8.1.29, PDF Invoices & Packing Slips for WooCommerce v3.9.0 & WooCommerce PDF Invoices Italian Add-on v0.7.4 both work
Under PHP v8.1.29, PDF Invoices & Packing Slips for WooCommerce
v3.9.0 & WooCommerce PDF Invoices Italian Add-on v0.7.6 the receipt does not workusing the “display receipt” button inside an order throws an error…
<table class=”head container receipt1″><tbody><tr><td class=”header”>
</td></tr></tbody></table>
<h3>Fatal error: Call to a member function get_header_logo_id() on null</h3>
/var/www/html/wp-content/themes/blank/woocommerce/pdf/yourtemplates/receipt.php (6)
#0 /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1494): include()
#1 /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1352): WPO\IPS\Documents\OrderDocument->render_template('/var/www/html/w...', Array)
#2 /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1307): WPO\IPS\Documents\OrderDocument->get_html()
#3 /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1374): WPO\IPS\Documents\OrderDocument->get_pdf()
#4 /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Main.php(528): WPO\IPS\Documents\OrderDocument->output_pdf('inline')
#5 /var/www/html/wp-includes/class-wp-hook.php(324): WPO\IPS\Main->generate_document_ajax('')
#6 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#7 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /var/www/html/wp-admin/admin-ajax.php(192): do_action('wp_ajax_generat...')
#9 {main}
Settings saved and server restarted. No sign of the warnings so far, however inside the plugin PDF Invoices & Packing Slips for WooCommerce v3.9.0, one of documents ( receipt ) no longer displays and shows 200: parsererror
Hi,
I confirm no issues on admin or site pages, no errors or warnings logged in either PHP v7.4 or v8.1
Thanks,