WordPress.org

Ready to get started?Download WordPress

Forums

Newsletter Sign-Up
[resolved] Catchable fatal error (3 posts)

  1. andreu
    Member
    Posted 3 years ago #

    Hi!

    I've installed and configured the plugin to work with my PHPList newsletter. I want to use the checkbox in my register form but I get the following error when I try to register with the plugin enabled:

    Catchable fatal error: Object of class Newsletter_SignUp could not be converted to string in /usr/home/ociofree.com/web/wp-content/plugins/newsletter-sign-up/php/frontend.php on line 96

    In the line 96 I've found: $variables['list['.$$this->options['phplist_list_id'].']'] = 'signup';, I've removed one of the two $ and now the error is not appearing. Anyway, my form is still not working, the users are not being added to the PHPList list and I don't know why.

    Any ideas of how can I test it to see where is the problem? Thank you in advance!

  2. Danny van Kooten
    Member
    Plugin Author

    Posted 3 years ago #

    Hi!

    Woah, stupid typo from my side. Sorry for that, fixed it in v1.1.2+. Make sure you've set all the values that would appear in a normal sign-up form, use the additional data fields for that.

    If it's still not working, try adding echo in front of wp_remote_post on line 179 of the file frontend.php (v1.1.2). This prints the result page so you can check for any errors.

    Hope that'll give you an idea on where to start!

  3. andreu
    Member
    Posted 3 years ago #

    Ok, thanks for your fast answer. I'll try it!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic