WordPress.org

Support

Support » Plugins and Hacks » SpeakUp! Email Petitions » [Resolved] [Plugin: SpeakUp! Email Petitions] v1.7.3. Displays error messages

[Resolved] [Plugin: SpeakUp! Email Petitions] v1.7.3. Displays error messages

  • 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,

    Sign the Petition Letter for Texas Hearings on TransCanada/Keystone XL Pipeline!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Kreg

    @kreg

    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.

    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

    Plugin Author Kreg

    @kreg

    @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.

    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

    Plugin Author Kreg

    @kreg

    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.

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: SpeakUp! Email Petitions] v1.7.3. Displays error messages’ is closed to new replies.
Skip to toolbar