Error with Advance custom fields
-
Hello, I’m trying to add a custom field (select type, multiple choice), but I keep receiving the error shown below. The other custom fields are displayed correctly, except for the date which, in the return format, despite being set as d/m/Y, is displayed without spaces.
Thank you in advance.Fatal error: nl2br(): Argument #1 ($string) must be of type string, array given /home/customer/www/demo-staging.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php (257) #0 /home/customer/www/demo-staging.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(257): nl2br(Array) #1 /home/customer/www/demo-staging.com/public_html/wp-content/themes/helter-child/woocommerce/pdf/Zeno/invoice.php(116): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->custom_field('dispositivo_med...') #2 /home/customer/www/demo-staging.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(976): include('/home/customer/...') #3 /home/customer/www/demo-staging.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(879): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template('/home/customer/...', Array) #4 /home/customer/www/demo-staging.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(834): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html() #5 /home/customer/www/demo-staging.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(901): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf() #6 /home/customer/www/demo-staging.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(466): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf('inline') #7 /home/customer/www/demo-staging.com/public_html/wp-includes/class-wp-hook.php(310): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax('') #8 /home/customer/www/demo-staging.com/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) #9 /home/customer/www/demo-staging.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /home/customer/www/demo-staging.com/public_html/wp-admin/admin-ajax.php(188): do_action('wp_ajax_generat...') #11 {main}
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Error with Advance custom fields’ is closed to new replies.