WordPress.org

Ready to get started?Download WordPress

Forums

SpeakUp! Email Petitions
[resolved] v1.7.3. Displays error messages (7 posts)

  1. ingenuity
    Member
    Posted 2 years ago #

    Yesterday we upgraded SpeakUpEmailPetitions to v 1.7.3 and now have error messages all over the front end and back end.

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/indytexa/indytexans.org/indyTX-blog-new/wp-content/plugins/speakup-email-petitions/includes/admin-edit-view.php on line 92
    checked="checked" /> Display address fields
    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/indytexa/indytexans.org/indyTX-blog-new/wp-content/plugins/speakup-email-petitions/includes/admin-edit-view.php on line 96
    /> Street
    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/indytexa/indytexans.org/indyTX-blog-new/wp-content/plugins/speakup-email-petitions/includes/admin-edit-view.php on line 97
    /> City
    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/indytexa/indytexans.org/indyTX-blog-new/wp-content/plugins/speakup-email-petitions/includes/admin-edit-view.php on line 98
    /> State / Province
    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/indytexa/indytexans.org/indyTX-blog-new/wp-content/plugins/speakup-email-petitions/includes/admin-edit-view.php on line 99
    /> Post Code
    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/indytexa/indytexans.org/indyTX-blog-new/wp-content/plugins/speakup-email-petitions/includes/admin-edit-view.php on line 100
    /> Country

    How can we roll back to an earlier version?

    Interestingly: The petition still works. :-) Signatures are coming in. But the errors display at the top of the post and, in the WP-admin, on the Display Options panel.

    See the front end on http://www.indytexans.org/news-2/ (it's the third news item in the index) or on the single post page,

    http://www.indytexans.org/2012/02/18/sign-the-petition-letter-for-texas-hearings-on-transcanada-pipeline/

    http://wordpress.org/extend/plugins/speakup-email-petitions/

  2. Kreg Wallace
    Member
    Plugin Author

    Posted 2 years ago #

    This problem was resolved using @somethingelse's method from this thread.

    I you are experiencing a similar problem, go to the "Email Petitions" page to see your list of petitions. Then, click the petition title to open the edit screen. Now click the "Update Petition" button. That should take care of it.

  3. AnnBarrett
    Member
    Posted 1 year ago #

    Thanks for this plugin that I use on my very first Web site. (Unfortunately I don't know the poetry of code.) It's getting good response and is working great except for one thing: In the signature line at the bottom of the signed petition, first and last names don't have a space between them. Like AnnBarrett instead of Ann Barrett. Is there a fairly simple way to fix that? Thanks for any help - Ann

  4. Kreg Wallace
    Member
    Plugin Author

    Posted 1 year ago #

    @AnnBarrett,

    I assume you are referring to the list of signatures that displays when you include the [signaturelist] shortcode. There should be a space between the first and last names in that table.

    If you post a link to the page that you're having trouble with, I'll take a look.

  5. AnnBarrett
    Member
    Posted 1 year ago #

    Sorry, Kreg, I'm new at this and described the issue poorly. The problem is that at the end of the email recipients receive, signers' names have no space between their first and last names. It look like this:

    "....

    Sincere thanks for your time and consideration.

    --
    AnnBarrett
    ann@barrett.com"

    It would be nice if the first and last names had a space between them, like "Ann Barrett". Not a major thing, I know, but it's the last thing recipients see.

    The link to the petition page is http://sqauch.org/?page_id=42.
    Thanks for your prompt reply, Kreg, and please let me know if you need further information - Ann

  6. Kreg Wallace
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, thanks, that's a good catch! I'll get an update out with a fix for this soon. For the moment, if you want to fix the problem in your own copy of the plugin, go into your wp-plugins folder and open the file at /speakup-email-petitions/includes/class.mail.php. Then you can change line 72, which reads:

    $email_message .= "\r\n" . stripslashes( $signature->first_name . $signature->last_name );

    to this:

    $email_message .= "\r\n" . stripslashes( $signature->first_name . ' ' . $signature->last_name );

    That will take care of the problem.

  7. AnnBarrett
    Member
    Posted 1 year ago #

    Thanks for your prompt advice, Kreg. I couldn't find the line you mentioned - code is alien hieroglyphics to me - so I was glad to see your update. Wow, that was quick.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic