Fatal error: Unsupported operand types: int + string
-
Hi,
Our client noticed that seemingly randomly, in certain invoices when he goes to download it, he gets back a broken page with part of the invoice (right after the last article) and then an error at the bottom of the page.
Fatal error: Unsupported operand types: int + string/home/customer/www/website/public_html/wp-content/plugins/woocommerce-pdf-ips-templates/includes/class-wcpdf-templates-main.php (1809)
#0 /home/customer/www/website/public_html/wp-content/plugins/woocommerce-pdf-ips-templates/includes/class-wcpdf-templates-main.php(1745): WooCommerce_PDF_IPS_Templates_Main->get_tax_rates_base(Object(Automattic\WooCommerce\Admin\Overrides\Order))
#1 /home/customer/www/website/public_html/wp-content/plugins/woocommerce-pdf-ips-templates/includes/class-wcpdf-templates-main.php(242): WooCommerce_PDF_IPS_Templates_Main->add_tax_base(Array, Object(Automattic\WooCommerce\Admin\Overrides\Order))
#2 /home/customer/www/website/public_html/wp-content/plugins/woocommerce-pdf-ips-templates/includes/wcpdf-templates-functions.php(67): WooCommerce_PDF_IPS_Templates_Main->get_totals_table_data(Array, Object(WPO\WC\PDF_Invoices\Documents\Invoice))
#3 /home/customer/www/website/public_html/wp-content/plugins/woocommerce-pdf-ips-templates/templates/Modern/invoice.php(134): wpo_wcpdf_templates_get_totals(Object(WPO\WC\PDF_Invoices\Documents\Invoice))
#4 /home/customer/www/website/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1223): include(‘/home/customer/…’)
#5 /home/customer/www/website/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1079): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home/customer/…’, Array)
#6 /home/customer/www/website/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1036): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
#7 /home/customer/www/website/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1103): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
#8 /home/customer/www/website/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(566): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’)
#9 /home/customer/www/website/public_html/wp-includes/class-wp-hook.php(324): WPO\WC\PDF_Invoices\Main->generate_document_ajax(”)
#10 /home/customer/www/website/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
#11 /home/customer/www/website/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /home/customer/www/website/public_html/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_generat…’)
#13 {main}i changed the url for our website with “website” but that’s the error.
Can you help us identify the issue? We have yet to find a connection between the orders where this happens.
- You must be logged in to reply to this topic.