Title: plugin breaks checkout
Last modified: January 19, 2022

---

# plugin breaks checkout

 *  Resolved [dennisvanessen](https://wordpress.org/support/users/dennisvanessen/)
 * (@dennisvanessen)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-breaks-checkout/)
 * Hi there, your pluogin doe sniot work with the latest mailpoet & WC plugins anymore.
   Customers are unable to finish the checkout. Whenm clicking pay order the page
   scrolls back to the top and it is not possible to proceed. An order is filed 
   in the backend though, but unpaid.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-breaks-checkout%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [flmag](https://wordpress.org/support/users/flmag/)
 * (@flmag)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/plugin-breaks-checkout/#post-15335195)
 * Same for us since moving to latest MailPoet Premium Version 3.78.0
 * The below errors started appearing in WC fatal logs:
 *     ```
       2022-02-03T09:02:09+00:00 CRITICAL Uncaught TypeError: Argument 3 passed to MailPoet\API\MP\v1\Subscribers::subscribeToLists() must be of the type array, bool given, called in /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/mailpoet/lib/API/MP/v1/API.php on line 66 and defined in /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/mailpoet/lib/API/MP/v1/Subscribers.php:71
       Stack trace:
       #0 /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/mailpoet/lib/API/MP/v1/API.php(66): MailPoet\API\MP\v1\Subscribers->subscribeToLists('49025', Array, false)
       #1 /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php(150): MailPoet\API\MP\v1\API->subscribeToLists('49025', Array, false)
       #2 /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php(37): MPWA_Place_Order::save_subscriber_record(Array, Array)
       #3 /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/add in /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/mailpoet/lib/API/MP/v1/Subscribers.php on line 71
       ```
   
 *  [mukhan](https://wordpress.org/support/users/mukhan/)
 * (@mukhan)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/plugin-breaks-checkout/#post-15347454)
 * Modify `includes\class-mpwa-place-order.php` line 107-108 to
 * `subscription = \MailPoet\API\API::MP( 'v1' )->subscribeToLists( $subscriber-
   >id, $list_id_array, array('send_confirmation_email' => true) );`
 * Modify `includes\class-mpwa-place-order.php` line 149-150 to
 * `$subscription = \MailPoet\API\API::MP( 'v1' )->subscribeToLists( $subscriber-
   >id, $list_id_array, array('send_confirmation_email' => false) );`
    -  This reply was modified 4 years, 3 months ago by [mukhan](https://wordpress.org/support/users/mukhan/).
    -  This reply was modified 4 years, 3 months ago by [mukhan](https://wordpress.org/support/users/mukhan/).
 *  [incinerathor](https://wordpress.org/support/users/incinerathor/)
 * (@incinerathor)
 * [4 years ago](https://wordpress.org/support/topic/plugin-breaks-checkout/#post-15618586)
 * I have the same issue. Tested on a clean setup running only WordPress 5.9.3, 
   WooCommerce 6.4.1, MailPoet 3.88.2 and Add-on WooCommerce MailPoet 3 version 
   1.1.8.
 * Error message:
 *     ```
       [05-May-2022 09:34:24 UTC] PHP Fatal error:  Uncaught TypeError: Argument 3 passed to MailPoet\API\MP\v1\Subscribers::subscribeToLists() must be of the type array, bool given, called in /customers/2/e/6/jawbreaker.se/httpd.www/wp-content/plugins/mailpoet/lib/API/MP/v1/API.php on line 66 and defined in /customers/2/e/6/jawbreaker.se/httpd.www/wp-content/plugins/mailpoet/lib/API/MP/v1/Subscribers.php:82
       Stack trace:
       #0 /customers/2/e/6/jawbreaker.se/httpd.www/wp-content/plugins/mailpoet/lib/API/MP/v1/API.php(66): MailPoet\API\MP\v1\Subscribers->subscribeToLists('636', Array, true)
       #1 /customers/2/e/6/jawbreaker.se/httpd.www/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php(108): MailPoet\API\MP\v1\API->subscribeToLists('636', Array, true)
       #2 /customers/2/e/6/jawbreaker.se/httpd.www/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php(37): MPWA_Place_Order::save_subscriber_record(Array, Array)
       #3 /customers/2/e/6/jawbreaker.se/httpd.www/wp-content/plugins/add-on-woocommerce-mailpoet/add-on-wooc in /customers/2/e/6/jawbreaker.se/httpd.www/wp-content/plugins/mailpoet/lib/API/MP/v1/Subscribers.php on line 82
       ```
   
 * The user is shown the error message “Internal Server Error” and cannot proceed
   until newsletter checkbox is unchecked.
 *  Thread Starter [dennisvanessen](https://wordpress.org/support/users/dennisvanessen/)
 * (@dennisvanessen)
 * [4 years ago](https://wordpress.org/support/topic/plugin-breaks-checkout/#post-15618618)
 * It appears that you dont need this additional plugin. The functionality is already
   available in the Mailpoet plugin itself.
 *  [incinerathor](https://wordpress.org/support/users/incinerathor/)
 * (@incinerathor)
 * [4 years ago](https://wordpress.org/support/topic/plugin-breaks-checkout/#post-15618993)
 * Awesome, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘plugin breaks checkout’ is closed to new replies.

 * ![](https://ps.w.org/add-on-woocommerce-mailpoet/assets/icon.svg?rev=1731703)
 * [Add-on WooCommerce - MailPoet 3](https://wordpress.org/plugins/add-on-woocommerce-mailpoet/)
 * [Support Threads](https://wordpress.org/support/plugin/add-on-woocommerce-mailpoet/)
 * [Active Topics](https://wordpress.org/support/plugin/add-on-woocommerce-mailpoet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-on-woocommerce-mailpoet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-on-woocommerce-mailpoet/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [incinerathor](https://wordpress.org/support/users/incinerathor/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/plugin-breaks-checkout/#post-15618993)
 * Status: resolved