• Resolved mercurydan

    (@mercurydan)


    Im updating PHP from 7.4 to 8.1 and I get this error when printing out invoices

    Fatal error: Uncaught Error: implode(): Argument #1 ($pieces) must be of type array, string given
    in /public_html/wp-content/plugins/woocommerce-jetpack/includes/shortcodes/class-wcj-orders-shortcodes.php on line 561
    
    Call stack:
    
    implode()
    wp-content/plugins/woocommerce-jetpack/includes/shortcodes/class-wcj-orders-shortcodes.php:561
    WCJ_Orders_Shortcodes::wcj_order_customer_user_roles()
    wp-content/plugins/woocommerce-jetpack/includes/classes/class-wcj-shortcodes.php:321
    WCJ_Shortcodes::wcj_shortcode()
    wp-includes/shortcodes.php:355
    do_shortcode_tag()
    preg_replace_callback()
    wp-includes/shortcodes.php:227
    do_shortcode()
    wp-content/plugins/woocommerce-jetpack/includes/classes/class-wcj-pdf-invoice.php:240
    WCJ_PDF_Invoice::get_html()
    wp-content/plugins/woocommerce-jetpack/includes/classes/class-wcj-pdf-invoice.php:261
    WCJ_PDF_Invoice::get_pdf()
    wp-content/plugins/woocommerce-jetpack/includes/class-wcj-pdf-invoicing.php:306
    WCJ_PDF_Invoicing::merge_pdfs()
    wp-content/plugins/woocommerce-jetpack/includes/class-wcj-pdf-invoicing.php:267
    WCJ_PDF_Invoicing::bulk_actions_handle()
    wp-includes/class-wp-hook.php:308
    WP_Hook::apply_filters()
    wp-includes/plugin.php:205
    apply_filters()
    wp-admin/edit.php:222
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Updating to PHP 8.1’ is closed to new replies.