• Resolved sarmatopia

    (@sarmatopia)


    I’m getting a PHP Notice, I guess when people unsubscribe:

    PHP Notice: Undefined index: unsubscribed_message in /path/to/wp-content/plugins/newsletter/includes/TNP.php on line 172

    172 is:

    $newsletter->mail( $user->email, $newsletter->replace( NewsletterSubscription::instance()->options['unsubscribed_subject'], $user ), $newsletter->replace( NewsletterSubscription::instance()->options['unsubscribed_message'], $user ) );

    You really should have the code on GitHub so people can send PRs and not bug reports.

    This probably needs wp_parse_args() to instantiate defaults after get_option().

Viewing 1 replies (of 1 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    Hi, thank you for reporting, we’ll check it asap. That ia function not used by the core but available as PHP API, so probably you’re managing the cancellations with custom code.

    Stefano.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Notice – unsubscribed_message’ is closed to new replies.