Title: Maybe a critical bug
Last modified: January 13, 2021

---

# Maybe a critical bug

 *  [ykurahara8](https://wordpress.org/support/users/ykurahara8/)
 * (@ykurahara8)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/maybe-a-critical-bug/)
 * I installed the latest version 1.3.14, although it does not work as I expected.
   
   Even if a form with a checkbox checked is submitted, the subscriber is not on
   the list.
 * So, I have taken a look at sources. I seems to find a bug in the source; class-
   mailpoet-cf7-submit-form.php:
 *     ```
       					try {
       						$subscriber = \MailPoet\API\API::MP( 'v1' )->addSubscriber( $subscribe_data,
       							array_unique( $list_ids ), $options );
       					} catch ( Exception $exception ) {
       						//If subscriber is already subscribed once and unsubscribed later, then again subscribed to any list, change the status to subscribed and add to the list
       						//if ( 'This subscriber already exists.' == $exception->getMessage() ) {
       						if ( $exception->getCode() == \MailPoet\API\MP\v1\APIException::SUBSCRIBER_EXISTS ) {
       							//Change subscriber status to subscribed
       							$subscribe_data['status'] = 'subscribed';
       ```
   
 * The site that I maintain speaks Japanese. Thus, the message ‘This subscriber 
   already exists.’ in the source would be returned in Japanese. Therefore, even
   if the subscriber already exists, the == equation would result in failure.
 * The workaround I took is to use getCode() not getMessage() as shown the above.
   
   In my site, this way works fine at the present time.
 * I hope this would be helpful to enhance the quality of your plugin.
 * Many thanks in advance.

Viewing 1 replies (of 1 total)

 *  [wordpresstikweb](https://wordpress.org/support/users/abdultikweb/)
 * (@abdultikweb)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/maybe-a-critical-bug/#post-13902330)
 * [@ykurahara8](https://wordpress.org/support/users/ykurahara8/),
    Thank you for
   the information. We will work on it.

Viewing 1 replies (of 1 total)

The topic ‘Maybe a critical bug’ is closed to new replies.

 * ![](https://ps.w.org/add-on-contact-form-7-mailpoet/assets/icon.svg?rev=1731413)
 * [Add-on Contact Form 7 – MailPoet 3](https://wordpress.org/plugins/add-on-contact-form-7-mailpoet/)
 * [Support Threads](https://wordpress.org/support/plugin/add-on-contact-form-7-mailpoet/)
 * [Active Topics](https://wordpress.org/support/plugin/add-on-contact-form-7-mailpoet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-on-contact-form-7-mailpoet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-on-contact-form-7-mailpoet/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wordpresstikweb](https://wordpress.org/support/users/abdultikweb/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/maybe-a-critical-bug/#post-13902330)
 * Status: not resolved