Support » Plugin: Subscribe2 » [Plugin: Subscribe2] Undefined index and property errors right out of the gate!

  • Resolved jbrookechao


    When I install your product, on a Word 3.3.2 site, I immediately get the following errors:

    Notice: Undefined property: s2_frontend::$s2_mu in /homepages/4/d101755333/htdocs/wpblog/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 13


    Notice: Undefined index: csv in /homepages/4/d101755333/htdocs/wpblog/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1727

    I also receive the following message when activating the plugin: “The plugin generated 188 characters of unexpected output during activation.”

    I also had to correct two deprecated PHP calls in the Widget plugin. There was one in each of the files.

    Can someone tell me how to get rid of these errors?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The link to my site is:

    I *seem* to have fixed it by going to the bottom of the file and adding:

    var $s2_mu '';

    to the list of variables at the end of the file.

    We’ll see if that really fixed it, or if it just made the error messages go away, and if I run into problems actually using the plugin, down the line.

    Either way, these seem like some really sloppy errors to be running across. Stuff that should definitely have come up in testing.

    Actually, no, there are still issues.

    I get the following two errors on the subscriber admin page:
    Undefined index: searchterm in /homepages/4/d101755333/htdocs/wpblog/wp-content/plugins/subscribe2/admin/subscribers.php on line 232


    Trying to get property of non-object in /homepages/4/d101755333/htdocs/wpblog/wp-content/plugins/subscribe2/admin/subscribers.php on line 296

    And the following errors if I use the search feature in the subscriber admin page:

    Undefined index: csv in /homepages/4/d101755333/htdocs/wpblog/wp-content/plugins/subscribe2/classes/class-s2-core.php on line 1727

    Notice: Undefined index: process in /homepages/4/d101755333/htdocs/wpblog/wp-content/plugins/subscribe2/admin/subscribers.php on line 44

    Basically, every single thing I do in this plugin, administrator wise, seems to generate multiple undefined index errors. I really need to some help figuring out why.


    I’ll certainly have a look at these for the next version but to clarify these are not ‘errors’, they are ‘notices’. Nothing in any of those message will stop the code running, it’s simply telling you it’s not quite meeting strict coding standards.

    You need to turn down the level of reporting on your site. This article may help you.

    Thanks for the heads up.

    Ok, so changing the debug settings got rid of the notifications, but I still have the problem that the subscription form doesn’t appear to work. I’ve tried subscribing using a secondary email address, and while it looks like it goes through, it does not. That email address never shows up as a subscriber in my subscriber list.

    Any thoughts?

    Just to clarify, I can manually (and successfully) add subscribers, but the form, itself, doesn’t appear to be working. At least not on my page. I have created a Page, and inserted the S2 tag. Am I missing a step, perhaps?

    I seem to have fixed the subscription issues by just using the widget.


    Maybe one reason why it wasn’t working on your page it that you need to select a handler page in the Subscribe2->Settings page. Pick the Page you created and it should work fine from a page. That said if the Widget is working, maybe just use that.

    Awesome! Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Subscribe2] Undefined index and property errors right out of the gate!’ is closed to new replies.