• Resolved dennisvanessen

    (@dennisvanessen)


    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 to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    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 3 years, 1 month ago by mukhan.
    • This reply was modified 3 years, 1 month ago by mukhan.

    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

    (@dennisvanessen)

    It appears that you dont need this additional plugin. The functionality is already available in the Mailpoet plugin itself.

    Awesome, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘plugin breaks checkout’ is closed to new replies.