WordPress.org

Forums

Subscribe2
[resolved] subscribers.php Notice: Undefined index: action (2 posts)

  1. emile.swain
    Member
    Posted 1 year ago #

    Fixed an issue with the subscribers.php when clicking the filter button. It was displaying errors (i have debug mode on) that action and action2 had not been defined.

    Notice: Undefined index: action in subscribers.php on line 40

    From line 40 you need to add the isset($_POST['action'] test to avoid this error :

    ...elseif ( (isset($_POST['action']) && $_POST['action'] === 'delete') || ( isset($_POST['action2']) && $_POST['action2'] === 'delete') ) {
    ...
    } elseif ( (isset($_POST['action']) && $_POST['action'] === 'toggle') || ( isset($_POST['action2']) && $_POST['action2'] === 'toggle') ) {
    ...

    http://wordpress.org/plugins/subscribe2/

  2. mattyrob
    Member
    Posted 1 year ago #

    @Emile,

    Thanks for that, I'll get that update into the next release of the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic