WordPress.org

Ready to get started?Download WordPress

Forums

Mail Subscribe List
A few errors (4 posts)

  1. johnnyp14
    Member
    Posted 1 year ago #

    I'm getting a few errors still after deleting and re-installing the plugin. Just above my plugin call, I get:

    Notice: Undefined index: sml_subscribe in /home/mysite/public_html/mysite.com/wp-content/plugins/mail-subscribe-list/sml.php on line 71

    Also, when accessing the Subscribers menu in WordPress that says:
    Notice: Undefined variable: message in /home/mysite/public_html/mysite.com/wp-content/plugins/mail-subscribe-list/index.php on line 62

    Any ideas? Thanks in advance!

    http://wordpress.org/extend/plugins/mail-subscribe-list/

  2. Richard Leishman
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Johnnyp14,

    It sounds like you have one of our very early versions of the plugin, please ensure that you update it to the latest version.

    Richard

  3. Miguel López
    Member
    Posted 1 year ago #

    This occurs in the last version of the plugin (2.0.7). It is comparing an emty variable with false, and PHP show notices in development envirionments.

    Next version I would change:

    wp-content/plugins/mail-subscribe-list/sml.php on line 71

    THIS:

    if ($_POST['sml_subscribe']) {

    FOR THIS:

    if (isset($_POST['sml_subscribe']) && $_POST['sml_subscribe']) {

    AND

    /wp-content/plugins/mail-subscribe-list/index.php on line 62

    THIS:

    if (!$message) { echo '<div style="padding: 5px;" class="updated"><p>'.$message.'</p></div>'; }

    FOR THIS:

    if (!empty($message)) { echo '<div style="padding: 5px;" class="updated"><p>'.$message.'</p></div>'; }

    Miguel.

  4. Miguel López
    Member
    Posted 1 year ago #

    Sorry!

    The error of 'wp-content/plugins/mail-subscribe-list/sml.php' occurs at line 267 in my installation, instead of 71.

    The solution it's the same (changing the line) ;).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic