WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. emile.swain
    Member
    Posted 11 months 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
    Plugin Contributor

    Posted 11 months ago #

    @Emile,

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

Reply

You must log in to post.

About this Plugin

About this Topic