• Resolved dev

    (@devksec)


    Hello,

    When sending an order creation email via a manually made order we get this error. Using the latest version with PHP8

    [21-Feb-2023 13:01:05 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: int + string in /home/USERNAME/STOREURL/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:1560
    Stack trace: 0 /home/USERNAME/STOREURL/wp-content/plugins/yaymail/includes/MailBuilder/Shortcodes.php(1021): WC_Abstract_Order->calculate_shipping() 1 /home/USERNAME/STOREURL/wp-content/plugins/yaymail/includes/MailBuilder/Shortcodes.php(416): YayMail\MailBuilder\Shortcodes->collectOrderData(false, Array) 2 /home/USERNAME/STOREURL/wp-content/plugins/yaymail/views/templates/single-mail-template.php(119): YayMail\MailBuilder\Shortcodes->shortCodesOrderDefined(false, Array) 3 /home/USERNAME/STOREURL/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/USERNAME/…') 4 /home/USERNAME/STOREURL/wp-content/plugins/woocommerce/includes/wc-core-functions.php(364): wc_get_template('emails/customer…', Array, '', '') 5 /home/USERNAME/STOREURL/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-invoice.php(159): wc_get_template_html('emails/customer…', Array) 6 /home/USERNAME/STOREURL/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(572): WC_Email_Customer_Invoice->get_content_html() 7 /home/USERNAME/STOREURL/wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-invoice.php(139): WC_Email->get_content() 8 /home/USERNAME/STOREURL/wp-content/plugins/woocommerce/includes/class-wc-emails.php(374): WC_Email_Customer_Invoice->trigger(15347, Object(Automattic\WooCommerce\Admin\Overrides\Order)) 9 /home/USERNAME/STOREURL/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php(139): WC_Emails->customer_invoice(Object(Automattic\WooCommerce\Admin\Overrides\Order)) 10 /home/USERNAME/STOREURL/wp-includes/class-wp-hook.php(308): WC_Meta_Box_Order_Actions::save(15347, Object(WP_Post)) 11 /home/USERNAME/STOREURL/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) 12 /home/USERNAME/STOREURL/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 13 /home/USERNAME/STOREURL/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(258): do_action('woocommerce_pro…', 15347, Object(WP_Post)) 14 /home/USERNAME/STOREURL/wp-includes/class-wp-hook.php(310): WC_Admin_Meta_Boxes->save_meta_boxes(15347, Object(WP_Post)) 15 /home/USERNAME/STOREURL/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) 16 /home/USERNAME/STOREURL/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 17 /home/USERNAME/STOREURL/wp-includes/post.php(4717): do_action('save_post', 15347, Object(WP_Post), true) 18 /home/USERNAME/STOREURL/wp-includes/post.php(4819): wp_insert_post(Array, false, true) 19 /home/USERNAME/STOREURL/wp-admin/includes/post.php(426): wp_update_post(Array) 20 /home/USERNAME/STOREURL/wp-admin/post.php(227): edit_post() 21 {main} thrown in /home/USERNAME/STOREURL/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php on line 1560

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support alina98

    (@alina98)

    Hi @devksec ,

    Thanks for reaching out!

    May I know if you have the latest version of our plugin, please?

    If yes, please reach out to us for dev support here:
    https://yaycommerce.com/support/

    Kind regards,

    Alina

    Thread Starter dev

    (@devksec)

    Hello,

    This turned out to be an issue with the PDF Invoices plugin, which was causing an error with YayMail when trying to attach/send PDF invoices.

    This can be closed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught TypeError: Unsupported operand types: int + string in’ is closed to new replies.