• Hi,

    WooCommerce PDF Invoice Italian Add-on v0.7.6 & PHP v8.1

    Nov 8, 2024 9:13:21 AM PHP message: PHP Warning: Trying to access array offset on value of
    type bool in /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/woocommerce-pdf-italian-add-on.php
    on line 170″

    Nov 8, 2024 9:13:21 AM PHP message: PHP Warning: Trying to access array offset on value of type bool in /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/woocommerce-pdf-italian-add-on.php
    on line 171″

    Nov 8, 2024 9:13:21 AM PHP message: PHP Warning: Trying to access array offset on value of
    type bool in /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-italian-add-on/woocommerce-pdf-italian-add-on.php
    on line 172″

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Author labdav

    (@labdav)

    I’m sorry, but in our test we cannot reproduce this error.
    Can you specify on what occasion it happens?

    Thread Starter bklogos

    (@bklogos)

    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&section=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

    Plugin Author labdav

    (@labdav)

    Founded. Thanks for the advice.

    We have published a new update.

    Thread Starter bklogos

    (@bklogos)

    Thanks, I confirm no repeat of warning/error after update.

Viewing 4 replies - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.