WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] Undefined index and property errors right out of the gate! (12 posts)

  1. jbrookechao
    Member
    Posted 2 years ago #

    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

    and

    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?

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

  2. jbrookechao
    Member
    Posted 2 years ago #

    The link to my site is:
    http://blog.the-chaos.com/

  3. jbrookechao
    Member
    Posted 2 years ago #

    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.

  4. jbrookechao
    Member
    Posted 2 years ago #

    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

    and

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

  5. jbrookechao
    Member
    Posted 2 years ago #

    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

  6. jbrookechao
    Member
    Posted 2 years ago #

    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.

  7. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @jbrookechao,

    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.

  8. jbrookechao
    Member
    Posted 2 years ago #

    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?

  9. jbrookechao
    Member
    Posted 2 years ago #

    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?

  10. jbrookechao
    Member
    Posted 2 years ago #

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

  11. mattyrob
    Member
    Plugin Contributor

    Posted 2 years ago #

    @jbrookechao,

    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.

  12. jbrookechao
    Member
    Posted 2 years ago #

    Awesome! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags