• HI, recently my site is throwing the following critical error is someone checked the mailpoint ‘subscribe to mailing list’ checkbox on checkout. the purchase does not go through. if the checkbox is not selected, the purchase will go through.

    Woo 7.8.1
    Mailpoet 4.2.0
    (although the problem started before the updates to these versions today)

    2023-06-29T09:57:26+00:00 CRITICAL Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /home/thewoodlandpigco/public_html/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php:66
    Stack trace:
    
    0 /home/thewoodlandpigco/public_html/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php(66): array_merge()
    
    1 /home/thewoodlandpigco/public_html/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php(37): MPWA_Place_Order::save_subscriber_record()
    
    2 /home/thewoodlandpigco/public_html/wp-content/plugins/add-on-woocommerce-mailpoet/add-on-woocommerce-mailpoet.php(189): MPWA_Place_Order::subscribe_user()
    
    3 /home/thewoodlandpigco/public_html/wp-includes/class-wp-hook.php(310): wc_after_checkout_validation_mpwa_subscribe()
    
    4 /home/thewoodlandpigco/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    5 /home/thewoodlandpigco/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    6 /home/thewoodlandpigco/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(456): do_action()
    
    7 /home/thewoodlandpigco/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1256): WC_Checkout->create_order()
    
    8 /home/thewoodlandpigco/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(507): WC_Checkout->process_checkout()
    
    9 /home/thewoodlandpigco/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::checkout()
    
    10 /home/thewoodlandpigco/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    11 /home/thewoodlandpigco/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    12 /home/thewoodlandpigco/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action()
    
    13 /home/thewoodlandpigco/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax()
    
    14 /home/thewoodlandpigco/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    15 /home/thewoodlandpigco/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    16 /home/thewoodlandpigco/public_html/wp-includes/template-loader.php(13): do_action()
    
    17 /home/thewoodlandpigco/public_html/wp-blog-header.php(19): require_once('/home/thewoodla…')
    
    18 /home/thewoodlandpigco/public_html/index.php(17): require('/home/thewoodla…')
    
    19 {main}
    
    thrown in /home/thewoodlandpigco/public_html/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php on line 66

    • This topic was modified 1 year, 5 months ago by lockedm.
Viewing 1 replies (of 1 total)
  • Same here

    2023-07-11T09:00:51+00:00 CRITICAL Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /var/www/XXX/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php:66
    Stack trace:
    #0 /var/www/XXX/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php(66): array_merge(Array, NULL)
    #1 /var/www/XXX/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php(37): MPWA_Place_Order::save_subscriber_record(Array, Array)
    #2 /var/www/XXX/wp-content/plugins/add-on-woocommerce-mailpoet/add-on-woocommerce-mailpoet.php(189): MPWA_Place_Order::subscribe_user()
    #3 /var/www/XXX/wp-includes/class-wp-hook.php(310): wc_after_checkout_validation_mpwa_subscribe(2944)
    #4 /var/www/XXX/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #5 /var/www/XXX/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #6 /var/www/XXX/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(456): do_action('woocommerce_che...', 2944, Array)
    #7 /var/www/XXX/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1256): WC_Checkout->create_order(Array)
    #8 /var/www/XXX/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(507): WC_Checkout->process_checkout()
    #9 /var/www/XXX/wp-includes/class-wp-hook.php(308): WC_AJAX::checkout('')
    #10 /var/www/XXX/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
    #11 /var/www/XXX/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #12 /var/www/XXX/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action('wc_ajax_checkou...')
    #13 /var/www/XXX/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax('')
    #14 /var/www/XXX/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(false, Array)
    #15 /var/www/XXX/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #16 /var/www/XXX/wp-includes/template-loader.php(13): do_action('template_redire...')
    #17 /var/www/XXX/wp-blog-header.php(19): require_once('/var/www/theres...')
    #18 /var/www/XXX/index.php(17): require('/var/www/theres...')
    #19 {main}
      thrown in /var/www/XXX/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php in Zeile 66
Viewing 1 replies (of 1 total)
  • The topic ‘CRITICAL Uncaught TypeError on checkout’ is closed to new replies.