Support » Plugin: Mail Subscribe List » A few errors

  • johnnyp14

    (@johnnyp14)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Richard Leishman

    (@webfwd)

    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

    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.

    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) ;).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘A few errors’ is closed to new replies.