Newsletter Subscribe Suddenly Not Working

Hi,

My issue is the Newsletter Subscribe form suddenly not working after I update to Ghost 4.4. Before the update, newsletter subscription works. Then, suddenly it stopped working. It’s not showing any error, it’s just redirecting to /?

I’ve already checked/tried every post here that seems to be related to my issue and doesn’t seem to work for me. So, any help is appreciated.

I’m using Firma theme if that would help.

I’m using Mailchimp(Mandrill) instead of Mailgun. And below is my current config.production.json for mail.

"mail": {
    "from": "Blog Team <no-reply@mydomain.com>",
    "transport": "SMTP",
    "options": {
      "service": "Mandrill",
      "host": "smtp.mandrillapp.com",
      "port": 587,
      "auth": {
        "user": "myUser",
        "pass": "mypassword"
      }
    }
  }

Can you post the subscribe form code from the theme?

I’m almost certain I’ve encountered this issue myself, I just cant remember the solution :woozy_face: are you running a firewall at all? Try and whitelist the Mailchimp IP’s

Same for me, but i’m with mailgun and penang theme @ahmadajmi any idea ?

It is quite weird i have :
Ghost-CLI version: 1.17.2
Ghost version: 4.4.0 (at /var/www/ghost)

All the emails are sent properly, only when new members want to subscribe it doesn’t send the confirmation email

@josephkman here’s what I’m seeing. See anything unusual?

<form
  data-members-form="subscribe"
  id="newsletter-form"
  class="f-auth-form {{^if feature_image}}no-image{{/if}}"
>
  <h1 class="f-auth-form__title">
    {{t "Subscribe to our newsletter"}}
  </h1>
  <p class="f-auth-form__subtitle">
    {{t "Stay updated with {blogtitle} by signing up for our newsletter." blogtitle=@blog.title}}
  </p>
  <div
    class="f-auth-form__fieldset {{^if feature_image}}no-image{{/if}}"
  >
    <label for="newsletter-input" class="sr-only">
      {{t "Your email address"}}
    </label>
    <input
      data-members-email
      id="newsletter-input"
      class="f-auth-form__input no-appearance"
      type="email"
      required
      placeholder="{{t "Your email address"}}"
    />
    <button
      id="newsletter-button"
      class="f-button primary medium in-auth-form"
      type="submit"
    >
      {{t "Join now"}}
      <span class="icon-chevron-right" aria-hidden="true"></span>
    </button>
  </div>
  <p class="f-auth-form__success">
    {{t "🎉 Awesome! Now check your inbox and click the link to confirm your subscription."}}
  </p>
  <p class="f-auth-form__invalid f-error-message bottom-space">
    {{t "Please enter a valid email address"}}
  </p>
  <p class="f-auth-form__error f-error-message bottom-space">
    {{t "Oops! There was an error sending the email, please try later"}}
  </p>
</form>

@benravetta thanks for the link, will take a look and see if that helps.

Seems fine, I missed the part that your form was working prior to 4.4

My code from Krabi theme is slightly different, if you want to try it: these are the key lines:

<form data-members-form='subscribe' class='c-subscribe-form {{ formClass }}'>

<input type='email' name='email' class='c-subscribe-form__input' id='{{ inputLabel }}' placeholder='{{t 'Your email address' }}' required data-members-email>

@josephkman thanks for the reply, but I don’t see any difference between the two except from the classes. Or I’m not seeing it directly?

You are right, now that I checked, there are only cosmetic differences

i did roll back to 4.3.3 and it does work back, any idea why @ahmadajmi ?

I might try to rollback to 4.3.3 and see if that will work for now. Thanks.

yes this did work for me with the penang theme, to roll back the command is : ghost update --rollback

Let me know how it goes for you.

Rolling back to 4.3.3 works for me. I’ll mark your comment as a temporary solution until 4.4 version is answered as to why newsletter subscription suddenly stopped working.

1 Like

well, according to Ghost version 4.4.0, no changes might affect this and I received no similar issues. I also use Mailgun for the Penang demo with Ghost 4.5, and all is working fine. Probably you can update to Ghost 4.5 and see how it goes?

Hi @ahmadajmi,

Sure, i will try and keep you posted. Many thanks,

Hi all, I’m seeing the same issues. But I’m running 4.11.