WordPress.org

Forums

[Plugin: WP Twitter Pitch] PHP error processform.php line 26 (6 posts)

  1. neville
    Member
    Posted 6 years ago #

    This is a terrific plugin and I'd love it to bits if I could solve an error that prevents it working.

    When I invoke the dialog, complete the text box, do the anti-spam calc and click the submit button, I get this error line:

    Parse error: syntax error, unexpected '<' in /[path]/wp-content/plugins/wp-twitterpitch/processform.php on line 26

    The only text on line 26 is this:

    <?php

    Any idea of how to fixc this?

    My setup is fine for this plugin including running PHP 5.2.3. I have WOP 2.5.1 installed.

    Thanks.

    http://wordpress.org/extend/plugins/wp-twitterpitch/

  2. livibetter
    Member
    Posted 6 years ago #

    just remove line 26 should work.
    (seen your problem via your twitter on friendfeed)

  3. neville
    Member
    Posted 6 years ago #

    Thanks.

    Ok, I did that. Now it works! Not in a very elegant way, though, as when I click submit, nothing seems to happen. So I click it again :) Still nothing. Did the form get submitted? No way to tell.

    But it did as I then got the email. Twice :)

    I would have thought that a successful click submit action should result in the dialog closing automatically. But it doesn't.

    If it's simple to fix, I'll have a go myself. PHP is not my area so any suggestion on what's needed here?

    Thanks again.

  4. livibetter
    Member
    Posted 6 years ago #

    I couldn't help you further since I don't use WP anymore. (I actually didn't read the code, but line 26 is easy to spot for a workaround.)

    You should contact the developer for the bugs.

  5. neville
    Member
    Posted 6 years ago #

    Yes, that makes sense.

    Thanks.

  6. Aaron Brazell
    Member
    Posted 6 years ago #

    Are there any errors in the Javascript error log to speak of? It sounds like we've got a JS collision somewhere.

Topic Closed

This topic has been closed to new replies.

About this Topic